how to open Jupyter notebook in chrome on windows

前端 未结 16 794
-上瘾入骨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:04

    For those who still have trouble launching Chrome automatically from cmd, try replacing

    # c.NotebookApp.browser =''
    

    in the file jupyter_notebook_config.py with

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

    or the appropriate location, there shouldn't be need to install anything via pip.

    Ref: https://support.anaconda.com/customer/en/portal/articles/2925919-change-default-browser-in-jupyter-notebook

提交回复
热议问题