Log text#
Related
You have several options for logging text to a Neptune object.
Free-form text#
Small piece of text#
You can assign a single string to a field:
or iteratively log a series of short text entries (max 1000 characters) with the append()
method:
# Log series of strings to the same field
for epoch in range(epochs_nr):
token = str(...)
run["train/tokens"].append(token)
Long piece of text#
If your string is long, it may be handier to upload as a text file instead.
-
Option A) Log the text as a file by utilizing the
from_content()
method of the Python API: -
Option B) Manually save your text as a file on disk, then upload that:
Note
Due to a technical limitation, we now limit the number of indexed characters in String fields to 1000 characters. This means that for runs table search, only the first 1000 characters will be considered.
Description of the run#
Tip
You can edit the name of the object in the same way, with the name
argument or the sys/name
field.
Adding a description is one way to annotate or comment on the object. You can add the description either when first creating the object or later through the web app.
Adding a description at initialization#
Pass some text to the description
argument when initializing a run:
This stores the tags in the sys/description
field. You can modify it later by editing this field either through the web app or the API.
Adding a description later#
You can also edit the description field directly:
- Next to the run ID, click the menu () and select Show run information.
- Edit the Description field.
- Save your changes.
If you want to edit the description a previously created object, you need to resume it first:
- The ID of the run. For example,
CLAS-13
.
To modify an existing description, simply override it with a new string.
Tip
You can use emoji in any string (except StringSeries
fields):