How to enable Flower federated learning in Workspaces (BETA)
What is Flower?
Flower is a framework for running federated learning tasks across a network. It has three main components:
- A CLI tool for managing the network
- SuperLink the network aggregator which manages federated tasks across multiple nodes
- SuperNode the deployed node software that runs the FL task on the remote data
Users of the Aridhia DRE can now provision a Flower network inside their hub. The Flower CLI is already integrated with Worksapces, this article explains how a workspace user can create SuperLinks and SuperNodes inside workspaces and then connect these to form a federated network.
Creating a SuperLink app in a workspace:
-
Login to workspace and create a new R Web App. Give the app a clear name e.g. SuperLink App. Leave default selected fields and click Create R Web App.

- Retrieve the setup script from GitHub. You can find this here.
- Run the script using this command in the workspace terminal app
./flower-dre superlink setup.
- This script will return the domains that the users will need to whitelist to enable the Flower network.
Creating a SuperNode app in workspace:
To create a SuperNode in a workspace the user follows the same steps as the SuperLink creation above. The only difference is when running the setup script they should use the command ./flower-dre supernode setup.
Starting SuperLink and SuperNode apps
In each workspace go to R web apps, start your SuperLink and SuperNode app. This starts the network.
Using Flower in the Workspace
In the terminal app of the SuperLink workspacw run the following command:
export PATH="/home/workspace/files/.flwr/bin:$PATH"
You should be able to run flwr command in the app:

Some flwr commands to verify:
You can run the following tasks from the SuperLink workspace:
flwr config list- Show SuperLinksflwr supernode list <superlink name>- Show SuperNodes in Superlinkflwr run <app path to pyproject.toml>- run a taksflwr list <superlink name>- checking running tasks