Jupyter Notebook 101

Jupyter Notebook 101 will teach you all you need to know to create and use Notebooks effectively. You can use Jupyter Notebook to help you learn to code, create presentations, and make beautiful documentation.

The Jupyter Notebook is used by the scientific community to demonstrate research in an easy-to-replicate manner.

You will learn the following in Jupyter Notebook 101:

  • How to create and edit Notebooks
  • How to add styling, images, graphs, etc
  • How to configure Notebooks
  • How to export your Notebooks to other formats
  • Notebook extensions
  • Using Notebooks for presentations
  • Notebook Widgets
  • and more!

Cover art by Tyler (“Killustrator”) Sowles. You can view more of his work on DeviantartBehance or his website.

Purchase the book:

Table of Contents

  • Introduction
    • About the Author
    • Conventions
    • Prerequisites
    • Installing with Anaconda
    • Installing with pip
    • Verify Jupyter Notebook Installation
    • Reader Feedback
    • Errata
    • Code Examples
  • Chapter 1 – Creating a Notebook
    • Creating a Notebook
    • Naming a Notebook
    • Running a Cell
    • Cell Management
    • The View Menu
    • The Insert Menu
    • The Cell Menu
    • The Kernel Menu
    • Starting a Terminal in the Browser
    • Managing Notebooks
    • Jupyter Clusters
    • Wrapping Up
  • Chapter 2 – Creating Rich Text in Notebooks
    • Styling a Cell
    • Wrapping Up
  • Chapter 3 – Jupyter Notebook Configuration
    • Notebook Defaults
    • The Common Configuration System
    • Notebook Server
    • The Front-End Client
    • Notebook Extensions
    • Wrapping Up
  • Chapter 4 – Distributing Notebooks
    • Using Github
    • binder
    • Google’s Colaboratory
    • Microsoft Azure Notebooks
    • Running a Notebook Server
    • Wrapping Up
  • Chapter 5 – Exporting Notebooks
    • Using nbconvert
    • Converting Multiple Notebooks
    • Executing Notebooks
    • Executing Notebooks with Python
    • Configuration
    • Wrapping Up
  • Chapter 6 – Notebook Extensions
    • Kernels
    • IPython Kernel Extensions
    • Notebook Server Extensions
  • Chapter 7 – Notebook Widgets with interact
    • Getting Started
    • Learning How to Interact
    • More About Sliders
    • Using interact as a decorator
    • Fixed Arguments
    • The interactive function
    • Wrapping Up
  • Chapter 8 – Working with Widgets
    • Creating a Widget
    • Closing a Widget
    • Properties and Keys of a Widget
    • Linking Two Widgets
    • Events
    • Layout
    • Wrapping Up
  • Chapter 9 – Slideshows
    • Creating a Slideshow
    • Getting Started with RISE
    • Wrapping Up
  • Chapter 10 – Debugging
    • Using pdb
    • ipdb
    • What about %%debug?
    • Wrapping Up
  • Chapter 11 – Testing
    • Execute and Check
    • The py.test Plugin
    • Testing within the Notebook
    • Wrapping Up
  • Chapter 12 – JupyterLab
    • Installation
    • Running JupyterLab
    • The File Browser
    • Special URLS
    • Creating and Using Notebooks
    • The Cell Inspector
    • Using Files
    • The Text Editor
    • Interactive Code Consoles
    • Terminals
    • The Command Palette
    • Supported File Types
    • A Word on Extensions
    • Wrapping Up
  • Appendix A – Magic Commands
    • Line Magics
    • Cell Magics
    • Wrapping Up
  • Appendix B – Running Other Programming Languages
    • Adding a New Language
    • Running Ruby
    • Running Multiple Languages
    • Wrapping Up
  • Appendix C – Keyboard Shortcuts
    • Command Mode
    • Edit Mode
    • Commonly Used Shortcuts
    • Opening the Command Palette
    • View all Shortcuts
    • Editing Shortcuts
    • Wrapping Up
  • Afterword and Thanks