Skip to content

Commit

Permalink
Fix lints in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Oct 9, 2024
1 parent a5aad2f commit 6f1b458
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion notebooks/eln_import.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"metadata": {},
"outputs": [],
"source": [
"url = urlparse.urlsplit(jupyter_notebook_url)\n",
"url = urlparse.urlsplit(jupyter_notebook_url) # noqa: F821\n",
"parsed_url = urlparse.parse_qs(url.query)\n",
"params = {key: value[0] for key, value in parsed_url.items()}\n",
"eln_widget = ElnImportWidget(**params)"
Expand Down
2 changes: 1 addition & 1 deletion notebooks/process.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"metadata": {},
"outputs": [],
"source": [
"url = urlparse.urlsplit(jupyter_notebook_url)\n",
"url = urlparse.urlsplit(jupyter_notebook_url) # noqa: F821\n",
"url_dict = urlparse.parse_qs(url.query)\n",
"if \"id\" in url_dict:\n",
" pk = int(url_dict[\"id\"][0])\n",
Expand Down
5 changes: 4 additions & 1 deletion notebooks/wizard_apps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@
"\n",
" def _confirm_configuration(self, button):\n",
" \"Confirm the pizza configuration and expose as trait.\"\n",
" self.configuration = dict(style=self.style.value, toppings=self.toppings.value)\n",
" self.configuration = {\n",
" \"style\": self.style.value,\n",
" \"toppings\": self.toppings.value,\n",
" }\n",
"\n",
" def reset(self):\n",
" with self.hold_trait_notifications():\n",
Expand Down

0 comments on commit 6f1b458

Please sign in to comment.