Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 14, 2024
1 parent 461cc32 commit cb5b3e9
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions control.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@
"outputs": [],
"source": [
"import ipywidgets as ipw\n",
"from IPython.display import clear_output, display\n",
"from aiida import load_profile\n",
"load_profile();\n",
"from home.control import DaemonControlWidget, ProcessControlWidget, GroupControlWidget, ProfileControlWidget"
"from IPython.display import clear_output, display\n",
"\n",
"load_profile()\n",
"from home.control import (\n",
" DaemonControlWidget,\n",
" GroupControlWidget,\n",
" ProcessControlWidget,\n",
" ProfileControlWidget,\n",
")"
]
},
{
Expand All @@ -40,18 +46,18 @@
" options=correspondance.keys(),\n",
" value=None,\n",
" orientation=\"vertical\",\n",
" layout=ipw.Layout(width='200px')\n",
" layout=ipw.Layout(width=\"200px\"),\n",
")\n",
"\n",
"\n",
"\n",
"output = ipw.Output()\n",
"\n",
"\n",
"def update_output(value={\"new\": \"Group\"}):\n",
" if value['new'] in correspondance:\n",
" if value[\"new\"] in correspondance:\n",
" with output:\n",
" clear_output()\n",
" display(correspondance[value['new']]())\n",
" display(correspondance[value[\"new\"]]())\n",
"\n",
"\n",
"toc.observe(update_output, names=\"value\")\n",
Expand Down

0 comments on commit cb5b3e9

Please sign in to comment.