(1)配置文件路径
不管是使用anaconda还是pip安装完jupyter notebook后先不要启动,应当先配置目录路径。
打开cmd命令提示符窗口输入:Jupyter notebook --generate-config,
此时在C:\Users\Administrator\.jupyter\jupyter_notebook_config.py目录下会生成配置文件,
打开配置文件,搜索c.NotebookApp.notebook_dir = ‘’,大概在261行,将注释去掉,放入你想保存jupyter文件的目录
找到Jupyter notebook图标,右键打开属性对话框
去掉”启动位置“后的"%USERPROFILE%"
将"起始位置"修改成你的默认打开目录
(2)配置主题背景和字体
在控制台下安装jupyter-themes:pip install --upgrade jupyterth
使用 jt -l查看所有可用主题,
更改主题背景:jt -t 主题名
更改字体:jt -f 字体名
推荐配置组合:jt -t oceans16 -f inconsolata
jt -t grade3 -f inconsolata