Jupyter Notebook使用

一、在电脑中Python2和Python3并存的情况下安装Jupyter Notebook

直接使用pip install Jupyter,好像是旧Python2,所以安装失败。
所以可以指定python3安装
python3 -m pip install --upgrade pip --force-reinstall
python3 -m pip install jupyter
参考blog:https://blog.csdn.net/Robotzzg/article/details/80018579

二、修改Jupyter Notebook的浏览器

cmd中jupyter notebook --generate-config

image.png

去对应的路径下找到配置文件
C:\Users\用户名.jupyter\jupyter_notebook_config.py
增加以下三行:
import webbrowser
webbrowser.register( "Chrome", None, webbrowser.GenericBrowser("C:/Program Files (x86)/Google/Chrome/Application/Chrome.exe"))
c.NotebookApp.browser = "Chrome"
即可使用其他浏览器打开。
image.png

参考blog:https://www.cnblogs.com/lqqgis/p/12743777.html

三、使用界面

image.png
image.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容