App does not update

Hi I am relatively new to developing apps using dash.
I am using JupyterDash(). I am unable to see the updates on the web browser after making a change and saving and refreshing the browser.
This link (My web app doesnt update in my browser when i make any changes to the code) suggested to changing the port, but then every time I make an update I have to change the port, which I think is not the correct way of doing this.
Could you please help. Here is a minimal example I am trying at the moment.
Thanks

app = JupyterDash(name)

app.layout = html.Div([
html.H1(‘My Title’),
html.P(“Select a date:”),
dcc.Dropdown(
id=‘date’,
options=[‘2022-11-30’, ‘2022-12-31’],
value = ‘2022-11-30’
# inline=True
),
dcc.Graph(id=“graph”),
])

app.css.config.serve_locally = True
app.scripts.config.serve_locally = True

if name == “main”:
app.run_server(debug=True, host=“0.0.0.0”, port=“8059”, use_reloader=False)

Welcome to the forums, @dhunfini.

I assume you are using dash in jupiter? There is no need anymore for JupyterDash starting with dash v2.11.0.

Concerning your code snippet, this code works on my side.

import dash
from dash import Dash, html, dcc

app = Dash(__name__)

app.layout = html.Div(
    [
        html.H1('My Title'),
        html.P('Select a date:'),
        dcc.Dropdown(
        id='date',
            options=['2022-11-30', '2022-12-31'],
            value = '2022-11-30'
            # inline=True
        ),
        dcc.Graph(id='graph'),
    ]
)

app.css.config.serve_locally = True
app.scripts.config.serve_locally = True

if __name__ == '__main__':
    app.run_server(debug=True, use_reloader=False)
1 Like

Thank you @AIMPED

It worked, but when I set mode =‘external’, I do not see a link for the web app.
Is this how it would be like?