Skip to content

Commit

Permalink
add req name arg to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrede committed Jan 23, 2025
1 parent b2040cf commit b3c0c73
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/apiclient.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ To set the active compute package in the FEDn Studio Project:

.. code:: python
>>> client.set_active_package("package.tgz", helper="numpyhelper")
>>> client.set_active_package("package.tgz", helper="numpyhelper", name="my-package")
>>> client.set_active_model("seed.npz")
**Start a training session**
Expand Down
2 changes: 1 addition & 1 deletion docs/developer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ so we will not require authentication of clients (insecure mode) when using the
from fedn import APIClient
client = APIClient(host="localhost", port=8092)
client.set_active_package("package.tgz", helper="numpyhelper")
client.set_active_package("package.tgz", helper="numpyhelper", name="my-package")
client.set_active_model("seed.npz")
To connect a native FEDn client to the sandbox deployment, you need to make sure that the combiner service can be resolved by the client using the name "combiner".
Expand Down
4 changes: 2 additions & 2 deletions examples/api-tutorials/API_Example.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/api-tutorials/Aggregators.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"metadata": {},
"outputs": [],
"source": [
"client.set_active_package('../mnist-pytorch/package.tgz', 'numpyhelper')\n",
"client.set_active_package('../mnist-pytorch/package.tgz', 'numpyhelper', 'mnist-pytorch')\n",
"client.set_active_model('../mnist-pytorch/seed.npz')\n",
"seed_model = client.get_active_model()\n",
"print(seed_model)"
Expand Down
2 changes: 1 addition & 1 deletion examples/api-tutorials/Hyperparameter_Tuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"metadata": {},
"outputs": [],
"source": [
"client.set_active_package('../mnist-pytorch/package.tgz', 'numpyhelper')\n",
"client.set_active_package('../mnist-pytorch/package.tgz', 'numpyhelper', 'mnist-pytorch')\n",
"client.set_active_model('../mnist-pytorch/seed.npz')\n",
"seed_model = client.get_active_model()"
]
Expand Down

0 comments on commit b3c0c73

Please sign in to comment.