Recently I installed IJulia and discovered that it needed some sort of password or token, neither of which had I created or set. To save anybody else some time here is what I did to set it up.
- Check to see if you have a Jupyter configuration file
On Linux it would be in ~/.jupyter/jupyter_notebook_config.py
.
If it’s not there then generate it.
Find where Jupyter is installed: Pkg.dir("Conda")
. For me Conda was installed in /home/user/.julia/v0.6/Conda and Jupyter was in the subdirectory deps/usr/bin.
At the command line (not REPL) type the following:
~/.julia/v0.6/Conda/deps/usr/bin/jupyter --generate-config
- Generate a password
At the command line (not REPL) type the following:
~/.julia/v0.6/Conda/deps/usr/bin/jupyter notebook password
Type in a new password and then repeat it to confirm.
- Copy the hashed password
Open the file where the password hash is stored, ~/jupyter/jupyter_notebook_config.json
.
Copy the hashed password, including the sha1:… but not the quotes.
- Paste the hashed password into the config file
Open the config file, ~/jupyter/jupyter_notebook_config.py
.
Paste your hashed password into the password line.
c.NotebookApp.password = u'paste it here'
Next time you open an IJulia notebook you can now use the new password to log in.
The instructions were adapted for Julia from this Jupyter instructions page.