Jupyter
安装
#For Python2
pip install jupyter
#For Python3
pip3 install jupyter
使用
jupyter notebook
执行上面命令之后, Jupyter Notebook 将在你的默认浏览器中打开,网址为:http://localhost:8888/tree#notebooks
Plotly
查看版本
import plotly
print plotly.__version__
折线图(online)
import plotly.plotly as py
from plotly.graph_objs import *
trace0 = Scatter(
x=[1, 2, 3, 4],
y=[10, 15, 13, 17]
)
trace1 = Scatter(
x=[1, 2, 3, 4],
y=[16, 5, 11, 9]
)
data = Data([trace0, trace1])
py.plot(data, filename='basic-line')
其他查看官网
https://plot.ly/python/
Jupyter& Plotly