Run PyROOT in batch mode
When running in batch mode, PyROOT does not display any graphics. You can activate the batch mode as follows:
Pass
-b
as a command line argument, for example,python -b <yourscript.py>
. For this work you must setROOT.PyConfig.IgnoreCommandLineOptions = False
inside the PyROOT script.Call
gROOT.SetBatch
in the PyROOT script right after importing ROOTimport ROOT ROOT.gROOT.SetBatch(True)
Last updated