In [1]:
import ROOTaaS.iPyROOT
ROOT = ROOTaaS.iPyROOT.ROOT

In [2]:
c = ROOT.TCanvas()
h = ROOT.TH1F("h1","IPython histogram", 100, 0, 10)
h.FillRandom("gaus", 10000)
h.Draw()


  

In [3]:
%load_ext ROOTaaS.iPyROOT.cppmagic


  

In [5]:
%%cpp
TH1F h("h2","IPython histogram from C++", 100, 0, 10);
h.SetLineColor(kRed);
h.FillRandom("gaus", 10000)


  
Out[5]:
0

In [6]:
ROOT.h.Draw("Same")


  

In [ ]: