Skip to content

Commit

Permalink
Simplify new code setup observation
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Dec 18, 2024
1 parent b6e4c5c commit 8fd2256
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions code_setup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
"source": [
"# AiiDAlab Code Setup\n",
"\n",
"This page provides an interface for creating AiiDA `Code` references to executable on \n",
"an AiiDA `Computer` node."
"This page provides an interface for creating AiiDA codes on local or remote machines."
]
},
{
Expand Down Expand Up @@ -122,7 +121,15 @@
"metadata": {},
"outputs": [],
"source": [
"widget.quick_setup_button.on_click(lambda _: render())"
"def on_code_setup_message_change(change):\n",
" if \"created\" in change[\"new\"]:\n",
" render()\n",
"\n",
"\n",
"widget.aiida_code_setup.observe(\n",
" on_code_setup_message_change,\n",
" \"message\",\n",
")"
]
}
],
Expand Down

0 comments on commit 8fd2256

Please sign in to comment.