When I open Jupyter Notebook from the shell, it starts at "/home/nichlas/.local/share/jupyter/runtime/nbserver-691-open.html" but I want it to start at "http://localhost:8888". I have honestly looked through all options in the config file and found nothing that worked - so how can I do this?
1 Answer
- You have to generate the config file first by running the following command in terminal:
jupyter notebook --generate-config
Open this config file (
/home/yahya/.jupyter/jupyter_notebook_config.py
on my system, for example).Find the parameter:
c.Notebook.use_redirect_file)
. It is commented by default, and set toTrue
.Uncomment it and set it to
False
:
c.NotebookApp.use_redirect_file = False
Details about why this problem occurs can be found on this Github issue.
-
3This requires Jupyter Notebook 6.0.2 or above. The commit where this feature was added: github.com/jupyter/notebook/commit/…– ElpyJan 8, 2020 at 5:21
-
1If you install with
pip3 install jupyterlab
, the correct first command isjupyter-notebook
(with a hyphen istead of a space) Dec 14, 2020 at 16:43 -
1
-
This is the correct solution for Firefox / Ubuntu 22.04. The reason this happen is because Firefox is installed as snap package and is thus ran in sandbox. It cannot access anything (including the access token set by Jupyter Notebook) outside the home directory. Jun 5, 2022 at 10:34