Hello.
@apreshill
@apreshill
fosstodon.org/@apreshill
apreshill.com
There was a human named Joel Grus (@joelgrus
), who did not like notebooks.
There was another human named Jeremy Howard (@jeremyphoward
), who actually did like notebooks.
A fair post-ac data scientist turned product manager was knitting notebooks to her heart’s desire
We are still just talking about tools and features.
And…we are still (mainly) talking with engineers.
A creative team of artists and engineers who design the theme parks
“We keep moving forward, opening up new doors and doing new things, because we’re curious. And curiosity keeps leading us down new paths. We’re always exploring and experimenting. We call Imagineering the blending of creative imagination with technical know-how.”
— Walt Disney
“an interactive, editable document defined by code. It’s a computer program, but one that’s designed to be easier to read and write by humans.”
“A computational notebook is an environment for writing a prose document that allows the author to embed code which can be easily executed with the results also incorporated into the document.”
---
title: "ggplot2 demo"
author: "Norah Jones"
date: "5/22/2021"
format:
html:
fig-width: 8
fig-height: 4
code-fold: true
---
## Air Quality
@fig-airquality further explores the impact of temperature on ozone level.
```{r}
#| label: fig-airquality
#| fig-cap: Temperature and ozone level.
#| warning: false
library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) +
geom_point() +
geom_smooth(method = "loess"
)
```
For communicating to decision makers, who want to focus on the conclusions, not the code behind the analysis.
For collaborating with other data scientists (including future you!), who are interested in both your conclusions, and how you reached them (i.e. the code).
As an environment in which to do data science, as a modern day lab notebook where you can capture not only what you did, but also what you were thinking.
Authoring framework: how you write code
+ text (Jupyter, Quarto, Observable)
Language engine & markdown flavor: what you write
File format: what you save
Local editor: where you write locally 💻 (source + UI)
Platform editor: where the magic happens ☁️ (sharing + UI)
Notebook mode
Batch mode
Principle #1
Suspended reality
Problem: Walt Disney found it jarring to see characters out of place. It breaks the suspension of reality.
Solution: Disney built the utilidor system — a system of some of the world’s largest utility tunnels
An intricate web of tunnels lies underneath the park, enabling characters to navigate to their respective “worlds” without ever appearing out of world or duplicative.
Less magic, more plain text logic
Principle #2
Multisensory experience
Problem: Being at Disney World needs to be an immersive, memorable experience.
Solution: Disney built the smellitizer system — a system that blows air across scented substances to make the air smell a certain (ideally good) way.
Have you ever seen a notebook with…
“Information foraging explains how users behave on the web and why they click certain links and not others.
Information scent can be used to analyze how people assess a link and the page context surrounding the link to judge what’s on the other end of the link.”
Principle #3
Details matter
Problem: When a single detail is wrong, you lose the experience and the magic.
Solution: Reduce the chances of losing the magic.
Examples:
1. You cannot buy gum
2. Official no-fly zone
3. Always within 30 steps of a trash can
Principle #4
Make it shareable
Problem: Making something shareable makes it more memorable.
Solution: Make it easier to share.
Examples:
“The concrete—a brainchild of Disney and Kodak—creates more vivid photographs…and also makes the green grass appear greener.”
“[Cinderella’s] castle faces south, meaning the sun is never directly behind it. It’s (almost) impossible to take a bad photo of yourself in front of Cinderella’s Castle.”
Authors should be able to:
Quickly share incomplete thoughts (with errors in code!)
Time travel to different versions (with output!)
Stash bits of code out of sight (with utilidors!)
Annotate easily what to look at and what not to look at 🚥
“We’re on the brink of adventure, children. Don’t spoil it with questions.”
– Mary Poppins
it’s my emotional support notebook
Useful to record my code + thought process
Useful to get feedback from others
Useful to get help getting unstuck
Useful to help others get unstuck
Useful to teach with
Useful to learn with
Useful to collaborate with
Useful to publish work for my career
Useful to debug with (see reprex)
Useful to iterate on code with
Notebook users should be able to follow all four of these key principles with tools we make for them:
Tom Mock
Allison Horst
Rich Iannone
JJ Allaire
Charles Teague
Observable Insight 2022 conference organizers
AGU Notebooks Now! Initiative and support from the Sloan Foundation
CANSSI and Rohan Alexander for this opportunity
@apreshill
@apreshill
fosstodon.org/@apreshill
apreshill.com