Skip to content
Advertisement

Plotly Dash ZMQError: Address already in use

I am testing Plotly Dash as a possible dashboarding tool.

I am trying to run one of the charts found in the documentation: https://plotly.com/python/bar-charts/

JavaScript

When I run this I get an error. Here is the end of the trace callback:

JavaScript

As you can see from my example, I have already tried altering the port to avoid this error. I have tried many ports around 8050, but they all seem to be “already in use.” My guess is that Dash reserves the port then tries to use it but sees that it’s already reserved, not knowing that it was reserved for the process it was about to execute.

Does anyone know how to fix this error?

Advertisement

Answer

If you are running it from jupyter-notebook or jupyter-lab, you should run the app server as:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement