Error when running plotly on python Jupyter



I’ve got error when running plotly in Jupyter. Plotly version 3.4.2, python version 3.6.5, Windows 10.

My code:
from plotly import version
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import plotly.graph_objs as go
plot([go.Scatter(x=[1, 2, 3], y=[3, 1, 6])])

AttributeError: module ‘plotly.validators.scatter.marker.colorbar’ has no attribute ‘TitlefontValidator’

Could you please help me with it?


Hi @sirorezka,

Sometimes this kind of problem can happen if there are somehow multiple copies of installed. Could you check the output of pip list and conda list to see if plotly shows up in both places?