I need to do this for Pycharm.
Here are the steps that I did which I'm not able to undo.
I added a password for authentication using:
$ jupyter notebook password
I then used the below command to comment all the code in jupyter_notebook_config.py
$ jupyter notebook --generate-config
Then I removed the hashed password generated in the jupyter_notebook_config.json which now looks like this
{ "NotebookApp": { "password": "" } }
I then did the following changes in jupyter_notebook_config.py file
c.NotebookApp.password = ''
c.NotebookApp.token = '< generated>'
Now, There is no token getting generated and there is no password as well when I start the Jupyter notebook.
Pycharm git:(master) ✗ jupyter notebook
[I 21:53:35.158 NotebookApp] Serving notebooks from local directory: /Users/...
[I 21:53:35.158 NotebookApp] 0 active kernels
[I 21:53:35.158 NotebookApp] The Jupyter Notebook is running at:
[I 21:53:35.158 NotebookApp] http://localhost:8888/?token=%3Cgenerated%3E
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=%3Cgenerated%3E
Now, how do I make it like the way it was or how do I get the token back??
PS - I even tried jupyter notebook list, but still the same URL is coming. Also, I'm doing this on a mac, so please advise accordingly.
Enter the password twice and copy the 'sha1:12345' code. ... and alter the password. Paste your 'sha' code and run jupyter notebook.
If a generated token doesn't work well for you, you can set a password for your notebook. jupyter notebook password will prompt you for a password, and store the hashed password in your jupyter_notebook_config. json . New in version 5.0: jupyter notebook password command is added.
1) open new Jupyter notebook in your browser. Look at the URL, there you can see your localhost (example: localhost:8889) and change the default one at PyCharm if necessary. 2) for the token, while you are in the browser press F12 and then Ctrl + F and search for 'token'.
Hmm my config looks different.
Just remove this file and it will default to making a token
$ cat ~/.jupyter/jupyter_notebook_config.json
{
"NotebookApp": {
"password": "sha1:d0a89f391169:9ca771c3518f845438693b938b39703ce1104eaf"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With