First, do not automatically jump browser
1, first open cmd window, generating the configuration file using jupyter notebook --generate-config command
2, the generated configuration file is opened (py files)
3, after opening the configuration file, add the following code (here, an example in chrome browser):
Import the WebBrowser webbrowser.register ( " Chrome " , None, webbrowser.GenericBrowser ( " D: \ Google \ Chrome \ the Application \ chrome.exe " )) # path for their browser path c.NotebookApp.browser = ' Chrome ' # browser name
4. Finally, you can save it
Second, modify the default path
Open the configuration file, add the following code:
= c.NotebookApp.notebook_dir " add here the default path ."
After adding you can save