Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

What is

...

RTC (Real-time collaboration) mode allows use of collaborative features between different users using the same Jupyter server.

User-initiated sharing ?

It is a mechanism allowing users to share access to their Jupyter server with other users via the Jupyterhub user sharing API.

EOSC Notebooks provide you this feature via user sharing menuYou can allow other users to access your running Jupyter server.


Warning !

By allowing other users to access your server, you also allow them to access some internal things present on your Jupyter server, namely: 

  • your OIDC access token
  • your ownCloud mount

How do I enable RTC mode?

You can enable RTC mode by selecting a collaborative from the server spawning options menu.

Once your server instance is ready, you can verify your Jupyter server is in RTC mode by checking the Launcher menu.

You should be able to see RTC: tag :

Image Removed

How do I enable other users to access my server in RTC mode?

To share access to your server, you will need to get a sharing link.

You can find it in the top right corner by clicking on the icon in a picture, which opens a RTC share link menu.

            Image Removed     

Now you have options on how to share an access:

    1. Share a link with your token included in it - this will allow you to share access to your server even for users who are not in EOSC services.

                                                                                         This option is the easiest but has a limitation—you can't see other online collaborators because other users are using your

                                                                                         server token to access your instance. If you have opened the same file with other user(s), you will be able to see other colored

                                                                                         cursors, which is the user you shared the link with.

Image Removed

Image Removed     


Where can I find user sharing menu ?

The user sharing menu can be opened from the top bar menu by clicking on User sharing -> Open user sharing menu

Image Added


How do I invite other users to my server via user sharing menu ?

Image Added

With the user sharing menu window opened, you can now generate invite links and share them with other users. 

Warning !

  • Each link is valid only 1 hour
  • The link can be used by multiple users to get an access to your server
  • Only users registered in EOSC EU Node can access your server
  • Once all users you want to share access with are connected to your server,
    you can revoke the validity of the generated link by clicking on the button Revoke all share links

Image Added


Once the invited user has accepted an invitation and authorized access, you can start collaborating on the same server.

Image Added


   Image Added

How can I see who has access to my server ?

You can see IDs of all users who accepted your invitation and time when they did it by clicking on

Refresh button or closing and opening the user sharing menu window. 


Image Added

How do I revoke access to my server ?

By clicking on the corresponding Revoke button to revoke access for a concrete user or by clicking on Revoke All users to revoke access for all users. 


Warning !

  • Even after revoking, invited users can still be on your running server for some time before the Jupyter server prevents them from more access.
    Therefore, if you wish to see changes immediately, you have to open the topbar menu File -> Hub Control Panel and then stop your server.

  • Also remember that generated invitation links can still be used to get access to your server until they expire or you revoke them. 

Image Added

Image Added

How long does user access to my server last ?

Other users access will last until you stop your server. At the start of each new session, all granted access should be revoked.

Warning !

However, it is advised to check the user sharing menu if all access was revoked because it can happen that granted access

will still be there due to not properly closing Jupyter session windows.


What is Real-time collaboration ?

Real-time collaboration(RTC) allows you to leverage the power of user-initiated sharing to see each other's edits in real time.

How do I enable RTC ?

To enable RTC, you first have to open a terminal tab

Image Added

Then you have to execute 2 commands to enable RTC extensions:

  • jupyter labextension enable @jupyter/docprovider-extension
  • jupyter labextension enable @jupyter/collaboration-extension


Image Added

Warning!

You can also disable RTC the same way via 2 commands:

  • jupyter labextension disable @jupyter/docprovider-extension
  • jupyter labextension disable @jupyter/collaboration-extension

But disabling RTC extension wlll not revoke access to your server. You have to use the user sharing menu for that.



Once you enabled the extensions, you need to refresh your browser tab to see changes.

When you do, you can verify your Jupyter server is in RTC mode by checking the Launcher menu.

You should be able to see RTC: tag :

Image Added

You should also be able your RTC icon at the top right corner.

           Image Added


Now you can see users collaborating with you on your server, files they are working on and their edit in real time.

Image Added

Image Added



     




             Image Removed