美文网首页
windosws下安装jupyter notebook启动后空白

windosws下安装jupyter notebook启动后空白

作者: 快乐冻鱼 | 来源:发表于2019-03-31 11:13 被阅读0次

问题:

visual studio community 2017,安装了python。安装jupyter notebook,运行后一片空白。

解决方法:

1. 编辑notebookapp.py,在def init_mime_overrides(self):函数后面再加一行, 存储覆盖。如果无权限,先临时存在桌面,用复制>粘贴的方法,按照提示覆盖就可以。

         mimetypes.add_type('application/javascript','.js')

增加js类型MIME

     notebookapp.py的路径(C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Lib\site-packages\notebook),此路径是visual studio community 2017的。

如果找不到,在资源浏览器搜索 notebookapp.py文件。

2. 运行jupyter notebook。

 执行命令:C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Scripts>jupyter notebook

   运行jupyter notebook,注意先CD到C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Scripts路径。

 3.  在chrome浏览器中,输入http://localhost:8888/tree?,回车。注意,不要使用系统自带的浏览器或其他浏览器。

jupyter notebook 真身

大功告成。

参考:capsult. 关于JupyterNotebook启动后页面空白的解决方案

相关文章

网友评论

      本文标题:windosws下安装jupyter notebook启动后空白

      本文链接:https://www.haomeiwen.com/subject/ciyybqtx.html