Dash App in Spyder Issues - IPython.lib.display.IFrame

Hi guys - seeing this very weird issue with Spyder when running the example Dash App directly in the IPython console. I have two separate computers that have exact same version of Spyder, Dash, Plotly all installed and am getting different outputs when running the example app.

I’m having the same difficulty as this guy here: python - Plotly DASH output has no URL and unexpected behaviour - Stack Overflow

Computer 1 - Works correctly:

Computer 2 - Not working correctly:

For reference - the webpage is still being rendered as I visit http://127.0.0.1:8050/ and the example Dash Application is there. I just have no idea why one computer has a different output then the other.

Using pdb, I’m able to see that for the computer that IS working correctly jupyter_dash is NOT active, in_colab, or in_ipython.


image

But for the computer that is working unexpectedly, jupyter_dash IS active, NOT in_colab, and IS in_python.
image

Any help would be greatly appreciated.

FWIW - when running in command console, both computers work correctly.

I have the same issue trying to run dash app in Spyder IDE. (anaconda base environment)

image

Were you able to figure out this issue?

I have been unable to resolve this issue.

still unresolved. @nshah_ft does this happent on spyder IDE ? maybe is a spyder issue.

After too much time, I was able to get this to work in Spyder.
Make sure your app.run has a port, like this
app.run(debug=True, port=8054)
then in the browser go to http://127.0.0.1:8054/
That did the trick for me.

i have the same issue with app.run() , with parameters or without.