BUNDLE · JupyterLab / Notebook 7 / IPython / ipykernel / nbconvert / nbformat / ipytest / pipdeptree · verified 2026

Jupyter stack cheat sheet

The interactive-computing stack in one place: JupyterLab/Notebook 7 (the UI + server), IPython (the enhanced shell & magics), ipykernel (the execution kernel per environment), the nbformat/nbconvert/nbclient trio (read/convert/run notebooks programmatically), ipytest (pytest in a cell), and pipdeptree (untangle dependencies). This sheet targets JupyterLab 4.6 / Notebook 7. The one rule that prevents most confusion: a kernel is a Python environment — pick the right one.

the stack & launch IPython & magics kernels & environments nbconvert / nbformat / nbclient testing & deps gotcha most common

Verified 2026-08-24 against the official docs at jupyterlab.readthedocs.io, ipython.readthedocs.io, nbconvert/nbformat/nbclient.readthedocs.io, and the ipytest & pipdeptree repos. JupyterLab 4.x & Notebook 7 share the same underlying components.

Outline

JupyterLab is the UI; IPython is the language of the cells; a kernel is the environment. The bottom half is scripting notebooks and keeping environments sane.

Run

  1. 1 · Install & launch
  2. 2 · Notebook workflow

IPython

  1. 3 · Magics & shell
  2. 4 · Introspection & display

Kernels

  1. 5 · ipykernel & environments

Automate

  1. 6 · nbconvert (export)
  2. 7 · nbclient (execute)
  3. 8 · nbformat (edit)

Quality

  1. 9 · ipytest & pipdeptree
  2. 10 · Gotchas
  3. Worth memorizing

Run

Start the environment and work in cells.

1Install & launchLab 4 / Notebook 7
2Notebook workflowcells & shortcuts

IPython

The magics and helpers that make cells powerful.

3Magics & shell% and !
4Introspection & displayexplore objects

Kernels & Environments

The single biggest source of "why isn't my package found".

5ipykernel & environmentsa kernel = an env

Automate Notebooks

The nb-trio: convert, execute, and edit notebooks as data.

6nbconvert (export)to other formats
7nbclient (execute)programmatic runs
8nbformat (edit)notebooks as JSON

Quality

Test in cells, and untangle dependencies.

9ipytest & pipdeptreetest & deps
!Common gotchasread before shipping

Worth memorizing

a kernel is an environmentregister envs with python -m ipykernel install; check sys.executable
Restart & Run Allthe reproducibility test against hidden out-of-order state
%pip / %conda, not !pipso installs hit the kernel's env
%load_ext autoreload; %autoreload 2edit imported modules without restarting
obj? and obj??docstring / source; Shift+Tab for signatures
%timeit / %%time / %debugthe everyday magics
nbconvert --execute runs headlesslynbclient underneath; papermill to parameterize
nbformat = notebook as JSONread/build/strip cells programmatically
%%ipytest for tests; pipdeptree for deps--reverse to see what pulls a package in