how to open Jupyter notebook in chrome on windows

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

    Just make chrome as a default browser and launch the jupyter . It will work

    To Make Google chrome a default browser , follow steps

    1. Click on Customize and Control Google chrome (The vertical three dots on the Upper right corner of your google chrome browser)
    2. Click on Settings and scroll down to Default browser.
    3. Change the value of the default browser to Google Chrome by clicking on whatever your default browser is there and selecting Google Chrome.

    Note:

    In windows 10, you will be redirected to Default apps under your computer's Settings. Please scroll down to Web browser and Select Google Chrome. If promted, Click on OK else just close the settings tab and return to your command or anaconda prompt and type jupyter notebook as usual. A new jupyter notebook tab should open in Google Chrome now.

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

    If you tried all these "solutions" and still doesn't work, try to open the url over HTTP (not HTTPS <-- the real problem with chrome) and using an Incognito window (press Ctrl + Shift + N on Chrome)

    This worked for me. Hope it helps

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

    If you haven't already, create a notebook config file by running

    jupyter notebook --generate-config

    Then, edit the file jupyter_notebook_config.py found in the .jupyter folder of your home directory.

    You need to change the line # c.NotebookApp.browser = '' to c.NotebookApp.browser = 'C:/path/to/your/chrome.exe %s'

    On windows 10, Chrome should be located C:/Program Files (x86)/Google/Chrome/Application/chrome.exe but check on your system to be sure.

    0 讨论(0)
  • 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

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

    You don't have to change anything in the jupyter config code, you just have to make Chrome as your default browser in the setting. Jupyter opens whichever is the default.

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

    In the windows when we open jupyter notebook in command prompt we can see the instructions in first 10 lines in that there is one instruction- "to open notebook, open this file in browser file://C:/Users/{username}/appdata/roaming/jupyetr/runtime/nbserver-xywz-open.html " , open this html with browser of your choice.

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