Disable jsroot by default in Jupyter

Main issue

Hi,

I would like to ask whether there is a way to disable jsroot (i.e. %jsroot off) by default when opening a new notebook in Jupyter.

I remember in the older versions of ROOT, %jsroot off was the default setting. But with the newer versions, somehow the default setting was changed and I have to add %jsroot off each time when opening a new notebook, which is sometimes really annoying.

Why to disable jsroot in jupyter?

Images with jsroot turned on cannot be displayed properly in Github or Gitlab.

ROOT Version: 6.34.08
Platform: Fedora 42
Compiler: gcc 15


Hi,

As far as I can say such default mode cannot be changed.
May be @vpadulan has better idea.

Meanwhile - can you show me where such stored pages do not work?
Probably we can improve jsroot embedding and solve your problem.

Regards,
Sergey

Hi,

Thanks for your reply. Sorry that I didn’t notice the plot with “jsroot on” works properly with newer versions.

But I forgot mention another serious problem of jsroot: when I plot a large histogram, which has a large number of bins, this could make jupyter very slow. Things could get much worse when plotting multiple large histograms in one single notebook. At some point, it became unusable and I had to turn off the jsroot.

Yes, it is drawback of using JSROOT.
Complete histogram must be stored in HTML as JSON - and it can be very large for histograms with many bins. To optimize this - you can rebin histograms before drawing them.

Grate that it works now for you!

It would be really nice if there is a rolling back to make jsroot off in the new releases, or at least give us an option in .rootrc to turn it off when opening a new notebook.

I create issue on github.
You can add comments there.