the current error msg/log at jupyter notebook isnt really helpful

Hm... I'm not sure what's going on here or why Jupyter isn't showing the error message.
I wonder if it's an issue with the interactive debug mode. Perhaps try removing the debug=True statement there. Just run app.run_server(debug=False).
Setting debug=False seems to work for me:

ill test it. but running the same code as a .py script instead of a notebook worked fine
but running the same code as a .py script instead of a notebook worked fine
Yeah. It seems like Jupyter notebook and the Flask debug mode don't work together. I'd recommend running it as a regular python script with debug mode for now. With debug=True, the script will automatically re-run itself when you make changes to the code; you can just refresh the browser without re-starting the script.
if i run it in a jup notebook (with debug=False) in aws, it runs, but doesnt print any outputs.
Here's a solution from the community for running Dash in Jupyter / Ipython notebooks: https://community.plot.ly/t/can-i-run-dash-app-in-jupyter/5235/2
It is not running on sypder with the same error and debug = False
Works here in Spyder with debug = False. Does not works with debug = True.
if( __name__ == "__main__"):
app.run(debug=True, use_reloader=False)
try this works perfectly fine for Spyder
Most helpful comment
I wonder if it's an issue with the interactive debug mode. Perhaps try removing the
debug=Truestatement there. Just runapp.run_server(debug=False).