Plots do not render in jupyter

Plotting works fine in console, however do not render in jupyter notebooks.

ROOT installed from source
ROOT Version: 6.32.00
Built for linuxx8664gcc on May 29 2024, 14:31:13
From heads/latest-stable@
Platform: Fedora40

Hi,

Thanks for the question!
To display graphics in notebooks, the canvas has to be drawn explicitly, given that there can not be asynchronicity on that platform. Therefore, in your case, you can simply add gPad->Draw(), or create a canvas before:

TCanvas c;
gr->Draw();
c.Draw();

This is also shown in virtually all tutorials, which are available also in notebook form.

I hope this helps!

Cheers,
D