-
Notifications
You must be signed in to change notification settings - Fork 233
Hot reloading and rerunning app.run_server() don't work #106
Comments
Hi @rohitsathish , I think this is the same bug we've been trying to fix in #105. In the meantime, you can try installing older version of flask & werkzeug (<2.2.0). |
Any update on this? I have the same issue in a VS Code notebook, forcing me to restart kernel to view any changes. Seeing the work done in #105, I tried installing jupyter-dash from the latest on GitHub. With that version it no longer hangs when I call app.run_server() the second time, but I get the following error instead: AssertionError: The setup method 'errorhandler' can no longer be called on the application. It has already handled its first request, any changes will not be applied consistently.
I also tried downgrading flask and werkzeug as suggested above, and it does allow me to run app.run_server() repeatedly with no error, but no HMR. |
It would be nice to use conda to exclude versions that are in conflict. For now, installation doesn't install flask<2.2.0 |
The first time I run
app.run_server()
, it works fine and I am able to view the page.However, hot reload doesn't work. I'm not sure of the expected behaviour so I tried the following:
app.run_server()
call. This causes the cell to run forever, with no changes on the page.I've observed the same behaviour on both VSCode notebooks and JupyterLab.
The text was updated successfully, but these errors were encountered: