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.
Functions
Section titled “Functions”current_cell
Section titled “current_cell”function
def current_cell() -> int | NoneExecution count of the cell running now, or None outside a notebook.
Source: packages/finprint/src/finprint/notebook.py, line 19
cell_log
Section titled “cell_log”function
def cell_log() -> list[dict[str, Any]]Source: packages/finprint/src/finprint/notebook.py, line 25
active
Section titled “active”function
def active() -> boolSource: packages/finprint/src/finprint/notebook.py, line 30
load_ipython_extension
Section titled “load_ipython_extension”function
def load_ipython_extension(ip: Any) -> NoneSource: packages/finprint/src/finprint/notebook.py, line 78
unload_ipython_extension
Section titled “unload_ipython_extension”function
def unload_ipython_extension(ip: Any) -> NoneSource: packages/finprint/src/finprint/notebook.py, line 94