Skip to content

finprint.notebook

module finprint

IPython extension: %load_ext finprint.

Loading the extension starts a session (unless one is already running) and registers two callbacks: pre_run_cell notes the execution count of the cell that is about to run (corrected for IPython versions that have already advanced it), and post_run_cell checks every live tracked frame for changes no recorded step explains, then logs the cell’s source, execution count, run order and the frame versions it produced. Cells are narrative only; replay never runs them.

Nothing here imports IPython, so the package works in plain scripts where none of this runs.

function

def current_cell() -> int | None

Execution count of the cell running now, or None outside a notebook.

Source: packages/finprint/src/finprint/notebook.py, line 19

function

def cell_log() -> list[dict[str, Any]]

Source: packages/finprint/src/finprint/notebook.py, line 25

function

def active() -> bool

Source: packages/finprint/src/finprint/notebook.py, line 30

function

def load_ipython_extension(ip: Any) -> None

Source: packages/finprint/src/finprint/notebook.py, line 78

function

def unload_ipython_extension(ip: Any) -> None

Source: packages/finprint/src/finprint/notebook.py, line 94