Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have installed Dash on macOS, but gives error while running the script

Tags:

plotly-dash

I am trying to run dash through Jupiter notebook on macOS. It does get imported and when I try to run app.run_server command it fails. it gives me the following error

[Errno 8] nodename nor servname provided, or not known

enter image description here

like image 704
Kunal Bambardekar Avatar asked Dec 09 '25 21:12

Kunal Bambardekar


1 Answers

Just specify the explicit host name in the app.py Default hostname causes such issue

if __name__ == '__main__':
    app.server.run(port=8000, host='127.0.0.1')
like image 115
Jacques Doan-Huu Avatar answered Dec 15 '25 06:12

Jacques Doan-Huu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!