Skip to content

pyROOT doesn't work with ipyparallel #6974

@TatianaOvsiannikova

Description

@TatianaOvsiannikova

Describe the bug

ROOT fails inside the ipyparallel.directView.map method.

Expected behavior

pyRoot should work with ipyparallel

To Reproduce

Please find bellow the steps to reproduce the issue:

source /cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/setup.sh
ipcluster start -n 3 --daemonize
ipython test_ipp.py

the gist for test_ipp.py script:
https://gist.github.com/TatianaOvsiannikova/eb8065352b3605cbebf547e7d2465c37

it fails with an error:

NameErrorTraceback (most recent call last) in ()
in f(x)
/cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/lib/ROOT.pyc in ()
823 ip = get_ipython()
824 if hasattr(ip,"kernel"):
--> 825 import JupyROOT
826 import JsMVA
827
/cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/lib/ROOT.pyc in _importhook(name, *args, **kwds)
520 except Exception:
521 pass
--> 522 return _orig_ihook( name, *args, **kwds )
523
524 builtin.import = _importhook
/cvmfs/sft.cern.ch/lcg/views/LCG_97/x86_64-centos7-gcc8-opt/lib/JupyROOT/init.py in ()
1 from JupyROOT.helpers import cppcompleter, utils
2
3 if 'IPYTHON' in builtins and IPYTHON:
----> 4 cppcompleter.load_ipython_extension(get_ipython())
5 utils.iPythonize()
NameError: name 'get_ipython' is not defined
-->

Setup

  1. ROOT 6.20/02
  2. centos 7, lxplus7.cern.ch
  3. LCG_97 via cvmfs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions