Skip to content
Snippets Groups Projects
Commit 9ef3a2d6 authored by Danilo Piparo's avatar Danilo Piparo
Browse files

[PyROOT] Do not invoke TPython::Exec upon ROOT import from ipython

and therewith notebooks.
This was necessary to work around fakemodule, which has been removed
from ipython a long time ago.
The invocation to TPython triggers the loading of the TPyClassGenerator
TClassGenerator. Such generator acquires the GIL from within C++ code
unavoidably leading to deadlocks if ROOT thread safety is enabled.
parent 241fc7f0
Branches
Tags
No related merge requests found
......@@ -721,8 +721,6 @@ class ModuleFacade( types.ModuleType ):
# must be called after gApplication creation:
if _is_ipython:
# IPython's FakeModule hack otherwise prevents usage of python from Cling (TODO: verify necessity)
_root.gROOT.ProcessLine( 'TPython::Exec( "" );' )
sys.modules[ '__main__' ].__builtins__ = __builtins__
# special case for cout (backwards compatibility)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment