Skip to content

Commit

Permalink
Merge pull request #9279 from OpenMined/cleanup-scenario-notebooks
Browse files Browse the repository at this point in the history
refactor scenario L2 notebooks
  • Loading branch information
koenvanderveen authored Sep 10, 2024
2 parents ba7d2b2 + a95adf9 commit dceb057
Show file tree
Hide file tree
Showing 10 changed files with 749 additions and 533 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,21 @@
"# stdlib\n",
"from os import environ as env\n",
"\n",
"# third party\n",
"# run email server\n",
"from helpers import get_email_server\n",
"\n",
"# syft absolute\n",
"import syft as sy"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Launch & login"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -49,23 +60,6 @@
"env[\"DEFAULT_ROOT_PASSWORD\"] = ROOT_PASSWORD"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# third party\n",
"# run email server\n",
"from helpers import EmailServer\n",
"from helpers import SMTPTestServer\n",
"\n",
"email_server = EmailServer()\n",
"email_server.reset_emails()\n",
"smtp_server = SMTPTestServer(email_server)\n",
"smtp_server.start()"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -83,6 +77,15 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"email_server, smtp_server = get_email_server(reset=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -195,6 +198,13 @@
"root_client.users.delete(new_user_id2)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Cleanup"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
Loading

0 comments on commit dceb057

Please sign in to comment.