Jupyter Notebook的安装与配置(非anaconda环境)
安装Jupyter Notebook
pip3 install jupyter -i https://pypi.tuna.tsinghua.edu.cn/simple
安装扩展库
pip3 install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple
安装jupyterthemes
pip3 install jupyterthemes -i https://pypi.tuna.tsinghua.edu.cn/simple
修改主题(在cmd中输入)
jt -t chesterish -T -f fira -fs 14 -cellw 90% -ofs 14 -dfs 14
修改默认目录
在cmd中(若在anaconda环境下则在 anaconda prompt 中)输入:jupyter notebook --generate-config,查看jupyter_notebook_config.py存储的位置
打开jupyter_notebook_config.py,找到下面连续的两行:
## The directory to use for notebooks and kernels.
#c.NotebookApp.notebook_dir = ''
将#c.NotebookApp.notebook_dir = '' 改为c.NotebookApp.notebook_dir = ''你想要设置的目录"
注意:将#删除,将路径中的\改为//