Skip to content

Commit

Permalink
updating nb
Browse files Browse the repository at this point in the history
  • Loading branch information
rbyh committed Feb 8, 2025
1 parent 6a322f0 commit 37d71d9
Showing 1 changed file with 33 additions and 24 deletions.
57 changes: 33 additions & 24 deletions docs/notebooks/save_load_objects_locally.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@
"text/plain": [
"{'description': 'Example free text question',\n",
" 'object_type': 'question',\n",
" 'url': 'https://www.expectedparrot.com/content/a1558ad6-a569-4c23-9350-ad4687f2e7b4',\n",
" 'uuid': 'a1558ad6-a569-4c23-9350-ad4687f2e7b4',\n",
" 'version': '0.1.39.dev2',\n",
" 'url': 'https://www.expectedparrot.com/content/56a83cf3-5f2c-48de-856f-eeb4a531c8bc',\n",
" 'uuid': '56a83cf3-5f2c-48de-856f-eeb4a531c8bc',\n",
" 'version': '0.1.43.dev1',\n",
" 'visibility': 'public'}"
]
},
Expand Down Expand Up @@ -316,9 +316,9 @@
"text/plain": [
"{'description': 'Example survey',\n",
" 'object_type': 'survey',\n",
" 'url': 'https://www.expectedparrot.com/content/afac5eb3-0c58-44a5-8478-39065df02135',\n",
" 'uuid': 'afac5eb3-0c58-44a5-8478-39065df02135',\n",
" 'version': '0.1.39.dev2',\n",
" 'url': 'https://www.expectedparrot.com/content/de99846c-5771-40dd-9e86-dce88f3fc70f',\n",
" 'uuid': 'de99846c-5771-40dd-9e86-dce88f3fc70f',\n",
" 'version': '0.1.43.dev1',\n",
" 'visibility': 'public'}"
]
},
Expand Down Expand Up @@ -350,9 +350,9 @@
"text/plain": [
"{'description': 'Example scenario list',\n",
" 'object_type': 'scenario_list',\n",
" 'url': 'https://www.expectedparrot.com/content/487c4cb4-7f4f-4393-b333-ed3ffc2d56c4',\n",
" 'uuid': '487c4cb4-7f4f-4393-b333-ed3ffc2d56c4',\n",
" 'version': '0.1.39.dev2',\n",
" 'url': 'https://www.expectedparrot.com/content/abb06194-f0ae-4585-a0e1-352fccf8c556',\n",
" 'uuid': 'abb06194-f0ae-4585-a0e1-352fccf8c556',\n",
" 'version': '0.1.43.dev1',\n",
" 'visibility': 'public'}"
]
},
Expand Down Expand Up @@ -384,9 +384,9 @@
"text/plain": [
"{'description': 'Example scenario',\n",
" 'object_type': 'scenario',\n",
" 'url': 'https://www.expectedparrot.com/content/e46661c4-3529-4a03-8caf-e0986e1f678d',\n",
" 'uuid': 'e46661c4-3529-4a03-8caf-e0986e1f678d',\n",
" 'version': '0.1.39.dev2',\n",
" 'url': 'https://www.expectedparrot.com/content/7c8d1e53-8dcf-4cde-9d5a-9daf556e6ec8',\n",
" 'uuid': '7c8d1e53-8dcf-4cde-9d5a-9daf556e6ec8',\n",
" 'version': '0.1.43.dev1',\n",
" 'visibility': 'public'}"
]
},
Expand Down Expand Up @@ -418,9 +418,9 @@
"text/plain": [
"{'description': 'Example agent list',\n",
" 'object_type': 'agent_list',\n",
" 'url': 'https://www.expectedparrot.com/content/c9ec0b1c-a610-4e28-a143-8db7179eb85e',\n",
" 'uuid': 'c9ec0b1c-a610-4e28-a143-8db7179eb85e',\n",
" 'version': '0.1.39.dev2',\n",
" 'url': 'https://www.expectedparrot.com/content/b30c7a75-c1b8-4fdd-9f43-65927e3673e5',\n",
" 'uuid': 'b30c7a75-c1b8-4fdd-9f43-65927e3673e5',\n",
" 'version': '0.1.43.dev1',\n",
" 'visibility': 'public'}"
]
},
Expand Down Expand Up @@ -452,9 +452,9 @@
"text/plain": [
"{'description': 'Example agent',\n",
" 'object_type': 'agent',\n",
" 'url': 'https://www.expectedparrot.com/content/96cff666-086e-44be-bb09-ac78f76f777f',\n",
" 'uuid': '96cff666-086e-44be-bb09-ac78f76f777f',\n",
" 'version': '0.1.39.dev2',\n",
" 'url': 'https://www.expectedparrot.com/content/fd26b95c-cb0a-47aa-b4b8-ef25a6f73c0f',\n",
" 'uuid': 'fd26b95c-cb0a-47aa-b4b8-ef25a6f73c0f',\n",
" 'version': '0.1.43.dev1',\n",
" 'visibility': 'public'}"
]
},
Expand All @@ -467,6 +467,14 @@
"my_agent.push(description = \"Example agent\", visibility = \"public\")"
]
},
{
"cell_type": "markdown",
"id": "a38a2d93-85d4-488d-b117-204cb7c97c97",
"metadata": {},
"source": [
"Here we post this notebook:"
]
},
{
"cell_type": "code",
"execution_count": 17,
Expand Down Expand Up @@ -522,9 +530,9 @@
"text/plain": [
"{'description': 'Methods for saving and loading objects locally',\n",
" 'object_type': 'notebook',\n",
" 'url': 'https://www.expectedparrot.com/content/5496e997-b04e-4cf8-bd25-25180f2768fd',\n",
" 'uuid': '5496e997-b04e-4cf8-bd25-25180f2768fd',\n",
" 'version': '0.1.36.dev1',\n",
" 'url': 'https://www.expectedparrot.com/content/fb08f43e-ee45-4331-b705-e758a7ccc636',\n",
" 'uuid': 'fb08f43e-ee45-4331-b705-e758a7ccc636',\n",
" 'version': '0.1.43.dev1',\n",
" 'visibility': 'public'}"
]
},
Expand All @@ -534,7 +542,8 @@
}
],
"source": [
"n.push(description = \"Methods for saving and loading objects locally\", visibility = \"public\")"
"info = n.push(description = \"Methods for saving and loading objects locally\", visibility = \"public\")\n",
"info"
]
},
{
Expand Down Expand Up @@ -568,7 +577,7 @@
{
"cell_type": "code",
"execution_count": 21,
"id": "99d10301-343d-4125-852f-93ca0c4a966f",
"id": "d1709a7d-7ef2-472f-9ab4-e83346a197ee",
"metadata": {
"editable": true,
"slideshow": {
Expand All @@ -591,7 +600,7 @@
}
],
"source": [
"n.patch(uuid = \"5496e997-b04e-4cf8-bd25-25180f2768fd\", value = n)"
"n.patch(uuid = info[\"uuid\"], value = n)"
]
}
],
Expand Down

0 comments on commit 37d71d9

Please sign in to comment.