1. Add jupyter_ notebook_ Config.py configuration file
·For Windows systems, open Anaconda prompt and enter the following command:
jupyter notebook --generate-config
After executing the command, it will generate a file named Jupiter_ notebook_ Config. Py
At the same time, the window will display the path of the configuration file, such as C: \ users \ user \. Jupyter \ jupyter_ notebook_ config.py
·For Linux system, open the terminal and directly enter the following commands
jupyter notebook --generate-config
After executing the command, it will generate a file named Jupiter_ notebook_ Config. Py
At the same time, the window will display the path of the configuration file, such as /home/user /. Jupyter/jupyter_ notebook_ config.py
。
2. Modify jupyter_ notebook_ Config.py configuration file
Open the file Jupiter according to the file path above_ notebook_ config.py
Find this line:
#c.NotebookApp.notebook_dir=''
Add the file path you want in ” and remove #, for example:
c.NotebookApp.notebook_dir='C:\Users\user\workspace'
Finally, create this folder under the corresponding file path, otherwise an error will be reported when opening Jupiter notebook.
Similar Posts:
- Jupyter notebook new Python3 Error: Permission denied: Untitled.ipynb,Modify workspace
- Jupyter Notebook error: How to IOPub_data_rate_limit [How to Solve]
- Error in importing tensorflow in Jupiter Notebook: no module named tensorflow solution
- Using the jupyter notebook (error/usr/bin/python3: no module named ipykernel) on the local browser remote server_ launcher)
- [Solved] VS Code Error: ((this.configurationService.getValue(…) || []).filter is not a function)
- [Solved] Exception: Jupyter command `jupyter-notbook` not found.
- [Solved] Jupiter notebook failed to start Error: DLL load failed
- NameError: name ‘true’ is not defined when opening ipynb file in jupyter notebook
- IProgress not found. Please update jupyter and ipywidgets [How to Solve]
- GitHub common operations and common errors! Error prompt: fatal: remote origin already exists