How to change the default browser used by jupyter notebook in windows

后端 未结 19 2390
盖世英雄少女心
盖世英雄少女心 2020-12-04 10:17

I\'m on a windows machine without admin right and I would like to run jupyter on chrome, while the default browser is another.

I have a local installation of the Ana

19条回答
  •  广开言路
    2020-12-04 11:01

    Jupyter looks for the BROWSER environment variable when choosing which browser to launch.

    I recommend setting BROWSER over configuring Jupyter specifically, because setting BROWSER is the default way to specify which browser you prefer, regardless of which application it applies to.

    • To choose the browser for a single session, set the BROWSER environment variable when running the jupyter process.

      BROWSER=chromium-browser jupyter notebook when you have chromium-browser when you prefer to use chromium-browser on PATH. Typical for Linux.

      BROWSER=C:/Home/AppData/Local/Google/Chrome/Application/chrome.exe jupyter notebook when you don't have the application on PATH. Typical for Windows.

      BROWSER= jupyter notebook otherwise.

    • To choose browser for your whole system, set the BROWSER environment variable globally.

提交回复
热议问题