Using plotly without online plotly account
Yes, it can be done. The only purpose of having a plotly
account is to host the graphs in your plotly
account.
Plotly Offline
allows you to create graphs offline and save them locally. Instead of saving the graphs to a server, your data and graphs will remain in your local system.
You can work offline without having a plotly account.The plotly version should be 1.9.x series or higher.
import numpy as npfrom plotly import __version__from plotly.offline import download_plotlyjs, init_notebook_mode, plot,iplotprint (__version__) # requires version >= 1.9.0#Always run this the command before at the start of notebookinit_notebook_mode(connected=True)import plotly.graph_objs as gox=np.array([2,5,8,0,2,-8,4,3,1])y=np.array([2,5,8,0,2,-8,4,3,1])data = [go.Scatter(x=x,y=y)]fig = go.Figure(data = data,layout = go.Layout(title='Offline Plotly Testing',width = 800,height = 500, xaxis = dict(title = 'X-axis'), yaxis = dict(title = 'Y-axis')))plot(fig,show_link = False)
Your offline plotly library is setup.Reference : Plotly Offline Tutorial