Notebook

class neptune.notebook.Notebook(client, project, _id, owner)[source]

Bases: object

It contains all the information about a Neptune Notebook

Parameters
  • client (Client) – Client object

  • project (Project) – Project object

  • _id (str) – Notebook uuid

  • owner (str) – Creator of the notebook is the Notebook owner

Examples

# Create a notebook in Neptune.
notebook = project.create_notebook('data_exploration.ipynb')
add_checkpoint(file_path)[source]

Uploads new checkpoint of the notebook to Neptune

Parameters

file_path (str) – File path containing notebook contents

Example

# Create a notebook.
notebook = project.create_notebook('file.ipynb')

# Change content in your notebook & save it

# Upload new checkpoint
notebook.add_checkpoint('file.ipynb')
get_name()[source]

Returns the name used to upload the current checkpoint of this notebook

Returns

the name of current checkpoint

Return type

str

get_path()[source]

Returns the path used to upload the current checkpoint of this notebook

Returns

path of the current checkpoint

Return type

str