Python.exe下载
百度网盘下载链接
Python.exe 安装完成后,进入到 cmd 界面
之前跑到 “Python3.5(64bit)” 下pip install jupyter, 后来发现错了,应该是去cmd 下面输入命令行。
python -m pip install –upgrade pip
python -m pip install jupyter
或 py-3 -m pip install jupyter
安装成功后:输入 jupyter notebook
同时,默认浏览器会打开 Jupyter notebook 窗口。 说明 Jupyter notebook 安装成功了。
参考博客
配置 Jupyter notebook,用于本地代码管理
重新打开一个cmd,并输入:
jupyter notebook –generate-config
打开“.jupyter”文件夹,可以看到里面生成了一个新的配置文件。
找到第 214 行 【 #c.NotebookApp.notebook_dir = ’ ’ 】
改为我自己的代码文件目录
c.NotebookApp.notebook_dir = ‘D:\pycode\JupyterNotebook’
配置文件修改完成后, 以后在 jupyter notebook 中写的代码等都会保存在自己创建的目录中。
配置文件修改成后,在cmd 命令行窗口中输入 jupyter notebook,再次启动 jupyter notebook,cmd 显示出自己本地存放 jupyter 代码的文件夹路径,而默认浏览器则会打开一个页面。
因为我的本地文件夹下面还没有写代码,所以是空的。The notebook list is empty.