- Open the terminal in anaconda
- Type in the terminal
jupyter notebook --generate-config
The storage location of the configuration file will pop up
- Open finder, ./jupyter is a hidden file, so you need to enter it in the terminal
defaults write com.apple.finder AppleShowAllFiles -bool true;
KillAll Finder
The first sentence is to display hidden files, and the second sentence is to close the opened finder window;
- Find jupyter_notebook_config, py, is the configuration file, after opening, find
- Remove # before dir, add the path you want to save in '', and save the file after modification .
If you need to close the hidden files, in the original two sentences, change true to false.