Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Markup Reference

One table, every mark. The Default column marks the variant used when the letter is written without a digit (* = the bare form selects this variant).

Divider d

DefaultMarkDescription
:d0no divider
*:d1thin divider line
:d2thick divider line

See Dividers.

Exception e

DefaultMarkDescription
:e0no special handling; print as ordinary value
:e1print the exception message in red
*:e2Rich traceback panel
:e3Rich traceback panel with locals (show_locals)
:e4reserved, not implemented

See Exception Printing.

Flush f

DefaultMarkDescription
*:f1reserved

The f mark is parsed for forward compatibility but currently has no effect on the output. Do not rely on it.

Index i

DefaultMarkDescription
:i0reset counters
*:i1line-level counter (one counter per source line)
:i2scoped counter (per function, or per np.scope)
:i3global counter

See Index Counters.

Layout l

DefaultMarkDescription
:l0inline representation
*:l1expand containers over multiple lines
:l2tailored layout (tables, key-value grids, a -> b transforms)

See Expanded Formatting.

Varnames n

DefaultMarkDescription
:n0hide variable names
*:n1show variable names and expressions

See Variable Names.

Parent layer p

DefaultMarkDescription
:p0head points at the current frame
*:p1head points at the caller
:p2caller’s caller
:p3+one frame further up per number

See Source Layers.

Rich text r

DefaultMarkDescription
:r0inline markup disabled
*:r1inline markup enabled ([red]...[/])
:r2same as :l2

See Rich Text.

Short s

DefaultMarkDescription
:s0full output
*:s1short form: no source head, no variable names
:s2delegate to the built-in print

See Printing Basics.

Timing t

DefaultMarkDescription
:t0reset the timer
:t1absolute timestamp
*:t2time since the previous :t2/:t3 call
:t3time since the scope timer was reset

See Timing.

Verbosity v

DefaultMarkDescriptionColor
*:v0debuggray
:v1negative infomagenta
:v2positive infoblue
:v3weak successdim green
:v4successgreen
:v5weak warningdim yellow
:v6warningyellow
:v7weak errordim red
:v8errorred
:v9criticalreserved, not implemented

See Verbosity Levels.