Jupyter notebook modify the default browser, anaconda powershell prompt to open jupyter notebook

anaconda powershell prompt open jupyter notebook

1. Open the anaconda prompt

2. Enter jupyter notebook --generate-config

3. Show the directory where the jupyter_notebook_config.py file is located. Find this file and open it with Notepad.

4. Ctrl+F search ``# c.NotebookApp.browser =''

Add the following statement block after ``# c.NotebookApp.browser ='':

import webbrowser

webbrowser.register("chrome",None,webbrowser.GenericBrowser(u"C:\\Users\\asus\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe"))

c.NotebookApp.browser = 'chrome'

5. The address in the previous article should be replaced with the actual installation location of chrome on this machine. The viewing method is start menu-chrome-right-click properties. The shortcut tab has the target, which is the full path, just stick it on it. Note that the "\" of the directory should be changed to double "\"

6. Enter "cd file path" and
enter jupyter notebook to start jupyter notebook


7. Open the path later: anaconda prompt → input: cd C:\Users\asus\Desktop\iPython → input: jupyter notebook

Guess you like

Origin blog.csdn.net/qq_43210525/article/details/108766154