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.
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.
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.