How to remove password for Jupyter Notebooks and set token again : <p>I need to do this for Pycharm.</p>

<p>Here are the steps that I did which I'm not able to undo.<br></p>

<ol>
<li><p>I <strong>added a password</strong> for authentication using:<br></p>

<blockquote>
  <p>$ jupyter notebook password</p>
</blockquote></li>
<li><p>I then used the below command to <strong>comment all the code</strong> in jupyter_notebook_config.py</p>

<blockquote>
  <p>$ jupyter notebook --generate-config</p>
</blockquote></li>
<li><p>Then I <strong>removed the hashed password</strong> generated in the jupyter_notebook_config.json which now looks like this</p>

<blockquote>
  <p>{
  "NotebookApp": {
  "password": ""
  }
  }</p>
</blockquote></li>
<li><p>I then did the following <strong>changes</strong> in jupyter_notebook_config.py file</p>

<blockquote>
  <p>c.NotebookApp.password = ''<br>
  c.NotebookApp.token = '&lt; generated>'<br></p>
</blockquote></li>
<li><p>Now, There is no token getting generated and there is no password as well when I start the Jupyter notebook.</p>

<blockquote>
  <p>Pycharm git:(master) ✗ jupyter notebook<br>
  [I 21:53:35.158 NotebookApp] Serving notebooks from local directory: /Users/...<br>
  [I 21:53:35.158 NotebookApp] 0 active kernels<br>
  [I 21:53:35.158 NotebookApp] The Jupyter Notebook is running at:<br>
  [I 21:53:35.158 NotebookApp] <a href="http://localhost:8888/?token=%3Cgenerated%3E" rel="noreferrer">http://localhost:8888/?token=%3Cgenerated%3E</a><br><br>
  Copy/paste this URL into your browser when you connect for the first time,<br>
  to login with a token:<br>
      <a href="http://localhost:8888/?token=%3Cgenerated%3E" rel="noreferrer">http://localhost:8888/?token=%3Cgenerated%3E</a><br></p>
</blockquote></li>
</ol>

<p><strong>Now, how do I make it like the way it was or how do I get the token back??</strong></p>

<p>PS - I even tried <em>jupyter notebook list</em>,  but still the same URL is coming. Also, I'm doing this on a mac, so please advise accordingly.</p>
