Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you recommend developing dash apps locally? #2

Open
alexlenail opened this issue Apr 20, 2022 · 0 comments
Open

How do you recommend developing dash apps locally? #2

alexlenail opened this issue Apr 20, 2022 · 0 comments

Comments

@alexlenail
Copy link

I'd like to work on the individual dash apps locally, outside the container. It seems like you had that in mind when you added these lines:

if __name__ == "__main__":
# Only for debugging while developing
app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
init_callbacks(app)
app.run_server(debug=True, port=8080)

However, I'm running into an error:

~/Documents/flask-dash-app(master*) » python app/dash/demo.py
Traceback (most recent call last):
  File "app/dash/demo.py", line 1, in <module>
    from .dash import Dash
ImportError: attempted relative import with no known parent package

How do I go about running the individual dash apps independently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant