Towards reproducible science with Jupyter Notebooks
Software plays a key role in modern science. Experiments that produce large amounts of data generally need substantial software-based analysis to extract understanding. Simulation-based research in particular yields results based solely on the computer-based generation of data and its subsequent analysis.
For publications, the scientific principle of reproducibility requires that studies and processes are documented and archived to such a level that they can be repeated at a later point – by the original authors as well as by other interested researchers. Technically, this should be possible for the software-driven steps. However, in practice reproducibility is often not given – for a multitude of reasons.
Now researchers from the UK, France, Norway and Germany – led by Hans Fangohr from the MPSD’s new Computational Science unit – have published practical solutions for this challenge on the basis of the OpenDreamKit research project. They recommend reproducible workflows that include the use of open source software and the provision of complex computational capabilities through researcher-friendly high-level command interfaces. These allow scientists to direct the research via electronic notebooks which automatically record every step that has been taken.
The work is published in Computing in Science and Engineering, which has a tradition of publishing important methodological advances.
One of the open source results of this work is the Ubermag simulation environment for magnetism at the nanoscale. The low-level simulation software, that has been optimized for high execution performance, is difficult to use directly, and the researchers developed a high-level Python interface to drive the simulations with much greater ease. The Ubermag environment features visualisation capabilities which provide immediate visual feedback on the simulation results and integrate naturally into the Jupyter notebook. Given this tool set, a simulation study can now be driven from the Jupyter notebook, which combines narrative comments by the researcher with commands to execute the simulation, immediately followed by the results obtained. The notebook has been designed to be able to record and archive this rich and executable document – thus providing a leap forward for the reproducibility of the study.
“To improve reproducibility in science, it is not enough to provide tools or workflows that make the results more reproducible. These tools must also fit into the scientific approach of the researchers and ideally lead to a better research experience, so that the new methods are accepted and adopted widely,” says Hans Fangohr, coordinating author of the publication.
Reproducibility is attracting increasing attention from researchers, research councils and publishers. “One additional aspect of the discussion is that reproducibility leads to re-usability,“ Fangohr explains. “If all the steps of a data analysis are documented and archived – ideally in a (potentially long!) computer-executable script – so that they can be repeated automatically at the touch of a button, then it becomes a lot easier to take such a study and extend it.
“Currently, it is not unusual for PhD students to spend months or years to first reproduce published results as a baseline, before they can extend the work with novel additions as the second step. With the workflows and methods proposed here, we can reduce that time to hours or minutes, making our collective research activity a lot more efficient.”
Wissenschaftliche Ansprechpartner:
Marijan Beg, lead author: M.Beg@soton.ac.uk
Hans Fangohr, leader Scientific Support Unit Computational Science, MPSD: hans.fangohr@mpsd.mpg.de
Originalpublikation:
https://ieeexplore.ieee.org/document/9325550
Weitere Informationen:
https://www.mpsd.mpg.de/547470/2021-05-fangohr-jupyter?c=17189
Media Contact
All latest news from the category: Information Technology
Here you can find a summary of innovations in the fields of information and data processing and up-to-date developments on IT equipment and hardware.
This area covers topics such as IT services, IT architectures, IT management and telecommunications.
Newest articles
Scientists transform blood into regenerative materials
… paving the way for personalized, blood-based, 3D-printed implants. Scientists have created a new ‘biocooperative’ material based on blood, which has shown to successfully repair bones, paving the way for…
A new experimental infection model in flies
…offers a fast and cost-effective way to test drugs. Researchers at the Germans Trias i Pujol Research Institute and Hospital have reinforced their leading role in infectious disease research by…
Material developed with novel stretching properties
KIT researchers produce metamaterial with different extension and compression properties than conventional materials. With this material, the working group headed by Professor Martin Wegener at KIT’s Institute of Applied Physics…