前言
在平时,为了便于直接观测代码的部分运行过程,我们可以使用jupyter notebook,一款很好用的本地开发工具
安装方法
conda install jupyter notebook
安装好后输入
jupyter notebook
更改工程目录
不难发现,目前的工程目录是
C:\Users\dell
在这里我们可以更改一下默认的工程目录以便之后更好的管理工程
输入
jupyter notebook --generate-config
打开notebook配置文件
找到c.NotebookApp.notebook_dir
将‘’改成‘E:\notebook’并取消前面的注释符
重新运行jupyter notebook发现工程目录已经被改变
我们新建一个Python文件试试效果:
是不是很方便呢~
jupyter notebook如何换背景
#首次使用pip
conda install pip
#安装主题:
pip install jupyterthemes
#更新Jupyter主题:
pip install --upgrade jupyterthemes
#查看可用主题:
jt -l
#切换主题:
jt -t 主题名 -T -N