Skip to content

Route Yjs awareness over the ywidget comm#24

Merged
martinRenou merged 3 commits intoQuantStack:mainfrom
gjmooney:awareness-sync
Apr 7, 2026
Merged

Route Yjs awareness over the ywidget comm#24
martinRenou merged 3 commits intoQuantStack:mainfrom
gjmooney:awareness-sync

Conversation

@gjmooney
Copy link
Copy Markdown
Contributor

@gjmooney gjmooney commented Apr 2, 2026

This PR extends the notebook-side Yjs comm bridge so it handles awareness updates in addition to the existing document sync / update traffic.

YCommProvider encodes outbound awareness changes and applies inbound awareness buffers. It can reuse an existing Awareness for the shared Y.Doc or create one when none is supplied, and only destroys awareness it owns.

IJupyterYModel / JupyterYModel expose optional awareness (default: none), JupyterYWidgetManager passes that into YCommProvider when the comm opens.

Copy link
Copy Markdown
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Copy Markdown
Member

@davidbrochart davidbrochart left a comment

Choose a reason for hiding this comment

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

Just nitpicking, but looks good otherwise.

@martinRenou
Copy link
Copy Markdown
Member

Thanks for the review. Happy to make a 0.5.0 with this once it's in.

Co-authored-by: David Brochart <david.brochart@gmail.com>
@martinRenou martinRenou merged commit 64a1ae9 into QuantStack:main Apr 7, 2026
2 checks passed
@gjmooney gjmooney deleted the awareness-sync branch April 7, 2026 09:37
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.

3 participants