Windows修改jupyter notebook打开后的路径请参考:https://blog.csdn.net/weixin_35757704/article/details/90051869
mac上安装好Anaconda-Navicator后在命令行输入:
jupyter-notebook --generate-config
然后会提示:
Writing default config to: /Users/用户名/.jupyter/jupyter_notebook_config.py,这个就是jupyter配置文件的路径,继续在命令行输入:
open .jupyter/jupyter_notebook_config.py
在打开的文件中找到下面的两行:
## The directory to use for notebooks and kernels.
# c.NotebookApp.notebook_dir = ''
修改为:
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = '你期望的绝对路径'
保存并退出后,以后使用 jupyter-notebook命令就会是自定义的路径了,不论是直接使用命令打开还是使用anaconda打开都会是这个命令。
jupyter 插件请参考:https://blog.csdn.net/weixin_35757704/article/details/85447596