Hi,
I have a problem with ipython not playing nicely with pyROOT. My post to the ipython-user list can be found here: mail.scipy.org/pipermail/ipython … 07228.html
The problem is the following.
PyROOT in a normal python session works flawlessly, but in ipython the following gives problems:
In [1]: from ROOT import *
(Bool_t)1
In [2]: g=TGraph()
…
NameError: name ‘TGraph’ is not defined
So for some reason this does not work in ipython.
The strange thing is that the following works fine in ipython;
In [1]: import ROOT
In [2]: g=ROOT.TGraph()
Works and g is completely usable as a ROOT graph object.
The following also works:
In [1]: from ROOT import TGraph
(Bool_t) 1
In [2]: g=TGraph()
(I only used TGraph as an example. The problem is general for all ROOT classes)
Some information:
I am on a 64bit Mac using OSX10.6 and the standard installation of python.
Does anyone have an idea what could cause this?
Cheers,
Simon