earlier my dashboard was working fine. Then i added some callbacks and it started showing ‘error loading layout’. To check , i removed my callback code and tried running it again . To my surprise , even my previous code (which was working fine earlier) stared giving ‘‘error loading layout’’ message . I am ruuning it on Jupyter. This is my code without callback:
‘’’
app = JupyterDash(name, external_stylesheets=[dbc.themes.BOOTSTRAP])
dropdown_list = {‘Sectoral Indices’: sectors_df, ‘F&O Stocks’: fno_df, ‘Nifty 50’: nifty50_df, ‘Bank Nifty’:banknifty_df}
time_frames = [“Daily”, ‘Weekly’, “Monthly”, ‘Quarterly’]
advances = “x”
decline = “y”
adv_dec_card = dbc.Card(dbc.CardBody([
html.H4(“Advances / Decline”, className = “card-title”),
html.P(
f"{advances} / {decline}", className = “card-text”
)
]
), style = {“width”: “18rem”, “text-align”:“center”}
)
#def layout():
app.layout = html.Div([
html.H1(children=“Dashboard”),
html.Hr(),
dbc.Row(
dbc.Col(html.Div(dcc.Dropdown(id=‘dropdown’, options = dropdown_list, value=‘Nifty 50’, )), width=3
)),
html.Br(),
html.Br(),
dcc.RadioItems(time_frames, “Daily”, labelStyle={‘display’: ‘block’}),
html.Br(),
html.Br(),
adv_dec_card,
html.Br(),
html.Img(src = ‘https://www.tetonpinesfinancial.com/wp-content/uploads/2016/01/Bulls-vs.-Bears.jpg’,
height = 150, width=300),
],
style={'padding': 15, 'flex': 1}
)
if name == “main”:
app.run_server()
‘’’
Kindly help . I have to submit my assignment .