Skip to content

Commit

Permalink
Merge pull request #8085 from OpenMined/helm
Browse files Browse the repository at this point in the history
Helm
  • Loading branch information
koenvanderveen authored Dec 2, 2023
2 parents 7f6dce1 + fee7b26 commit 5bb0112
Show file tree
Hide file tree
Showing 98 changed files with 12,456 additions and 632 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ js/node_modules/*
#nohup
nohup.out

# notebook data
notebooks/helm/scenario_data.jsonl
# tox syft.build.helm generated file
out.txt
9 changes: 8 additions & 1 deletion notebooks/api/0.8/00-load-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,13 @@
"if node.node_type.value == \"python\":\n",
" node.land()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -680,7 +687,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.9.16"
},
"toc": {
"base_numbering": 1,
Expand Down
4 changes: 2 additions & 2 deletions notebooks/api/0.8/01-submit-code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@
},
"outputs": [],
"source": [
"assert isinstance(result, sy.SyftNotReady)"
"assert isinstance(result, sy.SyftError)"
]
},
{
Expand Down Expand Up @@ -554,7 +554,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.9.16"
},
"toc": {
"base_numbering": 1,
Expand Down
12 changes: 10 additions & 2 deletions notebooks/api/0.8/07-domain-register-control-flow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"metadata": {},
"outputs": [],
"source": [
"node = sy.orchestra.launch(name=\"test-domain-1\", port=\"auto\", dev_mode=True)"
"node = sy.orchestra.launch(name=\"test-domain-1\", port=\"auto\", dev_mode=True, reset=True)"
]
},
{
Expand Down Expand Up @@ -284,6 +284,14 @@
"if node.node_type.value == \"python\":\n",
" node.land()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "58f96130",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -302,7 +310,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.9.16"
},
"toc": {
"base_numbering": 1,
Expand Down
30 changes: 27 additions & 3 deletions notebooks/api/0.8/09-blob-storage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@
"def retrieve_file(client, blob_storage_entry_id: sy.UID) -> Path:\n",
" blob_retrieval = client.api.services.blob_storage.read(blob_storage_entry_id)\n",
" file = blob_retrieval.read()\n",
" content = file.read()\n",
" with open(file.file_name, \"wb\") as f:\n",
" f.write(content)\n",
" return Path(file.file_name)"
]
},
Expand Down Expand Up @@ -193,15 +196,17 @@
"metadata": {},
"outputs": [],
"source": [
"retrieved_file = retrieve_file(domain_client, uploaded_file_storage_id)"
"blob_retrieval = domain_client.api.services.blob_storage.read(uploaded_file_storage_id)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"retrieved_file = retrieve_file(domain_client, uploaded_file_storage_id)"
]
},
{
"cell_type": "markdown",
Expand All @@ -226,6 +231,15 @@
"Retrieved file"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"data_file"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -271,6 +285,16 @@
"data_ptr = action_object.send(domain_client)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"with open(action_object.syft_action_data.file_name, \"wb\") as f:\n",
" f.write(action_object.syft_action_data.read())"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -400,7 +424,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.1"
"version": "3.9.16"
},
"toc": {
"base_numbering": 1,
Expand Down
Loading

0 comments on commit 5bb0112

Please sign in to comment.