I have a .root file containing a tree with branch of histograms.
In ipython, I can load the file and Draw the histogram. But when I try to Draw the next histogram, the canvas does not update. The same code, run from a standard python prompt, works fine…
In [] import ROOT
In [] f=ROOT.TFile("test.root")
In [] t=f.Get('raw')
In [] t.Print()
******************************************************************************
*Tree :raw : title of tree *
*Entries : 3 : Total = 242676 bytes File Size = 36090 *
* : : Tree compression factor = 6.78 *
******************************************************************************
*Br 0 :wf : TH1I *
*Entries : 3 : Total Size= 242284 bytes File Size = 35676 *
*Baskets : 3 : Basket Size= 32000 bytes Compression= 6.78 *
*............................................................................*
In [] t.GetEvent(0)
In [] t.wf.Draw() # canvas is created and TH1I is drawn
In [] t.GetEvent(1)
In [] t.wf.Draw() # canvas does not update...
Are there any known issues along these lines with ipython?
$ root-config --version
6.08/02
$ python --version
Python 2.7.5
$ ipython --version
5.1.0