numpy
and matplotlib
. We recommend that you install ipython
and jupyter notebook
.bornagain
module, edit the PYTHONPATH via Run -> Edit configurations.Check that python is working from command line:
python -c "print('hello, world!')
or in a jupyter notebook:
In [6]:
print('hello, world!')
Check that the bornagain python module is correctly installed:
In [5]:
from __future__ import print_function #needed for python2/python3 compatibility
try:
import bornagain as ba
print("successfully loaded bornagain module")
major, minor = ba.major_version_number, ba.minor_version_number
print("BornAgain version number is {0}.{1}".format(major, minor))
except:
print("could not import bornagain module!")
In [ ]: