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

Dash in Jupyter tries to bind to $HOST set by conda, cannot override #3065

Open
discapes opened this issue Nov 7, 2024 · 0 comments
Open
Labels
bug something broken P2 considered for next cycle

Comments

@discapes
Copy link

discapes commented Nov 7, 2024

Summary

Micromamba, and supposedly other python package managers set the HOST environment variable to something like x86_64-conda-linux-gnu. Then, when I try to run a dash app in Jupyter, I get an error as dash tries to bind to host "x86_64-conda-linux-gnu", which obviously doesn't resolve to a valid IP. Here's a stackoverflow post about the error:

https://stackoverflow.com/questions/61006240/name-or-service-not-known-when-running-a-dash-app

In the above case, the solution was to use the host parameter of app.run().
However, the parameter does not seem to override $HOST in a Jupyter environment.

Packages:

dash                 2.18.1
jupyter_client                8.6.3
jupyter_core                  5.7.2
jupyter-events                0.10.0
jupyter-lsp                   2.2.5
jupyter_server                2.14.2
jupyter_server_terminals      0.5.3
jupyterlab                    4.2.5
jupyterlab_pygments           0.3.0
jupyterlab_server             2.27.3
jupyterlab_widgets            3.0.13
@gvwilson gvwilson changed the title [BUG] Dash in Jupyter tries to bind to $HOST set by conda, cannot override Dash in Jupyter tries to bind to $HOST set by conda, cannot override Nov 11, 2024
@gvwilson gvwilson added bug something broken P2 considered for next cycle labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

2 participants