how to open Jupyter notebook in chrome on windows

前端 未结 16 701
-上瘾入骨i
-上瘾入骨i 2020-12-07 20:52

On my Windows PC, i have anaconda installed and when I open a jupyter notebook, it opens up in internet explorer, but I would like to use Chrome instead. Does anyone know ho

16条回答
  •  囚心锁ツ
    2020-12-07 21:01

    For some reason Louise's answer didn't work for me I had to:

    -Open anaconda prompt and generate the config file for Jupyter: jupyter notebook --generate-config

    -Open the newly created config file at: C:\Users\builder\.juptyer\jupyter_notebook_config.py

    -Add the following to the file:

    import webbrowser
    webbrowser.register('chrome', None, webbrowser.GenericBrowser(r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'))
    c.NotebookApp.browser = 'chrome'
    

提交回复
热议问题