由于之前使用deepdive和snorkel,用到了jupyter,所以这里笔记记录下。
https://www.cnblogs.com/nxld/p/6566380.html
Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言。
1,在命令行执行jupyter notebook,
打开下面蓝色的链接
2,新建一个python2的脚本,
3,主要菜单
执行Shift + Enter
4,添加各级标题和注释
markdown 和heading
5,使用matplot画图的例子
# coding: utf-8
# In[1]:
1+2
# In[2]:
1+4
# # first test
# ## second
#
# add two numbers
# In[3]:
get_ipython().magic(u'matplotlib inline')
# In[4]:
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(20)
y = x**2
plt.plot(x, y)
# #
# In[ ]: