From 9b5483454cb7c1513ea0d536e4f4be1d50cc4e25 Mon Sep 17 00:00:00 2001 From: Viktor Valadi <42983197+viktorvaladi@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:23:42 +0100 Subject: [PATCH 1/2] Update README.rst --- examples/server-functions/README.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/server-functions/README.rst b/examples/server-functions/README.rst index e34553e09..1661fe980 100644 --- a/examples/server-functions/README.rst +++ b/examples/server-functions/README.rst @@ -16,16 +16,19 @@ Full commands to run through the API client: Get your token from the settings page in your studio project and add it in your system environment. .. code-block:: + export FEDN_AUTH_TOKEN=<access token> Connect through the APIClient from a python instance, you can find your controller host on the studio Dashboard page. .. code-block:: + from fedn import APIClient client = APIClient(host="<controller-host>", secure=True, verify=True) Start a session with your ServerFunctions code (assuming you have uploaded a model seed, compute package and have connected clients). .. code-block:: + from server_functions import ServerFunctions - client.start_session(server_functions=ServerFunctions) \ No newline at end of file + client.start_session(server_functions=ServerFunctions) From 25729d278cf9cb64006ae4248aa95259b0575bad Mon Sep 17 00:00:00 2001 From: Viktor Valadi <42983197+viktorvaladi@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:48:58 +0100 Subject: [PATCH 2/2] Update README.rst --- examples/server-functions/README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/server-functions/README.rst b/examples/server-functions/README.rst index 1661fe980..fc70ffcff 100644 --- a/examples/server-functions/README.rst +++ b/examples/server-functions/README.rst @@ -32,3 +32,5 @@ Start a session with your ServerFunctions code (assuming you have uploaded a mod from server_functions import ServerFunctions client.start_session(server_functions=ServerFunctions) + +Logs from the server functions code are visible from the studio dashboard logs page.