Belle II Software
development
__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()
basf2._notebooksupport
Definition:
_notebooksupport.py:1
basf2.core
Definition:
core.py:1
basf2.utils
Definition:
utils.py:1
framework
scripts
basf2
__init__.py
Generated on Fri Nov 8 2024 02:38:55 for Belle II Software by
1.9.6