Skip to content

Conversation

@ChengJiale150
Copy link
Contributor

@ChengJiale150 ChengJiale150 commented Oct 27, 2025

fix the issue #146

add thread lock and transaction to fix sync bug in insert_cell and overwrite_cell refer to the implement in jupyter-nbmodel-client.

It work well in my local test, and no sync problem occur.

@ChengJiale150
Copy link
Contributor Author

In Fact, this is as same as the code in jupyter-nbmodel-client

@echarles
Copy link
Member

In Fact, this is as same as the code in jupyter-nbmodel-client

Instead of duplicating the code,could we just call jupyter-nbmodel-client or just not having a special case for JUPYTER_SERVER and do the same as for the MCP_SERVER case?

@ChengJiale150
Copy link
Contributor Author

ChengJiale150 commented Oct 27, 2025

It will be imporved in future depends on research of the difference between serverapp and websocket.

@ChengJiale150 ChengJiale150 marked this pull request as draft October 27, 2025 12:11
@echarles
Copy link
Member

we should just make it simpler, and use the MCP_SERVER case when needed for JUPYTER_SERVER

@ChengJiale150 ChengJiale150 marked this pull request as ready for review October 27, 2025 13:43
@ChengJiale150
Copy link
Contributor Author

ChengJiale150 commented Oct 27, 2025

use same NotebookModel in jupyter-nbmode-client to simplify the api in JUPYTER_SERVER Mode.

Copy link
Member

@echarles echarles left a comment

Choose a reason for hiding this comment

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

Tested and works for me. Thx @ChengJiale150

@echarles echarles merged commit 2358010 into datalayer:main Oct 27, 2025
15 checks passed
@echarles
Copy link
Member

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.

2 participants