how to open Jupyter notebook in chrome on windows

前端 未结 16 702
-上瘾入骨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 20:57

    Take any html file on your computer and set the default browser to open html files to chrome. This will automatically open jupyter notebook with chrome. Worked for me.

    0 讨论(0)
  • 2020-12-07 20:58
    • Run the jupyter notebook --generate-config command on the anaconda prompt.
    • Then edit the jupyter_notebook_config.py file.

    Find the c.NotebookApp.Browser like this:

    c.NotebookApp.browser = 'c:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
    

    Works on mine.

    0 讨论(0)
  • 2020-12-07 21:00

    This dint work for me. So instead I opened the same link (python file from internet explorer)in chrome and it asked me for a password . I set the password in anaconda prompt using the command : $jupyter notebook password

    0 讨论(0)
  • 2020-12-07 21:01

    step1: Go to search menu of windows and type default app.

    step 2: go to WEB BROWSER title and change it to Google Chrome.

    step3: Go to search menu of windows and type jupyter notebook

    This will open the jupyter notebook in Google Chrome

    0 讨论(0)
  • 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'
    
    0 讨论(0)
  • 2020-12-07 21:02

    Create and edit the jupyter notebook config file with the following steps:

    • Launch Anaconda Prompt
    • Type jupyter notebook --generate-config
    • Type notepad path_to_file/jupyter_notebook_config.py to open it (change path_to_file)
    • Modify #c.NotebookApp.browser = '' to c.NotebookApp.browser = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
    • Save the file and close it

    Jupyter notebook will now use Chrome.

    0 讨论(0)
提交回复
热议问题