Belle II Software development
__init__.py
1#!/usr/bin/env python3
2
3
10
11"""
12The main module of the Belle II Analysis Software Framework
13"""
14
15# import most things to be backwards compatible
16from basf2.core import * # noqa
17from basf2.utils import print_params, print_path # noqa
18import sys as _sys
19
20
21_is_ipython = hasattr(__builtins__, '__IPYTHON__') or 'IPython' in _sys.modules
22if _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()