Skip to content

Commit

Permalink
Finishes all the runs in the notebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
katjacksonWB committed May 15, 2024
1 parent bd188ed commit e2f825c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions colabs/artifact_basics/Artifact_Basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
"outputs": [],
"source": [
"run = wandb.init(project=\"artifact-basics\")\n",
"run.log_artifact(artifact_or_path=\"/content/sample_data/mnist_test.csv\", name=\"my_first_artifact\", type=\"dataset\")"
"run.log_artifact(artifact_or_path=\"/content/sample_data/mnist_test.csv\", name=\"my_first_artifact\", type=\"dataset\")\n",
"run.finish()"
]
},
{
Expand Down Expand Up @@ -158,7 +159,8 @@
"outputs": [],
"source": [
"run = wandb.init(project=\"artifact-basics\")\n",
"artifact = run.use_artifact(artifact_or_name=\"my_first_artifact:latest\")"
"artifact = run.use_artifact(artifact_or_name=\"my_first_artifact:latest\")\n",
"run.finish()"
]
},
{
Expand Down Expand Up @@ -198,6 +200,7 @@
"artifact = run.use_artifact(artifact_or_name=\"my_first_artifact:latest\")\n",
"# downloads the artifact to a directory on the W&B platform.\n",
"datadir = artifact.download()\n",
"run.finish()\n",
"# prints the current artifact directory\n",
"print(u'\\u2500' * 10)\n",
"print(\"Data directory located at:\" + datadir)"
Expand Down Expand Up @@ -244,7 +247,8 @@
"run = wandb.init(project=\"artifact-basics\")\n",
"artifact = run.use_artifact(artifact_or_name=\"my_first_artifact:latest\")\n",
"artifact.description = \"This is an edited description.\"\n",
"artifact.save()"
"artifact.save()\n",
"run.finish()"
]
},
{
Expand Down

0 comments on commit e2f825c

Please sign in to comment.