# IJulia Password/Token Requirement

**URL:** <https://discourse.julialang.org/t/ijulia-password-token-requirement/4974>\
**Category:** General Usage\
**Created:** [July 20, 2017, 12:33pm UTC](https://discourse.julialang.org/t/ijulia-password-token-requirement/4974 "2017-07-20T12:33:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Post date:** [July 20, 2017, 12:33pm UTC](https://discourse.julialang.org/t/ijulia-password-token-requirement/4974/1 "2017-07-20T12:33:12Z")

</div>

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.

* * *

1. **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`

1. **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.

1. **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.

1. **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.

```python
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](https://jupyter-notebook.readthedocs.io/en/stable/public_server.html) page.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [July 20, 2017, 12:56pm UTC](https://discourse.julialang.org/t/ijulia-password-token-requirement/4974/2 "2017-07-20T12:56:59Z")

</div>

For me, `notebook()` just opens the correct page with [the correct token](http://jupyter-notebook.readthedocs.io/en/latest/security.html#security-in-the-jupyter-notebook-server) without any hassle.

---

<div class="post-metadata">

**Author:** ![Daneel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/daneel/32/175_2.png) [@Daneel](https://discourse.julialang.org/u/Daneel)\
**Post date:** [July 20, 2017, 1:02pm UTC](https://discourse.julialang.org/t/ijulia-password-token-requirement/4974/3 "2017-07-20T13:02:21Z")

</div>

It’s the first time I’ve ever seen it ask me for a password or token. I haven’t used IJulia since 0.5.2 though and just installed in on Julia 0.6.0-rc3.0 today. I just assumed it was some new default setting.

Jupyter in my Julia 0.6 install is version 4.3.0 and I just used `notebook()` to start it as well.
