Working effectively in notebooks

Notebooks are excellent for exploring and terrible at hidden state. Restart and run all is the only honest test of a notebook.

Lesson 4.123m 17sBeginner16.8k students

Chapters

23:17
  1. 0:00Introduction & video overview
  2. 0:25Shoutout to this video’s sponsor, Brilliant.org!
  3. 2:111. Running terminal commands such as “pip” directly in a notebook
  4. 5:17Magic lines in Jupyter
  5. 6:112. Shortcuts that you need to know for Jupyter!
  6. 9:253. Changing default Pandas options to improve results display
  7. 14:004. Setting up notifications for when a cell finishes execution
  8. 18:085. Creating slideshows from a IPython notebook!
  9. 23:00Conclusion (and link to bonus tip!

What this lesson covers

  • Structure a notebook so it reads top to bottom
  • Avoid out-of-order execution and stale state
  • Move stable code out into importable modules

This lesson sits in Reproducible Workflows, part of Python for Data Work. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will

  • Structure a notebook so it reads top to bottom
  • Avoid out-of-order execution and stale state
  • Move stable code out into importable modules

Resources