Jupyter notebook Changing the default path for file opening
Step 1: Modify the icon
- Find the Jupyter notebook desktop icon
- Right-click on the Jupyter notebook desktop icon and click Properties.
- Find %USERPROFILE% and delete it (just delete it, don't change anything else)
- Remove %USERPROFILE% and leave the rest as default, don't change it.
Step 2: Generate Configuration File
- The windows key + R brings up the Run window
- Type cmd in the Run window to open a command line window.
- Type jupyter notebook --generate-config and hit enter.
- This generates a file
Step 3: Modify the configuration file
- Open configuration file
- Find #.notebook_dir = '' and modify it
- ctrl + s to save changes to this file is sufficient. (The file with your path information needs to be created in advance)
Step 4: Open Jupyter notebook
- Double-click the Jupyter notebook desktop icon.
- Run window pops up
- The page opens normally, but the path has been changed
be highly successful !
Supplement:
Some of you have encountered that after starting jupyter notebook, the program just starts the command line, but does not automatically display the web page in a pop-up window, which is quite a headache.
I have another blog for you here as well.
It is used to solve the problem of launching jupyter notebook without automatically popping up the page.The portal is here.
The above is a personal experience, I hope it can give you a reference, and I hope you can support me more.