Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support progressive rendering #1489

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

trungleduc
Copy link
Member

@trungleduc trungleduc commented Sep 17, 2024

User-facing changes

voila3.mp4
  • New CLI option --progressive_rendering to activate the progressive rendering mode
voila ... --progressive_rendering=True
  • The dashboard appears immediately, with placeholders filling the cell outputs. These outputs are updated as the kernel executes each cell.
  • --progressive_rendering and --preheat_kernel are incompatible.

Code changes

In progressive rendering mode:

  • New Websocket handler is added at /voila/execution to receive execution request from the frontend and return the cell outputs.
  • nbconvert does not execute notebooks anymore. The frontend will render the dashboard immediately, then it sends an execution request to the above Websocket endpoint.
  • On Websocket response, the frontend receives cell output and its index, then OutputArea widgets are created at the corresponding cell to render the outputs.
  • execute_input messages are filtered

Backwards-incompatible changes

N/A

Copy link
Contributor

Binder 👈 Launch a Binder on branch trungleduc/voila/voicify

@trungleduc trungleduc added the enhancement New feature or request label Sep 27, 2024
@trungleduc trungleduc force-pushed the voicify branch 2 times, most recently from c6895e0 to 64affb9 Compare October 3, 2024 10:15
@trungleduc trungleduc force-pushed the voicify branch 2 times, most recently from 5d0455f to 04d1ecd Compare October 3, 2024 14:23
@trungleduc trungleduc marked this pull request as ready for review October 4, 2024 09:54
@trungleduc trungleduc requested review from martinRenou and jtpio and removed request for martinRenou October 4, 2024 09:54
packages/voila/src/plugins/widget/plugins.ts Outdated Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know the reason for those diffs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the Boken one, it's due to the updated version. I don't know for others since the changes here are unrelated to the tree page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants