I am trying to run a module named dash from the example on this link.
However, I keep receiving an error as shown:
ImportError Traceback (most recent call last)
in ()
1 import pandas.io.data as web
2
----> 3 from dash.react import Dash
4 from dash.components import (div, h2, label,
5 PlotlyGraph, Dropdown)
ImportError: No module named 'dash'
What can I do to solve this problem? I am running on Jupyter and Mac OS X.
Hi there,
Did you follow the quickstart instructions at the link where you found the example: http://plotly-dash.herokuapp.com/
Specifically, it seems like you may not have run pip install dash.ly --upgrade .
Thanks for specifying, it will only work with python 2.x
We likely won’t be updating that example in the near future, but I may have some other examples that could help you out depending on what you’re trying to accomplish:
a) We’ve recently added some reactive features into our javascript library so you can add dropdowns and sliders (time series) to your graphs with Plotly: https://plot.ly/python/dropdowns/ // https://plot.ly/python/range-slider/
b) This dash repo did have updated examples to work with python 3: https://github.com/plotly/dash (though as noted in the README, we’re no longer supporting these examples, and are working to develop a slightly different dash product for the future)
Another possible solution is that the python file can only be executed from the command prompt. When you attempt to execute the file inside an IDE, you will get that error.