jupyterlab / extension-examples

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

Add an example about Comms #191

Open jtpio opened 2 years ago

jtpio commented 2 years ago

Problem

The classic notebook v6 documentation has a dedicated page about Comms: https://jupyter-notebook.readthedocs.io/en/v6.4.8/comms.html

They include JavaScript code snippets to define comm targets on the frontend.

But the JupyterLab documentation doesn't appear to have anything like this, using the kernel.registerCommTarget() API.

Proposed Solution

A dedicated example would be great, and could be linked to from the Notebook v7 and JupyterLab docs.