Skip to content

Using the jupyterlab services API

Rich Chiodo edited this page Aug 3, 2022 · 17 revisions

This page describes how the Jupyter extension uses the [jupyterlab/services] API to connect and control Jupyter kernels.

What is it and why do we need it?

Jupyter kernels are processes that handle a set of messages called the Jupyter Messaging Protocol (or JMP for short).

[diagram of connecting to a kernel with zeromq and sending a message]

The Jupyter org has provided an npm module to help with calling into a kernel from javascript. This npm module does the following:

The npm module essentially handles all communication to and from a kernel so that javascript can treat the kernel like a local object.

How we use it

Futures and what they mean

Deserializing/Serializing

Differences with raw

Widgets

Clone this wiki locally