简体   繁体   中英

Change startup url in Jupyter Notebook?

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?

  • 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 to True .

  • 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM