Just installed Plotly 3.0.0 and tried the new syntax suggested in the Medium article.
When I print the widget, I get nothing (no plot shows up).
When I then open the console, I see the following Javascript error:
Temp%20distribution%20for%20avg%20flight.ipynb#:1 Uncaught (in promise) Error: Script error for âplotlywidgetâ http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:165)
at HTMLScriptElement.onScriptError (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1732)
Am I missing something, maybe some dependency?
I am running in Python 3.6.2
Ah, the missing dependency was the newest version of the notebook module.
Interesting that âpip install -U plotlyâ will not automatically install that dependencyâŚ
Iâm guessing that the issue has to do with dependencies. Unfortunately, pip install -U doesnât force upgrade all the dependencies, so something might be missing. For me, it was the notebook module. For you it might be something else.
I would try running pip install -U plotly and look at the output from pip. Try and manually install everything that pip doesnât. If that doesnât help, respond to this thread again.
I went over all plotly dependencies, but all libraries seem to be up to date and above the requirement.
if that makes any difference, I am using python 3 kernel within a notebook that is part of AWS SageMaker.
I use python 3.6.2 and have no issues.
Prior to executing the cell which causes the error (or isnât displaying), open your javascript console.
Then execute the cell.
Are you seeing any js errors or warnings?