I’m trying the example code from “basic dash callback”.
However, I got the following error:
❯ python3 test.py
Traceback (most recent call last):
File "test.py", line 3, in <module>
import dash_html_components as html
ModuleNotFoundError: No module named 'dash_html_components'
I’m not sure why because I do have dash_html_components installed as shown below, and the python interpreter I’m using in vscode is set as “Python 3.8.12 64-bit (‘base’: conda)” already.
❯ conda list dash
# packages in environment at /Users/USERNAME/opt/anaconda3:
#
# Name Version Build Channel
dash 2.0.0 pyhd8ed1ab_0 conda-forge
dash-core-components 1.15.0 pypi_0 pypi
dash-html-components 1.1.2 pypi_0 pypi
dash-renderer 1.9.0 pypi_0 pypi
dash-table 4.11.2 pypi_0 pypi
jupyter-dash 0.4.0 pyhd8ed1ab_0 conda-forge
Have I missed anything important here?