Jupyter Notebook初见
1、Jupyter Notebook介绍
web版的ipython
编程、写文档、记笔记、展示
格式.ipynb
2、为什么使用Jupyter Notebook?
- 画图方面的优势:图像的生成不会堵塞后面代码的执行
- 数据展示方面的优势:生成的数据可以保存在文件中
3、Jupyter Notebook的使用
1)界面启动、创建文件
在终端输入jupyter notebook
bash
jupyter notebook
2)cell操作
cell:一对In Out会话被视作一个代码单元,称为cell
编辑模式:enter、鼠标点cell
命令模式:esc、鼠标点cell之外
3)快捷键操作
执行代码:shift + enter
命令模式:
A:在当前cell的上面添加cell
B:在当前cell的下面添加cell
双击D:删除当前cell
编辑模式:
多光标操作:Ctrl键点击鼠标
回退:Ctrl+Z
补全代码:变量、方法后跟Tab键
为一行或多行代码添加/取消注释:Ctrl+/
4)markdown操作
1、更改Markdown
显示模式

2、输入内容

3、shift + enter渲染md
