Example of how to do soft and hard iron calibration from a 3DOF magnetometer.
Calibration and launch data is in the
$ pipenv install $ pipenv run jupyter notebook
This should open a browser tap with the homepage of jupyter notebooks. Click on the
You can also use an online notebook viewer pointed at the file, like this: