ROOT  6.06/08
Reference Guide
bindings/pyroot/ROOTaaS/README.md
Go to the documentation of this file.
1 # ROOTaaS
2 A tool to integrate the iPython notebooks, ROOT and jsROOT. This tool is an add-on to pyROOT and is still in the prototype phase.
3 
4 ## Set the server up
5 1. Get ROOT6, set it up.
6 2. Get iPython, at least version 3.
7 3. Clone the repository
8 4. Type "ipython notebook"
9 
10 ## Example usage
11 ```python
12 from ROOTaaS.iPyROOT import ROOT
13 h = ROOT.TH1F("h","iPython Histo;X;Y",64,-4,4)
14 h.FillRandom("gaus")
15 h.Draw()
16 ```
17 
18 ## Magics and interaction with C++
19  * %%cpp for marking a cell for C++
20  * %%dcl for marking a cell for declaring C++ (e.g. for functions)
21  * ROOT.toCpp() to move from Python to C++
22  * toPython() to move from C++ to Python
23  * .decl for marking a cell for declaring C++ (e.g. for functions) in C++ mode (as %%dcl)