Skip to content

Instrospection: get source of the cell from the cell ? #213

@paugier

Description

@paugier

When executing a notebook with nbval, get_ipython().history_manager.input_hist_raw (mentioned by @takluyver in jupyter/notebook#3101 (comment)) does not work for recent versions of nbval, so it is not possible to get the source of a cell from a cell.

I used this feature in https://transonic.readthedocs.io and I test it with nbval~=0.9.6.

Is it possible to get the cell input in Python from the cell with recent version of nbval ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions