How to set jupyter notebook to open on browser automatically

前端 未结 3 1124
孤城傲影
孤城傲影 2021-02-14 23:37

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:50

    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

提交回复
热议问题