# Plots do not render in jupyter

**URL:** <https://root-forum.cern.ch/t/plots-do-not-render-in-jupyter/59504>\
**Category:** ROOT\
**Tags:** bug\
**Created:** [May 29, 2024, 4:37pm UTC](https://root-forum.cern.ch/t/plots-do-not-render-in-jupyter/59504 "2024-05-29T16:37:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erentar](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/ecae2f/32.png) [@erentar](https://root-forum.cern.ch/u/erentar)\
**Post date:** [May 29, 2024, 4:37pm UTC](https://root-forum.cern.ch/t/plots-do-not-render-in-jupyter/59504/1 "2024-05-29T16:37:38Z")

</div>

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

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/8/f/8f5c2419512b8877116b4a2b584cca0a6c06632d.png)

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/3/3/33c6f1c945f76e55ebc57db52bf2e9d8f318cb49.png)

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

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [May 30, 2024, 5:29am UTC](https://root-forum.cern.ch/t/plots-do-not-render-in-jupyter/59504/2 "2024-05-30T05:29:46Z")

</div>

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:

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

```

This is also shown in virtually all [tutorials](https://root.cern/doc/v632/group__Tutorials.html), which are available also in notebook form.

I hope this helps!

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [June 13, 2024, 5:30am UTC](https://root-forum.cern.ch/t/plots-do-not-render-in-jupyter/59504/3 "2024-06-13T05:30:34Z")

</div>

Closed on June 13, 2024, 5:30am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
