ROOT in JupyterLab


Please read tips for efficient and successful posting and posting code

Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.

ROOT Version: v6.36.04
Platform: Red Hat 9
Compiler: (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)


Dear rooters,

I have a fresh ROOT v6.36.04 running smoothly, and I wanted to make a nice ROOT/C++ kernel for our JupyterLab platform.

Python 3.13.7 bindings have been compiled, so I made 2 kernels:

  • a “classic” Python (3.13.7 based) in which I can import ROOT

  • a C++ based kernel using JupyROOT kernel.

Both kernels can be run smoothly, up to when I want to draw something (using ROOT). At this step, I get a “Failed to load JSROOT”.

We are running JupyterLab 4.1.8. As the ROOT installation went smoothly, I think I may have specific configuration to do on JupyterLab to allow JS? Do I need something specific related to JavaScript?

Or is it just some ROOT config? I do have the js directory in ROOTSYS, so I guess everything is in there right?

I know this question may not be asked in the right place, but I don’t know where to get reliable help on that issue.

Best regards,

Sébastien

May be @linev can help

Hi Sébastien,

Can you provide notebook file here?

Regards,
Sergey

Hi @linev , all,

Sorry (again!)! It is actually working like a charm!

I forgot I had an extension which prevent JS to be run in my browser! Deactivating this extension, everything is working as expected!

Sorry for the noice,

Best regards,

Sébastien