plotly v1.9.4 Release Notes
Release Date: 2016-01-11 // over 8 years ago-
โ Added
- Offline plotting now works outside of the IPython/Jupyter notebook. Here's an example: ``` from plotly.offline import plot from plotly.graph_objs import Scatter
plot([Scatter(x=[1, 2, 3], y=[3, 1, 6])])
๐ป This command works entirely locally. It writes to a local HTML file with the necessary [plotly.js](https://plot.ly/javascript) code to render the graph. Your browser will open the file after you make the call. The call signature is very similar to `plotly.offline.iplot` and `plotly.plotly.plot` and `plotly.plotly.iplot`, so you can basically use these commands interchangeably. ๐ If you want to publish your graphs to the web, use `plotly.plotly.plot`, as in:
import plotly.plotly as py from plotly.graph_objs import Scatter
py.plot([Scatter(x=[1, 2, 3], y=[5, 1, 6])])
This will upload the graph to your online plotly account.