Belle II Software  release-08-01-10
__init__.py
1 #!/usr/bin/env python3
2 
3 
10 
11 """
12 The main module of the Belle II Analysis Software Framework
13 """
14 
15 # import most things to be backwards compatible
16 from basf2.core import * # noqa
17 from basf2.utils import print_params, print_path # noqa
18 import sys as _sys
19 
20 
21 _is_ipython = hasattr(__builtins__, '__IPYTHON__') or 'IPython' in _sys.modules
22 if _is_ipython:
23  from IPython import get_ipython as _get_ipython
24  # check if we're in a notebook
25  if hasattr(_get_ipython(), "kernel"):
26  # import dedicated process function to override core version for notebooks
27  from basf2._notebooksupport import enable_notebooksupport, process # noqa
28  enable_notebooksupport()