Hi,
I am trying to run the following code;
import dash
from dash import dcc
from dash import html
from dash.dependencies import Output, Input
import dash_bootstrap_components as dbc
import plotly.graph_objects as gp
import numpy as np
import pandas as pd
#Data
df_01=pd.read_csv('pyramid.csv')
app= dash.Dash((__name__),external_stylesheets=[dbc.themes.FLATLY],
meta_tags=[{'name': 'viewport',
'content': 'width=device-width, initial-scale=1.0'}]
)
#Layout
app.layout = dbc.Container([
:::python
I do not use a virtualenv because after loading dash and pandas my diskspace is already full. So I use the normal enviroment with the dash in the batteries. Yet I recieve following error if I run this code in pythonanywhere:
Traceback (most recent call last):
File "/home/lovitas/pyAny/bootapp_clean.py", line 2, in <module>
from dash import dcc
ImportError: cannot import name 'dcc' from 'dash' (/usr/local/lib/python3.9/site-packages/dash/__init__.py)
On my local instance this is error does not occur. Since I am a total beginner any help would be appreciated!