How to set jupyter notebook to open on browser automatically

前端 未结 3 687
攒了一身酷
攒了一身酷 2021-02-14 23:01

So I don\'t have issues trying to open the jupyter notebook but for some reason, I cannot get it to open in the browser automatically no matter what I\'m trying to do. I follow

3条回答
  •  天涯浪人
    2021-02-14 23:41

    Add this line to your jupyter_notebook_config.py file:

    c.NotebookApp.use_redirect_file = False
    

    This should open jupyter notebooks automatically in your browser with the localhost/127.0.0.1 URL.

    More info for the sake of completeness:

    • The config file should be found in ~/.jupyter/jupyter_notebook_config.py. If missing can be generated (as you did) with the command: jupyter notebook --generate-config
    • Here's the Github issue where the change was discussed (the same solution was also highlighted here)
    • Here's the reference in the documentation

提交回复
热议问题