Rubberize
  • Home
  • Get Started
  • Rendering Code
  • Custom Converters
  • Config Reference

Rubberize

Turn Python calculations into clear, typeset mathematics.

Rubberize renders Python calculations as readable mathematical steps, making notebooks easier to review, explain, and document.

Get Started

See Examples


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.

[1] :

%reload_ext rubberize
import pint

ureg = pint.UnitRegistry()

[2] :

%%tap
w = 10.0 * (ureg.kN / ureg.m)  # Load intensity
L = 8.0 * ureg.m               # Beam span

M_max = w * L**2 / 8           # Maximum moment @stack
\( \displaystyle w = 10.00\ \mathrm{kN} / \mathrm{m} \)
Load intensity
\( \displaystyle L = 8.00\ \mathrm{m} \)
Beam span
\( \displaystyle \begin{aligned} M_{\mathrm{max}} &= \frac{w\,L^{2}}{8} \\ &= \frac{\left( 10.00\ \mathrm{kN} / \mathrm{m} \right)\,\left( 8.00\ \mathrm{m} \right)^{2}}{8} \\ &= 80.00\ \mathrm{kN}\,\mathrm{m} \end{aligned} \)
Maximum moment

Get Started

Install Rubberize, load the notebook extension, and render your first calculation.

Start here

Rendering Python

See how Python expressions and statements appear when Rubberize renders them.

See examples

Custom Converters

Define how Rubberize renders your own functions, classes, and objects.

Explore

Config Reference

Complete reference for all Rubberize configuration options and defaults.

Browse options

 

© 2025-2026 Chito Peralta. Rubberize licensed MIT. Docs licensed CC BY 4.0.