File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2005,6 +2005,7 @@ def delete_resource(resources):
2005
2005
# pylint: disable=protected-access
2006
2006
delete_resource (self .css ._resources ._resources )
2007
2007
2008
+ # pylint: disable=too-many-branches
2008
2009
def run (
2009
2010
self ,
2010
2011
host : Optional [str ] = None ,
@@ -2137,7 +2138,13 @@ def run(
2137
2138
2138
2139
# Evaluate the env variables at runtime
2139
2140
2140
- host = host or os .getenv ("HOST" , "127.0.0.1" )
2141
+ if "CONDA_PREFIX" in os .environ :
2142
+ # Some conda systems has issue with setting the host environment
2143
+ # to an invalid hostname.
2144
+ # Related issue: https://github.com/plotly/dash/issues/3069
2145
+ host = host or "127.0.0.1"
2146
+ else :
2147
+ host = host or os .getenv ("HOST" , "127.0.0.1" )
2141
2148
port = port or os .getenv ("PORT" , "8050" )
2142
2149
proxy = proxy or os .getenv ("DASH_PROXY" )
2143
2150
You can’t perform that action at this time.
0 commit comments