In [1]:
# Import the plotting function from Plotly's offline library.
from plotly.offline import iplot
from plotly.offline import init_notebook_mode
In [2]:
# Confirm that we're trying to work in offline mode only.
# Connected means that we're online, just not attempting to communicate with Plotly servers.
init_notebook_mode(connected=True)
In [3]:
# Create our figure.
figure = {
"data": [{"y": [2, 1, 2]}],
"layout": {}
}
In [4]:
# Dump the figure into our output.
iplot(figure)