# Canvas not drawn in root 6.40.00

**URL:** <https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882>\
**Category:** Newbie\
**Tags:** jupyter\
**Created:** [June 4, 2026, 9:32pm UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882 "2026-06-04T21:32:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bomben](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bomben](https://root-forum.cern.ch/u/bomben)\
**Post date:** [June 4, 2026, 9:32pm UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882/1 "2026-06-04T21:32:50Z")

</div>

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_ROOT Version:_ 6.40.00  
_Platform:_ OS X 26.5 (25F71)  
_Compiler:_ clang-2100.1.1.101

* * *

Dear all,

I have jupyter notebooks who works perfectly in 6.32.12 while canvas are not drawn in 6.40.00.

In attachment an example of such a notebook. It also seems that if I run it first in 6.32.12 and then in 6.40.00 then it displays canvas properly.

Any help will be greatly appreciated.

Best regards,

Marco Bomben

[py\_RooConvolution.ipynb](https://root-forum.cern.ch/uploads/short-url/sJlvBJkoOksfNvqKsKhba6w3oo5.ipynb) (36.3 KB)

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [June 5, 2026, 10:26am UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882/2 "2026-06-05T10:26:38Z")

</div>

Hi,

I cannot reproduce problem.  
Provided notebook file works for me on Linux and on MacOS.

Are you using `jupyter lab` or `jupyter notebook`?

Which browser you are using when running jupyter?  
Is it Safari or something else?

Can you check for any error messages in the browser console?  
Normally one only see there information message that “jsroot bundle, 7.11.0” is loaded

Regards,  
Sergey

---

<div class="post-metadata">

**Author:** ![bomben](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bomben](https://root-forum.cern.ch/u/bomben)\
**Post date:** [June 5, 2026, 3:09pm UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882/3 "2026-06-05T15:09:45Z")

</div>

Dear Sergey,

I am using jupyter notebook with Firefox as browser; nothing changes using jupyter lab instead of notebook.

I could not find any message related to jsroot in the firefox console - see attached figure.

I also attach how the notebook appears once I try to draw.

Many thanks in advance and best regards,  
Marco Bomben

 ![Screenshot 2026-06-05 at 17.05.55](https://root-forum.cern.ch/uploads/default/original/3X/b/2/b2f49fb9c1ace6e78992179b07e7b5c0c1ef698e.png)

 ![Screenshot 2026-06-05 at 17.04.38](https://root-forum.cern.ch/uploads/default/original/3X/1/8/18f987cd54196c61f4f3675f0074164b46f36af3.png)

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [June 5, 2026, 4:23pm UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882/4 "2026-06-05T16:23:01Z")

</div>

Hi Marco,

Can you try the same with Safari browser?

Can you try to open notebook which I run on my ROOT?

Here is it:  
[py\_RooConvolution.ipynb](https://root-forum.cern.ch/uploads/short-url/uwLBM0JJIyHDZ988WWKbyFcn4BA.ipynb) (36.2 KB)

Regards,  
Sergey

---

<div class="post-metadata">

**Author:** ![bomben](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/e9a140/32.png) [@bomben](https://root-forum.cern.ch/u/bomben)\
**Post date:** [June 6, 2026, 9:11am UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882/5 "2026-06-06T09:11:35Z")

</div>

Hello Sergey,

here is what I did:

```auto
jupyter notebook --browser="open -a Safari %s"

```

and the canvas is correctly drawn. Thanks for looking into this. Any idea how to fix the issue with firefox, please?

Many thanks again and best regards,  
Marco Bomben

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [June 6, 2026, 9:53am UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882/6 "2026-06-06T09:53:05Z")

</div>

Your example, as well as Sergey’s, ran for me ok with Firefox on Linux (I ran `root --notebook` and opened your notebook from the Jupyter app in Firefox), so maybe it’s not the browser, unless it’s somehow different on Mac. Maybe try reinstalling root (and make sure the dependencies and even optional packages are installed)?

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [June 6, 2026, 5:00pm UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882/7 "2026-06-06T17:00:05Z")

</div>

Hi Marco,

There is small bug, which will be fixed by the [PR](https://github.com/root-project/root/pull/22495).  
You can try apply it for your.

But for me jupyter on Mac with Firefox works - without such fix.

Need to investigate further.

Regards,  
Sergey

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [June 8, 2026, 9:09am UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882/8 "2026-06-08T09:09:39Z")

</div>

Hi Marco,

Can you try to build ROOT code from the PR: [[jupyter] use display.Javascript to embed custom JS code by linev · Pull Request #22522 · root-project/root · GitHub](https://github.com/root-project/root/pull/22522)

I suspect, that browser depending of security settings can block loading of javascript code when it embed into html. Therefore I tried to use directly `display.Javascript()` function of jupyter to clearly indicate that js code is inserted. This may help to resolve your issue.

Regards,  
Sergey
