Hello everybody,
I am using ROOT C++ kernel in JupyterLab.
The output of my code cells is full of cling warnings.
Is there a way to suppress cling warnings in jupyterLab?
Please read tips for efficient and successful posting and posting code
Please fill also the fields below. Note that root -b -q
will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug
from the ROOT prompt to pre-populate a topic.
_ROOT Version:6.28/10
_Platform:jupyter notebook
_Compiler:ROOT C++ kernel
Danilo
December 28, 2023, 3:12pm
2
Hello,
Sorry to hear you see all this warnings. Your post perhaps needs a bit more context:
What kernel are you using?
What warnings do you see?
Do you see them in interactive mode at the prompt?
Do you see them in a regular notebook?
Cheers,
Danilo
Hello, sorry for the late reply, I was on holiday
I am using 6.28/10 ROOT C++ kernel
the command I am using to run the notebook is “root --notebook”
Example of cell code:
TCanvas c("Canvas 1", "Canvas", 0, 0, 1000,500);
c.divide(2,2);
for (int j=0; j<2; ++j)
{
TH2F* pPlot1 = obj1.GenerateSinglePlot();
TH2F* pPlot2 = obj2.GenerateSinglePlot();
c.cd(2*j+1);
pPlot1->Draw("COLZ");
c.cd(2*j+2);
pPlot2->Draw("COLZ");
}
c.Draw()
the output is then spammed by these messages
Warning in <TFile::Append>: Replacing existing TH1: obj1 plot1 (Potential memory leak).
Warning in <TFile::Append>: Replacing existing TH1: obj2 plot1 (Potential memory leak).
Warning in <TFile::Append>: Replacing existing TH1: obj1 plot2 (Potential memory leak).
Warning in <TFile::Append>: Replacing existing TH1: obj2 plot2 (Potential memory leak).
How to disable warnings in output?
system
Closed
January 23, 2024, 8:22am
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.