问题描述
系统:Win10;之前安装过Cpython,现在依次使用pip install ipython
与pip install jupyter
安装了 Ipython 6.5.0与 jupyter 1.0.0。但是在PowerShell上使用命令jupyter notebook
运行jupyter时服务器始终卡顿,根本没法用。
解决方法
- 使用命令
jupyter notebook --generate-config
可看到文件 jupyter_notebook_config.py位置 - 手动打开文件进行编辑,找到
c.NotebookApp.notebook_dir
修改默认目录并去掉注释保存,最好修改目录到非C盘c.NotebookApp.notebook_dir = 'E:\\Program Files\Python3_6_6\jupyter'
(大约246行,注意磁盘名后面是双斜线) jupyter notebook
启动服务器,正常运行