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

consecutive_cells#

Have notebook cells been consecutively executed?

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

pypackage#

Infer pypackages for the notebook.

This accounts for additional pypackages in the file metadata.

time_passed#

Number of seconds elapsed from time_run.

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.

title#

Get the title of the notebook.

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

user_handle#

User handle from lamindb.

user_id#

User ID from lamindb.

user_name#

User name from lamindb.