# \#jupyter

**URL:** https://root-forum.cern.ch/tag/jupyter/21.md

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

---

## [Canvas not drawn in root 6.40.00](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882)

<div class="topic-metadata">

**Author:** [@bomben](https://root-forum.cern.ch/u/bomben)\
**Replies:** 7\
**Last updated:** [June 8, 2026, 9:09am UTC](https://root-forum.cern.ch/t/canvas-not-drawn-in-root-6-40-00/64882 "2026-06-08T09:09:39Z")

</div>

Please read tips for efficient and successful posting and posting code 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.…

---

## [Use rootssh for JupyterLab](https://root-forum.cern.ch/t/use-rootssh-for-jupyterlab/64418)

<div class="topic-metadata">

**Author:** [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Replies:** 5\
**Last updated:** [November 20, 2025, 8:01am UTC](https://root-forum.cern.ch/t/use-rootssh-for-jupyterlab/64418 "2025-11-20T08:01:08Z")

</div>

Assume one connects to some remote machine with: rootssh --port 8080 ... Is there an easy way to (re)use this connection (i.e., the port) to run the standard JupyterLab? Something like the default: jupyter lab --no-bro…

---

## [Not refreshed jsroot graphics within jupyter notebook v7 / jupyterlab](https://root-forum.cern.ch/t/not-refreshed-jsroot-graphics-within-jupyter-notebook-v7-jupyterlab/63097)

<div class="topic-metadata">

**Author:** [@malfonsi79](https://root-forum.cern.ch/u/malfonsi79)\
**Replies:** 12\
**Last updated:** [March 25, 2025, 2:36pm UTC](https://root-forum.cern.ch/t/not-refreshed-jsroot-graphics-within-jupyter-notebook-v7-jupyterlab/63097 "2025-03-25T14:36:59Z")

</div>

Dear ROOTers, As I changed from the old Debian 10 to Debian 12, I rebuilt my software stack to have “ROOT notebooks” on the new machines, using a virtual-env to have to proper python packages under my control and compil…

---

## [Let jupyter C++ kernel pick up \`.rootlogon.C\` automatically](https://root-forum.cern.ch/t/let-jupyter-c-kernel-pick-up-rootlogon-c-automatically/62535)

<div class="topic-metadata">

**Author:** [@CHN-beta](https://root-forum.cern.ch/u/CHN-beta)\
**Replies:** 1\
**Last updated:** [December 25, 2024, 10:38am UTC](https://root-forum.cern.ch/t/let-jupyter-c-kernel-pick-up-rootlogon-c-automatically/62535 "2024-12-25T10:38:14Z")

</div>

In current last version of ROOT, jupyter C++ kernel does not pick up ~/.rootlogon.C automatically. Users have to load it manually in the first block: gROOT-\>LoadMacro("/home/chn/.rootlogon.C"); Are there any other file…

---

## [Cling fails when std::pow and ROOT::Math::IntegratorMultiDim are present](https://root-forum.cern.ch/t/cling-fails-when-std-pow-and-root-integratormultidim-are-present/62508)

<div class="topic-metadata">

**Author:** [@arossia94](https://root-forum.cern.ch/u/arossia94)\
**Replies:** 2\
**Last updated:** [December 19, 2024, 1:00pm UTC](https://root-forum.cern.ch/t/cling-fails-when-std-pow-and-root-integratormultidim-are-present/62508 "2024-12-19T13:00:55Z")

</div>

Dear all, I’m facing issues with cling when running this C++ code: #include \<iostream\> #include \<stdio.h\> #include \<complex.h\> #include "TMath.h" Double\_t mw = 79.82436 ; Double\_t mz = 91.1876 ; Double\_t sW2 = 1.0- st…

---

## [Conflict Jupyter and root-6.28/02 - MacOS Ventura 13.3](https://root-forum.cern.ch/t/conflict-jupyter-and-root-6-28-02-macos-ventura-13-3/61919)

<div class="topic-metadata">

**Author:** [@Elia\_Bottalico](https://root-forum.cern.ch/u/Elia_Bottalico)\
**Replies:** 3\
**Last updated:** [October 14, 2024, 10:53am UTC](https://root-forum.cern.ch/t/conflict-jupyter-and-root-6-28-02-macos-ventura-13-3/61919 "2024-10-14T10:53:07Z")

</div>

Hi, I was trying to install the Jupyter notebook on my Mac. I did it with the command: pip3 install notebook That successfully installed the notebook on my Mac. Then when I ran the command: jupyter notebook And this…

---

## [Jupyter kernel failure during importing zmq](https://root-forum.cern.ch/t/jupyter-kernel-failure-during-importing-zmq/59501)

<div class="topic-metadata">

**Author:** [@erentar](https://root-forum.cern.ch/u/erentar)\
**Replies:** 4\
**Last updated:** [May 29, 2024, 2:30pm UTC](https://root-forum.cern.ch/t/jupyter-kernel-failure-during-importing-zmq/59501 "2024-05-29T14:30:58Z")

</div>

Root jupyter kernel fails with the following text: Traceback (most recent call last): File "/home/user/git/root/root\_install/lib/JupyROOT/kernel/rootkernel.py", line 22, in \<module\> from metakernel import MetaKern…

---

## [I can't install root\_numpy](https://root-forum.cern.ch/t/i-cant-install-root-numpy/59337)

<div class="topic-metadata">

**Author:** [@amijete](https://root-forum.cern.ch/u/amijete)\
**Replies:** 1\
**Last updated:** [May 15, 2024, 5:00am UTC](https://root-forum.cern.ch/t/i-cant-install-root-numpy/59337 "2024-05-15T05:00:01Z")

</div>

\_ROOT Version:\_6.26/14 \_Platform:\_Ubuntu 22 Compiler: C++ 11.4 I am trying to install root\_numpy for a python project. The problem is that every time I execute conda install root\_numpy it crashes due to some incompab…

---

## [Jupyter Lab not plotting canvas](https://root-forum.cern.ch/t/jupyter-lab-not-plotting-canvas/59190)

<div class="topic-metadata">

**Author:** [@mole.luca](https://root-forum.cern.ch/u/mole.luca)\
**Replies:** 9\
**Last updated:** [May 6, 2024, 12:18pm UTC](https://root-forum.cern.ch/t/jupyter-lab-not-plotting-canvas/59190 "2024-05-06T12:18:05Z")

</div>

Hi. I am using Jupyter Lab and I cannot see canvases when doing a simple plot as in the code below. I attach the text input file. Thank you import ROOT import os, sys import numpy as np import pandas as pd %jsroot on…

---

## [Jupyter pyROOT on Windows 10](https://root-forum.cern.ch/t/jupyter-pyroot-on-windows-10/46444)

<div class="topic-metadata">

**Author:** [@ekoval](https://root-forum.cern.ch/u/ekoval)\
**Replies:** 2\
**Last updated:** [September 13, 2021, 8:45am UTC](https://root-forum.cern.ch/t/jupyter-pyroot-on-windows-10/46444 "2021-09-13T08:45:52Z")

</div>

Dear All, I’ve successfully installed ROOT and imported it to python on windows, but found out that it is impossible to use pyROOT in Jupyter since it requires termios library (during import JupyROOT), which does not ex…

---

## [ROOT notebook (c++) with Github codespaces](https://root-forum.cern.ch/t/root-notebook-c-with-github-codespaces/58175)

<div class="topic-metadata">

**Author:** [@Alexandr\_Prozorov](https://root-forum.cern.ch/u/Alexandr_Prozorov)\
**Replies:** 1\
**Last updated:** [February 15, 2024, 2:50pm UTC](https://root-forum.cern.ch/t/root-notebook-c-with-github-codespaces/58175 "2024-02-15T14:50:34Z")

</div>

Hi all, I am trying to make a workshop with ROOT notebooks (cpp flavour) and make it run in Github codespaces, however, docker-examples does not provide such a configuration to be run in Github codespaces. As a starting…

---

## [Failed to import ROOT in jupyter notebook in Scientific Linux 7](https://root-forum.cern.ch/t/failed-to-import-root-in-jupyter-notebook-in-scientific-linux-7/57128)

<div class="topic-metadata">

**Author:** [@pmajor](https://root-forum.cern.ch/u/pmajor)\
**Replies:** 16\
**Last updated:** [December 4, 2023, 1:39pm UTC](https://root-forum.cern.ch/t/failed-to-import-root-in-jupyter-notebook-in-scientific-linux-7/57128 "2023-12-04T13:39:29Z")

</div>

Hi, I have the exact same problem as described in this post, except I use Scientific Linux 7 and I compiled ROOT 6.28.6 from source for our computer with G++ (GCC) 11.2.0 and cmake -DCMAKE\_INSTALL\_PREFIX="/cern\_root\_6.2…

---

## [Can't import 'TFile' in pyROOT](https://root-forum.cern.ch/t/cant-import-tfile-in-pyroot/57031)

<div class="topic-metadata">

**Author:** [@krish](https://root-forum.cern.ch/u/krish)\
**Replies:** 3\
**Last updated:** [November 17, 2023, 10:17am UTC](https://root-forum.cern.ch/t/cant-import-tfile-in-pyroot/57031 "2023-11-17T10:17:46Z")

</div>

I am trying to use pyROOT in jupyter. I was able to import ROOT without any error, but I am not able to import other modules from ROOT. For an example:from ROOT import TFile gives me the following error ImportError: ca…

---

## [Clicking on bins in JupyROOT histograms to open links](https://root-forum.cern.ch/t/clicking-on-bins-in-jupyroot-histograms-to-open-links/55203)

<div class="topic-metadata">

**Author:** [@bulukutl](https://root-forum.cern.ch/u/bulukutl)\
**Replies:** 1\
**Last updated:** [June 6, 2023, 3:19pm UTC](https://root-forum.cern.ch/t/clicking-on-bins-in-jupyroot-histograms-to-open-links/55203 "2023-06-06T15:19:16Z")

</div>

Hello, is it possible to create in JupyROOT a figure with interactivity so that clicking on bins (for example on a TH1) with the mouse can lead to the opening of a link in the browser? As far as I understand it is in g…

---

## [ROOT and Jupyter notebook on mac](https://root-forum.cern.ch/t/root-and-jupyter-notebook-on-mac/54884)

<div class="topic-metadata">

**Author:** [@Arakjiomar](https://root-forum.cern.ch/u/Arakjiomar)\
**Replies:** 2\
**Last updated:** [May 17, 2023, 8:09am UTC](https://root-forum.cern.ch/t/root-and-jupyter-notebook-on-mac/54884 "2023-05-17T08:09:51Z")

</div>

ROOT Version: 6.26/06 Platform: Pyroot Compiler: Not Provided

---

## [ROOT 6.28 and Jupyter not Draw-ing \[SOLVED\]](https://root-forum.cern.ch/t/root-6-28-and-jupyter-not-draw-ing-solved/54862)

<div class="topic-metadata">

**Author:** [@seligman](https://root-forum.cern.ch/u/seligman)\
**Replies:** 2\
**Last updated:** [May 16, 2023, 12:09pm UTC](https://root-forum.cern.ch/t/root-6-28-and-jupyter-not-draw-ing-solved/54862 "2023-05-16T12:09:41Z")

</div>

Before I get into details, I’ll ask the basic question that might lead me to the answer: What is the component within ROOT and Jupyter that causes images to be displayed on a notebook page? The issue in more detail: I …

---

## [Google Colab ROOT import](https://root-forum.cern.ch/t/google-colab-root-import/54220)

<div class="topic-metadata">

**Author:** [@drawal](https://root-forum.cern.ch/u/drawal)\
**Replies:** 2\
**Last updated:** [March 29, 2023, 1:44pm UTC](https://root-forum.cern.ch/t/google-colab-root-import/54220 "2023-03-29T13:44:38Z")

</div>

Hi all, I’m trying to set up ROOT in a Google Colab environment, by installing a pre-compiled binary distribution. First, I’m finding the system information by running !lsb\_release -a, which returns the following: No…

---

## [Root on jupyter notebook does not plot graphics in C++](https://root-forum.cern.ch/t/root-on-jupyter-notebook-does-not-plot-graphics-in-c/54149)

<div class="topic-metadata">

**Author:** [@ckaraf](https://root-forum.cern.ch/u/ckaraf)\
**Replies:** 3\
**Last updated:** [March 22, 2023, 8:00am UTC](https://root-forum.cern.ch/t/root-on-jupyter-notebook-does-not-plot-graphics-in-c/54149 "2023-03-22T08:00:54Z")

</div>

Dear all, I am trying to use ROOT through a jubyter notebook in C++, however it does not plot any graphics, although it creates the object. Any ideas? I have compiled root 6.26.10 with python 3.8.10 I used gcc 9.4.0 …

---

## [Flush onpartial cout/cerr in jupyter notebook](https://root-forum.cern.ch/t/flush-onpartial-cout-cerr-in-jupyter-notebook/54166)

<div class="topic-metadata">

**Author:** [@wiso](https://root-forum.cern.ch/u/wiso)\
**Replies:** 2\
**Last updated:** [March 21, 2023, 9:41pm UTC](https://root-forum.cern.ch/t/flush-onpartial-cout-cerr-in-jupyter-notebook/54166 "2023-03-21T21:41:14Z")

</div>

I have implemented a simple callback for OnPartialResult for RDataFrame. Everything inside a jupyter notebook ROOT.gInterpreter.Declare( r""" void my\_callback\_(TH1D &h) { std::cerr \<\< (int)h.GetEntries() \<\< std:…

---

## [Random error with pyROOT in notebook on a Conda env](https://root-forum.cern.ch/t/random-error-with-pyroot-in-notebook-on-a-conda-env/53151)

<div class="topic-metadata">

**Author:** [@TristanM](https://root-forum.cern.ch/u/TristanM)\
**Replies:** 9\
**Last updated:** [February 1, 2023, 9:05am UTC](https://root-forum.cern.ch/t/random-error-with-pyroot-in-notebook-on-a-conda-env/53151 "2023-02-01T09:05:05Z")

</div>

Hello Root expert, I work on an analysis with pyroot and notebook into a Conda environnement (I have installed Conda from Homebrew and ROOT with Conda install) on my machine and I have something like a random issue with…

---

## [Redrawing TCanvas in Jupyter notebook](https://root-forum.cern.ch/t/redrawing-tcanvas-in-jupyter-notebook/53192)

<div class="topic-metadata">

**Author:** [@OndrisL](https://root-forum.cern.ch/u/OndrisL)\
**Replies:** 4\
**Last updated:** [January 23, 2023, 12:50pm UTC](https://root-forum.cern.ch/t/redrawing-tcanvas-in-jupyter-notebook/53192 "2023-01-23T12:50:02Z")

</div>

Hello, is it possible to redraw TCanvas in the same Jupyter cell (replace the previously drawn plot with the new one)? The following standalone example demonstrates my goal: import ROOT import ipywidgets as widgets …

---

## [ROOT's kernel does not appear in Jupyter (macOs)](https://root-forum.cern.ch/t/roots-kernel-does-not-appear-in-jupyter-macos/53171)

<div class="topic-metadata">

**Author:** [@Louis\_phys](https://root-forum.cern.ch/u/Louis_phys)\
**Replies:** 13\
**Last updated:** [January 19, 2023, 12:41pm UTC](https://root-forum.cern.ch/t/roots-kernel-does-not-appear-in-jupyter-macos/53171 "2023-01-19T12:41:15Z")

</div>

Hello everyone, I kind of new with ROOT but I need it for a class and my teacher has never seen this kind of problem (which seems not new here) , root is functional for me in my terminal it works, python also recognizes…

---

## [Repeatability issue with (py)RooFit in a notebook](https://root-forum.cern.ch/t/repeatability-issue-with-py-roofit-in-a-notebook/53084)

<div class="topic-metadata">

**Author:** [@TristanM](https://root-forum.cern.ch/u/TristanM)\
**Replies:** 9\
**Last updated:** [January 14, 2023, 8:01pm UTC](https://root-forum.cern.ch/t/repeatability-issue-with-py-roofit-in-a-notebook/53084 "2023-01-14T20:01:37Z")

</div>

Hello Root experts, I currently try to use pyROOT in a notebook, in order to fit a RooDataSet of mass with a 2 Crystal Ball (one right and one left sharing the same \\mu and \\sigma) + a Gaussian model. The RooDataset is …

---

## [JupyROOT: SetInputTrees fails](https://root-forum.cern.ch/t/jupyroot-setinputtrees-fails/52426)

<div class="topic-metadata">

**Author:** [@petrakou](https://root-forum.cern.ch/u/petrakou)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 6:27pm UTC](https://root-forum.cern.ch/t/jupyroot-setinputtrees-fails/52426 "2022-12-01T18:27:40Z")

</div>

Hello, What the title says. I’m trying to get signal and background events from the same tree. But when I run: thetree = inputFile.Get("myTree") sigCut = ROOT.TCut("Class\>1") bgCut = ROOT.TCut("Class\<1") dataloade…

---

## [Jupyter kernel dies while importing ROOT](https://root-forum.cern.ch/t/jupyter-kernel-dies-while-importing-root/52371)

<div class="topic-metadata">

**Author:** [@clowis](https://root-forum.cern.ch/u/clowis)\
**Replies:** 4\
**Last updated:** [November 22, 2022, 2:03pm UTC](https://root-forum.cern.ch/t/jupyter-kernel-dies-while-importing-root/52371 "2022-11-22T14:03:46Z")

</div>

Hello Everyone, I want to use ROOT with Python via Jupyter Notebook/Lab. When I try to import ROOT via Jupyter Notebook or Console, it results in a dead kernel. When I try to import ROOT directly in Python it works pe…

---

## [RooFit plotting in JupyRoot 6.24](https://root-forum.cern.ch/t/roofit-plotting-in-jupyroot-6-24/51904)

<div class="topic-metadata">

**Author:** [@masterfelu](https://root-forum.cern.ch/u/masterfelu)\
**Replies:** 4\
**Last updated:** [October 10, 2022, 8:23pm UTC](https://root-forum.cern.ch/t/roofit-plotting-in-jupyroot-6-24/51904 "2022-10-10T20:23:02Z")

</div>

I was going through the tutorials for RooFit on PyROOT, and most of them contain the syntax that looks like the one below(line 68 of fitting composite pdf tutorial is an example of such): df.plotOn(frame, LineColor="kRe…

---

## [Using ROOT as a jupyter kernel in VSCode on Windows 11](https://root-forum.cern.ch/t/using-root-as-a-jupyter-kernel-in-vscode-on-windows-11/51563)

<div class="topic-metadata">

**Author:** [@zhangjizhi](https://root-forum.cern.ch/u/zhangjizhi)\
**Replies:** 3\
**Last updated:** [September 28, 2022, 10:18am UTC](https://root-forum.cern.ch/t/using-root-as-a-jupyter-kernel-in-vscode-on-windows-11/51563 "2022-09-28T10:18:19Z")

</div>

Hello. I tried to use ROOT C++ as a jupyter kernel in VSCode 1.71.0 on Windows 11 but failed. I’ve successfully installed ROOT v6.24.06 via exe with all the required dependencies, and it operates normally in terminal. It…

---

## [Failed to import ROOT in jupyter notebook in docker fedora 36](https://root-forum.cern.ch/t/failed-to-import-root-in-jupyter-notebook-in-docker-fedora-36/51517)

<div class="topic-metadata">

**Author:** [@jingliu](https://root-forum.cern.ch/u/jingliu)\
**Replies:** 2\
**Last updated:** [September 13, 2022, 1:38pm UTC](https://root-forum.cern.ch/t/failed-to-import-root-in-jupyter-notebook-in-docker-fedora-36/51517 "2022-09-13T13:38:09Z")

</div>

ROOT Version: 6.26/06 Platform: Fedora 36 in docker Compiler: g++ When I run import ROOT in a jupyter notebook started as root --notebook --allow-root --no-browser --ip=0.0.0.0, I got the following error message: E…

---

## [Using highlight mode in JupyROOT with RootJS](https://root-forum.cern.ch/t/using-highlight-mode-in-jupyroot-with-rootjs/51235)

<div class="topic-metadata">

**Author:** [@bulukutl](https://root-forum.cern.ch/u/bulukutl)\
**Replies:** 2\
**Last updated:** [August 18, 2022, 11:47am UTC](https://root-forum.cern.ch/t/using-highlight-mode-in-jupyroot-with-rootjs/51235 "2022-08-18T11:47:31Z")

</div>

Hello all, I would like to get create a JupyterNotebook using PyROOT where the TGraph highlight mode. The goal would be to have a TGraph showing the mean values of a list of histograms, where hovering over a point in th…

---

## [Windows 10 cmd/VSCode: "Failed to import libcppyy3\_8" and "No module named 'ROOT"](https://root-forum.cern.ch/t/windows-10-cmd-vscode-failed-to-import-libcppyy3-8-and-no-module-named-root/50399)

<div class="topic-metadata">

**Author:** [@ovs](https://root-forum.cern.ch/u/ovs)\
**Replies:** 24\
**Last updated:** [June 17, 2022, 9:15am UTC](https://root-forum.cern.ch/t/windows-10-cmd-vscode-failed-to-import-libcppyy3-8-and-no-module-named-root/50399 "2022-06-17T09:15:27Z")

</div>

ROOT Version: 6.26/02 Platform: Windows 10 Python version: 3.8.10 (changed to this for compatibility with ROOT python version below) ROOT python version: 3.8.10 Problem: import ROOT in cmd and VSCode Hello! The c…

[Next page](https://root-forum.cern.ch/tag/jupyter/21.md?match_all_tags=true&page=1&tags%5B%5D=jupyter)
