Jupyter Notebook的使用
2016-11-12 15:05
627 查看
1.使用命令jupyter notebook启动,启动之后我们在浏览器端看到Jupyter server的页面,这里显示当前目录的tree
2.创建一个notebook, 点击 New按钮, 选择Notebook的kernel(如Python 3).
3.这里主要包括了两个notebook cell:Markdown cell和code cell
选择code cell,输入:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
print("hello world!")
plt.imshow(np.random.rand(20,20),interpolation='none');
from IPython.display import display_html
from IPython.html.widgets import FloatSlider
display_html('<table><tr><td>some</td><td>table</td></tr></table>',raw=True)
FloatSlider(value=70)
4.Markdown cell和code cell这两种模式下的快捷键
• Ctrl + Enter: run the cell
• Shift + Enter: run the cell and select the cell below
• Alt + Enter: run the cell and insert a new cell below
• Ctrl + S: save the notebook
5.编辑模式下的快捷键
• Esc: switch to command mode
• Ctrl + Shift + -: split the cell
6.命令行模式下的快捷键
• Enter: switch to edit mode
• ↑ or k: select the previous cell
• ↓ or j: select the next cell
• y / m: change the cell type to code cell/Markdown cell
• a / b: insert a new cell above/below the current cell
• x / c / v: cut/copy/paste the current cell
• dd: delete the current cell
• z: undo the last delete operation
• Shift + =: merge the cell below
• h: display the help menu with the list of keyboard shortcuts
2.创建一个notebook, 点击 New按钮, 选择Notebook的kernel(如Python 3).
3.这里主要包括了两个notebook cell:Markdown cell和code cell
选择code cell,输入:
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
print("hello world!")
plt.imshow(np.random.rand(20,20),interpolation='none');
from IPython.display import display_html
from IPython.html.widgets import FloatSlider
display_html('<table><tr><td>some</td><td>table</td></tr></table>',raw=True)
FloatSlider(value=70)
4.Markdown cell和code cell这两种模式下的快捷键
• Ctrl + Enter: run the cell
• Shift + Enter: run the cell and select the cell below
• Alt + Enter: run the cell and insert a new cell below
• Ctrl + S: save the notebook
5.编辑模式下的快捷键
• Esc: switch to command mode
• Ctrl + Shift + -: split the cell
6.命令行模式下的快捷键
• Enter: switch to edit mode
• ↑ or k: select the previous cell
• ↓ or j: select the next cell
• y / m: change the cell type to code cell/Markdown cell
• a / b: insert a new cell above/below the current cell
• x / c / v: cut/copy/paste the current cell
• dd: delete the current cell
• z: undo the last delete operation
• Shift + =: merge the cell below
• h: display the help menu with the list of keyboard shortcuts
相关文章推荐
- anaconda2 打开jupyter Notebook及简单使用
- IPython notebook(Jupyter Notebook) 的使用
- jupyter notebook使用方法
- Jupyter Notebook快速入门(3):各种使用方法
- 在windows下使用jupyter notebook
- 1 docker环境使用tensorflow以及jupyter notebook的使用
- jupyter notebook使用不同的kernel
- 如何在Jupyter Notebook中使用Tensorflow
- Python-Jupyter Notebook使用技巧
- jupyter notebook使用技巧
- 使用pelican搭建一个Jupyter Notebook数据科学博客
- Jupyter notebook 使用Turorial
- Jupyter notebook安装使用中的问题
- jupyter notebook的安装与使用
- Jupyter Notebook使用笔记(一)
- Jupyter notebook 使用 [持续更新]
- 在Jupyter notebook中配置和使用spark
- 在Jupyter Notebook 中使用 Tensorflow
- jupyter notebook的安装与使用
- 远程使用内网服务器的tensorboard和jupyter notebook