Skip to content

Add live reload to JupyUvi#875

Open
curtis-allan wants to merge 1 commit intomainfrom
jupy_live_reload
Open

Add live reload to JupyUvi#875
curtis-allan wants to merge 1 commit intomainfrom
jupy_live_reload

Conversation

@curtis-allan
Copy link
Copy Markdown
Contributor

This PR add live browser reload functionality to JupyUvi through a live keyword arg.

Since JupyUvi runs uvicorn in a separate thread, the code is automatically updated when changed within the kernel namespace. The fast_app life refresh websocket logic listens for a disconnection to trigger the browser reload, but with JupyUvi the server process doesn't need to restart to update the app logic.

By using a simple sse endpoint and binding the reload flag callback to:

get_ipython().events.register('post_run_cell', ...

We can initiate a browser refresh after a cell has been run in the kernel, which makes for a smooth dev experience in notebook-like contexts.

@curtis-allan curtis-allan requested a review from jph00 May 5, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant