Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Debug Reloader and the Debugger in VS Code: SystemExit: 3

$
0
0

Hello Community,
am trying to develop a Dash/Plotly app in Python using Visual Studio Code but am running into SystemExit: 3 on reloading.

Have the most basic example from a tutorial:

import dash
from dash import html

app = dash.Dash(__name__)
app.layout = html.H1(children="Welcome to Dash!")

if __name__ == "__main__":
    app.run_server(debug=True)

This works find when I start it from the command line (including the reload mechanism). However if I start it through VSC with a configured launch file, then the reload feature breaks.
Whenever I edit the file and save, it throws:

Exception has occurred: SystemExit
3
  File "C:\MYPATH_STUFF\PlotlyExperiments\main.py", line 9, in <module>
    app.run_server(debug=True)

The config I use is:

            "name": "PY Plotly Experiment",
            "type": "python",
            "request": "launch",
            "python": "C:/Users/MY_USER/.conda/envs/PY_37/python.exe",
            "program": "${workspaceFolder}/main.py",
            "console": "integratedTerminal",
            "args": []

Anybody knows what SystemExit errorcode 3 refers to?
Or have you encountered this problem?
Is it not possible to have debugging as well as the reload feature?

Huge thanks in advance!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images