Jupyter Server: Multiple Connections to the same Kernel

Hi,

I’m a Student at the University of Zurich and for our Master’s project, we are trying to create a non-linear Juptyer Notebook. For the MVP we are just trying to connect a custom React UI to a Jupyter Server.

We are able to do that but when I try to connect a FastAPI backend to the Jupyter Server (Same Kernel & Session) I am having problems. Should I use the existing connection details in the kernel-{kernel_id}.json file with ZeroMQ or is there a better way to have multiple connections to Kernels/Session from a Frontend & Backend?