快速解决jupyter启动卡死的问题
问题描述
系统: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启动服务器,正常运行
补充知识:jupyter notebook 浏览器打开空白卡死情况
jupyter notebook 需要用谷歌浏览器打开才可以,其他的浏览器打开后多半是空白的。添加默认浏览器如下:
1.在anaconda prompt 里面直接输入或cmd中输入(前提是已经将anaconda加入环境变量):
jupyter notebook --generate-config
让jupyter生成一个配置文件,生成后你会看到文件地址的,如图所示:
C:\Users\Administrator\.jupyter\jupyter_notebook_config.py
2.然后就可以使用记事本之类的,打开这个jupyter_notebook_config.py文件
然后查找,browser,找到如下代码:
## Specify what command to use to invoke a web browser when opening the notebook. # If not specified, the default browser will be determined by the `webbrowser` # standard library module, which allows setting of the BROWSER environment # variable to override it. #c.NotebookApp.browser = u''
在这个后面,添加如下代码(google浏览器):
## Specify what command to use to invoke a web browser when opening the notebook. # If not specified, the default browser will be determined by the `webbrowser` # standard library module, which allows setting of the BROWSER environment # variable to override it. #c.NotebookApp.browser = '' import webbrowser webbrowser.register('chrome', None, webbrowser.GenericBrowser(u'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe')) c.NotebookApp.browser = 'chrome'
以上这篇快速解决jupyter启动卡死的问题就是小编分享给大家的全部内容了,希望能给大家一个参考
您可能感兴趣的文章:
- 快速解决低版本Xcode不支持高版本iOS真机调试问题
- linux下因为系统编码问题造成乱码的快速解决方法
- 快速解决Android中的selinux权限问题【转】
- 关于JFace的TableViewer中引入ComboBoxCellEditor 快速双击对于Cell Combo无法展开问题的解决
- 快速解决vue动态绑定多个class的官方实例语法无效的问题
- php将mysql数据表(含中文数据)导出生成excel表,快速生成且解决中文乱码问题。
- Listview异步加载缓存图片,解决快速滑动问题
- 快速解决jquery之get缓存问题的最简单方法介绍
- 快速解决Canvas.toDataURL 图片跨域的问题
- 快速使用FileProvider解决Android7.0文件权限问题
- 【实践】从eclipse集成快速上手到IDEA14集成开发环境最可能出现的问题与解决办法
- 快速解决跨域请求问题:jsonp和CORS
- 快速解决SpringMVC @RequestBody 用map接收请求参数的问题
- 【7gyy】教你如何快速解决Win8不能上网问题
- 快速解决angularJS中用post方法时后台拿不到值的问题
- 快速解决fragment叠加问题
- 阅读go项目源码,解决无法快速找到interface有哪些struct实现问题
- python MySQLdb在windows环境下的快速安装、问题解决方式
- 动态规划,必需这样,必需不能这样,是快速解决某类问题的关键所在。 认识自身7
- 阅读go项目源码,解决无法快速找到interface有哪些struct实现问题