由於之前使用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[ ]: