jupyterlab / extension-examples

JupyterLab Extensions by Examples
BSD 3-Clause "New" or "Revised" License
439 stars 167 forks source link

The example of documents extension not work #253

Closed Jad2wizard closed 8 months ago

Jad2wizard commented 8 months ago

Description

I can open the documents/testfiles/test.example and drag the rect cell. But the move of two rectangles cannot be synchronized. When I print the drive which is the thrid args of the activate function, I got null. I think this maybe the reason.

Reproduce

  1. Go to 'extension-examples/documents'
  2. Run jupyter labextension develop . --overwrite
  3. Go to extension-examples/documents/testfiles/
  4. Run jupyter lab

Expected behavior

Context

Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.

welcome[bot] commented 8 months 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. welcome 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:

fcollonval commented 8 months ago

Hey @Jad2wizard

I'm not exactly sure what you tried. But if you want to see collaboration (aka document state synchronization) between two clients, you will need to install jupyter-collaboration.

Jad2wizard commented 8 months ago

Thank you. That's work.