jupyter notebook安装与配置

jupyter notebook是一个很是好用工具,和ipython有点相似,可是比ipython使用起来更加方便。它可以记录咱们全部操做记录及输出结果,可以支持matplotlib可视化,实际工做中,一些逻辑处理能够在jupyter先实现,而后再添加到IDE中。python

在咱们安装完成Python以后,可使用pip命令进行安装,具体以下:浏览器

pip install jupyter notebookide

jupyter notebook安装与配置

安装完成以后运行:jupyter notebook,以下图:
jupyter notebook安装与配置工具

浏览器中打开地址以下图:
jupyter notebook安装与配置命令行

在开始以前咱们配置工做目录:
命令行输入: jupyter notebook --generate-config 生成配置文件
jupyter notebook安装与配置
打开文件,设置工做目录:
jupyter notebook安装与配置
结果以下:
jupyter notebook安装与配置
从新启动Jupyter,结果以下:
jupyter notebook安装与配置
建立一个工做目录与Python文件,运行结果以下:
jupyter notebook安装与配置
若是咱们想要在另外一台电脑访问页面,启动Jupyter时须要添加IP地址,以下:
jupyter notebook安装与配置
在另外一台电脑使用浏览器打开这个地址就可使用了。ip

下面咱们来看Jupyter使用:
新建一个文档:
jupyter notebook安装与配置
看下输入:
jupyter notebook安装与配置
在这里输入一条而后运行:文档

jupyter notebook安装与配置

快捷键查看:
jupyter notebook安装与配置it

主要快捷键:
插入cell:
jupyter notebook安装与配置
格式变化:
jupyter notebook安装与配置
这样jupyter基本使用就能够了,
咱们也可使用ctl+s随时保存文档;
这样咱们全部操做记录就保存下来,下次打开直接使用。pip