Skip to content

Commit

Permalink
Update flwr install path in examples (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq authored Sep 1, 2023
1 parent ab356b4 commit 818d9ce
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 16 deletions.
5 changes: 1 addition & 4 deletions examples/flower-in-30-minutes/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@
],
"source": [
"# depending on your shell, you might need to add `\\` before `[` and `]`.\n",
"!pip install -q flwr[simulation]\n",
"\n",
"# Let's install the latest version of flower as in the `main` branch of the repository\n",
"!pip install git+https:/adap/flower.git@main"
"!pip install -q flwr[simulation]"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/simulation-pytorch/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ authors = ["The Flower Authors <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
flwr = {git = "https:/adap/flower.git", branch = "main", extras = ["simulation"]}
flwr = { extras = ["simulation"], version = ">=1.0,<2.0" }
torch = "1.13.1"
torchvision = "0.14.1"
2 changes: 1 addition & 1 deletion examples/simulation-pytorch/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flwr[simulation] @ git+https:/adap/flower.git@main
flwr[simulation]>=1.0, <2.0
torch==1.13.1
torchvision==0.14.1
5 changes: 1 addition & 4 deletions examples/simulation-pytorch/sim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
"outputs": [],
"source": [
"# depending on your shell, you might need to add `\\` before `[` and `]`.\n",
"!pip install -q flwr[simulation]\n",
"\n",
"# Let's install the latest version of flower as in the `main` branch of the respository\n",
"!pip install git+https:/adap/flower.git@main"
"!pip install -q flwr[simulation]"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/simulation-tensorflow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ authors = ["The Flower Authors <[email protected]>"]

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
flwr = {git = "https:/adap/flower.git", branch = "main", extras = ["simulation"]}
flwr = { extras = ["simulation"], version = ">=1.0,<2.0" }
tensorflow = {version = "^2.9.1, !=2.11.1", markers="platform_machine == 'x86_64'"}
tensorflow-macos = {version = "^2.9.1, !=2.11.1", markers="sys_platform == 'darwin' and platform_machine == 'arm64'"}
2 changes: 1 addition & 1 deletion examples/simulation-tensorflow/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flwr[simulation] @ git+https:/adap/flower.git@main
flwr[simulation]>=1.0, <2.0
tensorflow-macos>=2.9.1, != 2.11.1 ; sys_platform == "darwin" and platform_machine == "arm64"
tensorflow-cpu>=2.9.1, != 2.11.1 ; platform_machine == "x86_64"
5 changes: 1 addition & 4 deletions examples/simulation-tensorflow/sim.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
"metadata": {},
"outputs": [],
"source": [
"!pip install -q flwr[\"simulation\"] tensorflow\n",
"\n",
"# Let's install the latest version of Flower as in the `main` branch of the respository\n",
"!pip install git+https:/adap/flower.git@main"
"!pip install -q flwr[\"simulation\"] tensorflow"
]
},
{
Expand Down

0 comments on commit 818d9ce

Please sign in to comment.