jupyter notebook configuration starts chrome browser by default

1. View the installation path of chrome

 2. Configuration files in C: \ Users \ Administrator \ .jupyter directory

Find jupyter_notebook_config.py in the above directory, if not, create a new one, the content of the text is as follows, pay attention to the installation path corresponding to the local chrome

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

 

As configured above, click start jupyter notebook to start chrome

Published 92 original articles · Likes5 · Visitors 10,000+

Guess you like

Origin blog.csdn.net/xfb1989/article/details/105417522