Belle II Software  release-06-01-15
__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 from pybasf2 import logging
19 import sys as _sys
20 
21 
22 _is_ipython = hasattr(__builtins__, '__IPYTHON__') or 'IPython' in _sys.modules
23 if _is_ipython:
24  from IPython import get_ipython as _get_ipython
25  if hasattr(_get_ipython(), "kernel"):
26  # we're in a notebook
27  from basf2._notebooksupport import enable_notebooksupport, process
28  enable_notebooksupport()