Closed trungleduc closed 1 year ago
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:
This would also align with the Python side, where we can pass an existing YDoc.
Problem
The constructor of
YDocument
is empty since the internalYJS
doc is created by the class. It would be useful if users can provide an existingydoc
to theYDocument
constructor.Proposed Solution
Update the
YDocument
constructor signature to allow overriding theydoc
property.Additional context
ypywidgets
project to create frontend widgets.