%reload_ext rubberize
import pint
ureg = pint.UnitRegistry()Turn Python calculations into clear, typeset mathematics.
Rubberize renders Python calculations as readable mathematical steps, making notebooks easier to review, explain, and document.
Usage is very simple: Just %%tap the cell.
Instead of leaving results hidden inside code execution, each step of the calculation appears as readable math.
The result is easier to follow, easier to verify, and easier to share with others.
[2] :
Get Started
Install Rubberize, load the notebook extension, and render your first calculation.
Rendering Python
See how Python expressions and statements appear when Rubberize renders them.
Config Reference
Complete reference for all Rubberize configuration options and defaults.