Notebook¶
- class verta.code.Notebook(notebook_path=None, _autocapture=True)¶
Captures metadata about the Jupyter Notebook at notebook_path and the current git environment.
Note
If a git environment is detected, then the Notebook’s recorded filepath will be relative to the root of the repository.
- Parameters:
- Raises:
OSError – If the Notebook filepath cannot automatically be determined.
Examples
from verta.code import Notebook Notebook() # Notebook Version # deployment/sklearn/sklearn-census-end-to-end.ipynb # 11513 bytes # last modified: 2021-07-30 09:50:17.344000 # MD5 checksum: 0cc9939f0625e430917950256a768f17 # Git Version # commit 87084c33d12d281420db7769a9fc2cff28051fba # on branch main # in repo git@github.com:VertaAI/examples.git Notebook("../spacy/text-classification-spacy.ipynb") # Notebook Version # deployment/spacy/text-classification-spacy.ipynb # 15273 bytes # last modified: 2021-07-30 09:45:26.768000 # MD5 checksum: 491b0367a178c394d3a276865757b29a # Git Version # commit 87084c33d12d281420db7769a9fc2cff28051fba # on branch main # in repo git@github.com:VertaAI/examples.git
- static blob_msg_to_object(blob_msg)¶
Deserialize a blob protobuf message into an instance.
- Parameters:
blob_msg (
VersioningService_pb2.Blob
) –- Returns:
instance of subclass of
Blob