If I have two notebooks open in jupyterlab, with the kernel of the second chosen as the kernel of the first (using jupyterlab gui kernel dropdown menu -> change kernel and making a choice from "use kernel from preferred session" and selecting notebook1.ipynb). If I try and use ipympl in this second notebook I get the "Error displaying widget: model not found" error. But ipympl works perfectly if I select the second (and original) kernel for the second notebook.
I'm doing this kernel sharing because I am using jupyterlab to control my experiment and only once instance of the hardware control code can be loaded. My idea is that my various measurements will be in separate jupyter notebooks but control a single kernel (where the hardware is defined). So far this idea works fine except for ipympl, I can still plot with %matplotlib inline.
I have tested this in a fresh conda environment with the latest versions of everything (AFAIK).
Describe the issue
If I have two notebooks open in jupyterlab, with the kernel of the second chosen as the kernel of the first (using jupyterlab gui kernel dropdown menu -> change kernel and making a choice from "use kernel from preferred session" and selecting notebook1.ipynb). If I try and use ipympl in this second notebook I get the "Error displaying widget: model not found" error. But ipympl works perfectly if I select the second (and original) kernel for the second notebook.
I'm doing this kernel sharing because I am using jupyterlab to control my experiment and only once instance of the hardware control code can be loaded. My idea is that my various measurements will be in separate jupyter notebooks but control a single kernel (where the hardware is defined). So far this idea works fine except for ipympl, I can still plot with
%matplotlib inline
.I have tested this in a fresh conda environment with the latest versions of everything (AFAIK).
Versions