nbproject.dev.MetaLive

class nbproject.dev.MetaLive(nb_path, time_run=None, env=None)

Bases: object

Live properties of the notebook.

All attributes represent either the execution information or properties inferred on access from the notebook’s content.

Attributes

property consecutive_cells: bool

Have notebook cells been consecutively executed?

Logs cell transitions that violate execution at increments of 1 as a list of tuples.

property pypackage

Infer pypackages for the notebook.

This accounts for additional pypackages in the file metadata.

property time_passed

Number of seconds elapsed from time_run.

property time_run

The time when the current session started.

To get the proper time run, you need to use from nbproject import header at the beginning of the notebook. Otherwise, the time run is set to the time of the first access to this attribute.

property title: str | None

Get the title of the notebook.

The first cell should contain markdown text formatted as a title.

property user_handle

User handle from lamindb.

property user_id

User ID from lamindb.

property user_name

User name from lamindb.

Methods