Hello,
create a virtual environment, and install flask and dash, I create my application but it is as if the virtual environment will not take me when I run the application because it tells me that ModuleNotFoundError: No module named 'dash'
.
import dash
import dash_core_components as dcc
import dash_html_components as html
external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"]
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
app.layout = html.Div(
[
html.H1("Hola mundo"),
dcc.Graph(
id="my_firts_graph",
figure={
"data": [
{"x": [1, 2, 3], "y": [23, 15, 22], "type": "line", "name": "line"},
{"x": [1, 2, 3], "y": [5, 2, 8], "type": "bar", "name": "bar"},
],
"layout": {"title": "mi primer grafico con Dash"},
},
),
dcc.Input("Input"),
]
)
[edited by admin: code formatting]