Skip to content

Conversation

@dlqqq
Copy link
Collaborator

@dlqqq dlqqq commented May 12, 2025

Description

Adds the first implementation of YRoomWebsocket & YRoomManager.

Most of the logic should be handled automatically by YRoom. Note that the YRoomManager and YRoom APIs used by YRoomWebsocket are all synchronous. YRoom uses a message queue to store new Websocket messages, and automatically waits for the document content to be loaded before processing queued messages. This allows the API to be "minimally async" and easier to use for consumers.

UPDATE: Added YRoomManager as well, since Jialin is busy with another task ATM.

UPDATE 2: Verified that the server extension can at least start. Had to fix a minor import bug in the kernels module.

@dlqqq dlqqq changed the title Add YRoomWebsocket Add YRoomWebsocket and YRoomManager May 12, 2025
Copy link
Collaborator

@jzhang20133 jzhang20133 left a comment

Choose a reason for hiding this comment

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

approve to unblock. Can address my comments in future PRs.

@dlqqq
Copy link
Collaborator Author

dlqqq commented May 13, 2025

@JGuinegagne @jzhang20133 Thank you both for the feedback! Merging to unblock the team from putting together an integration demo.

@dlqqq dlqqq merged commit 98482ff into jupyter-ai-contrib:main May 13, 2025
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.

4 participants