Installed Winpython , run Jupyter Notebook.exe
or Jupyter lab.exe
always not automatically open the browser, suggesting that "no web browser found"
A Solution
- open a file
settings\.jupyter\jupyter_notebook_config.py
- search for
webbrowser
- Remove the
c.NotebookApp.browser = ''
front#
, and the read line
c.NotebookApp.browser = u'D:/ProgramFiles/Browsers/Chrome75/MyChrome.exe %s'
- Save changes.
- Running
Jupyter Notebook.exe
orJupyter lab.exe
already automatically open the browser.
Solution two
In the solution [A] a third step, add the following code
#import webbrowser webbrowser.register("Chrome",None,webbrowser.GenericBrowser(u'D:/ProgramFiles/Browsers/Chrome75/MyChrome.exe)) c.NotebookApp.browser = 'Chrome'
Save changes
note
- The above
D:/ProgramFiles/Browsers/Chrome75/
is chrome installation directory, I used Mychorm green. - If you do not
jupyter_notebook_config.py
, you can runjupyter notebook --generate-config
, it will automatically generate configuration files.