Notebooks for Academics
GEOTEC, Universitat Jaume I
May 2, 2024
Handwritten field notebook is a traditional research tool in science

Faraday recorded roughly 30,000 experiments
Laboratory notebooks, idea books, loose slips, retrieval sheets, work sheets
Notebooks numbered from 1 (Aug 1832) to 16,041 (Mar 1860)

Code embedded within the program’s documentation as opposed to documentation embedded within code.
Prose & code together
Merge publication with underlying computational analysis
Executable digital notebook
Be open & help others
Document for future self

figures and tables are automatically generated
results in text are automatically rendered
final content is automatically updated
Constant content change
We found that half of all published psychology papers that use null-hypothesis significance testing (NHST) contained at least one p-value that was inconsistent with its test statistic and degrees of freedom. One in eight papers contained a grossly inconsistent p-value that may have affected the statistical conclusion
When revisions are requested, one may have to constantly modify tables and figures by hand, which creates a strong incentive not to rerun analyses because it would mean re-pasting and re-illustrating all the numbers and figures in an article.
Easy verification and replication of research findings
While programming environments may seem counter-intuitive for writing papers, they ultimately prevent mistakes and save time.
No more time is spent doing reproducible science with notebooks

Most computational science is born in notebooks
and dies ends in PDF or Word documents
articles, reports
presentations
books, PhD thesis
websites, interactive dashboards
blog posts
lab documents
presentations
textbooks, manuals
websites, interactive materials
blog posts
One source, many output formats
A notebook is a (cloud-based/local) dynamic document composed of cells, which is used for literate programming
Each cell may contain:
Quarto notebook?A Quarto notebook is a (cloud-based/local) dynamic document (.qmd) composed of cells, which is used for literate programming
Each cell may contain:
.qmd)Quarto is an open-source scientific and technical publishing system built on Pandoc, and can:
qmd or Jupyter notebook to PDF, Word, HTML, slides, web pages, blog posts, books, etc.