- 打开Anaconda Prompt
-
输入
C:UsersAdmin>jupyter notebook --generate-config
显示
Writing default config to: C:UsersAdmin.jupyterjupyter_notebook_config.py
找到该位置 C:UsersAdmin.jupyter
,打开 jupyter_notebook_config.py
,
搜索dir
,找到
## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = '#'
修改为
c.NotebookApp.notebook_dir = '
记得去掉前面的#
' F:pythonJupyter
检查是否修改成功:在Anaconda Prompt 输入 jupyter notebook
,
Serving notebooks from local directory:
F:pythonJupyter
2. Jupyter Notebook (Anaconda3)
修改目标,起始位置
目标(T):" 把其中最后面的 %USERPROFILE% 去掉.
起始位置(S):
c.NotebookApp.notebook_dir = '
中指定的
'F:pythonJupyter
F:pythonJupyter
安装Thems
pip install jupyterthemes jt -t monokai -f fira -fs 12 -ofs 12 -dfs 12 -nfs 11 -tfs 11 -N -T jt -l