最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to make Chrome as the default browser for Anaconda Jupyter Notebook - Stack Overflow

programmeradmin4浏览0评论

I am new to Jupyter Notebooks (JN). I have installed JN using Anaconda. Whenever I launch it, it opens in MS Edge. However, I want it to use Chrome as the default browser. I followed this link to do so: ;ab_channel=technologyCult . Essentially I created jupyter_notebook_config.py by running the command jupyter notebook --generate-config. Then I modified the config file by adding this line, which points to the location of the Chrome.exe. c.ServerApp.browser = '"C:/Program Files/Google/Chrome/Application/chrome.exe" %s' When I launch JN, it still opens in Edge.

I am new to Jupyter Notebooks (JN). I have installed JN using Anaconda. Whenever I launch it, it opens in MS Edge. However, I want it to use Chrome as the default browser. I followed this link to do so: https://www.youtube/watch?v=6Ed9KD_fR6U&ab_channel=technologyCult . Essentially I created jupyter_notebook_config.py by running the command jupyter notebook --generate-config. Then I modified the config file by adding this line, which points to the location of the Chrome.exe. c.ServerApp.browser = '"C:/Program Files/Google/Chrome/Application/chrome.exe" %s' When I launch JN, it still opens in Edge.

Share Improve this question asked Mar 20 at 13:42 user466663user466663 8574 gold badges20 silver badges45 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Try to modify the path from:

c.ServerApp.browser = '"C:/Program Files/Google/Chrome/Application/chrome.exe" %s' to : c.ServerApp.browser = r'"C:\Program Files\Google\Chrome\Application\chrome.exe" %s' or c.ServerApp.browser = '"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe" %s'

somtimes there are problems in / and \ also try to restart your jupyter notebook to see the result.

发布评论

评论列表(0)

  1. 暂无评论