Full Text

Turn on search term navigation

© 2019 Rule et al. This is an open access article distributed under the terms of the Creative Commons Attribution License: http://creativecommons.org/licenses/by/4.0/ (the “License”), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.

Abstract

[...]the notebook is made available, along with its data (Rule 8), in a manner encouraging public exploration and contribution (Rules 9–10). https://doi.org/10.1371/journal.pcbi.1007007.g001 Rule 1: Document the process, not just the results Computational notebooks’ interactivity makes it quick and easy to try out and compare different approaches or parameters—so quick and easy that we often fail to document those interactive investigations at the time we perform them. [...]the advice long provided regarding paper lab scientific notebooks becomes even more critical: make sure to document all your explorations, even (or perhaps especially) those that led to dead ends. Version control systems compare differences in these JSON files, not differences in the user-friendly notebook graphical user interface (GUI). Because of this, reported differences between versions of a given notebook are usually difficult for users to find and understand because they are expressed as changes in the abstruse JSON metadata for the notebook. Perform preparatory steps, like data cleaning, directly in the notebook and avoid manual interventions. Because notebooks’ interactivity make them vulnerable to accidental overwriting or deletion of critical steps by the user, if your analysis runs quickly, make a habit of regularly restarting your kernel and rerunning all cells to make sure you did not accidentally delete a step while cleaning your notebook (and if you did, retrieve the code for it from version control).

Details

Title
Ten simple rules for writing and sharing computational analyses in Jupyter Notebooks
Author
Rule, Adam; Birmingham, Amanda; Zuniga, Cristal; Altintas, Ilkay; Shih-Cheng, Huang; Knight, Rob; Moshiri, Niema; Nguyen, Mai H; Sara Brin Rosenthal; Rose, Peter W
First page
e1007007
Section
Editorial
Publication year
2019
Publication date
Jul 2019
Publisher
Public Library of Science
ISSN
1553734X
e-ISSN
15537358
Source type
Scholarly Journal
Language of publication
English
ProQuest document ID
2274436559
Copyright
© 2019 Rule et al. This is an open access article distributed under the terms of the Creative Commons Attribution License: http://creativecommons.org/licenses/by/4.0/ (the “License”), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.