Skip to content

Commit

Permalink
automatic reentry scan after setting up codes
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Nov 9, 2020
1 parent 9272387 commit d0d22de
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions setup_codes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Install and/or update plugins & workchains\n",
"\n",
"Note: to make everything work right away after installing, you might need to run \n",
"`> reentry scan` \n",
"`> verdi daemon restart`"
"# Install and/or update plugins & workchains"
]
},
{
Expand All @@ -37,7 +33,7 @@
" with setup_plugin_output:\n",
" clear_output()\n",
" ! pip install --user -e ./plugins/\n",
" ! reentry scan -r aiida\n",
" ! reentry scan\n",
"\n",
"setup_plugin_output = ipw.Output()\n",
"btn_setup_plugins = ipw.Button(description=\"Install spm plugins\")\n",
Expand Down Expand Up @@ -258,6 +254,10 @@
" code.set_append_text(\"\")\n",
" code.store()\n",
" ! verdi code show \"{code_full_name}\"\n",
" \n",
" ! reentry scan\n",
" ! verdi daemon restart > /dev/null\n",
" \n",
" else:\n",
" print(\"Code '{}' already existent\".format(code_full_name))\n",
" \n",
Expand Down Expand Up @@ -308,6 +308,9 @@
" code.set_append_text(\"\")\n",
" code.store()\n",
" ! verdi code show \"{code_full_name}\"\n",
" \n",
" ! reentry scan\n",
" ! verdi daemon restart > /dev/null\n",
" else:\n",
" print(\"Code '{}' already existent\".format(code_full_name))\n",
" \n",
Expand Down Expand Up @@ -359,6 +362,9 @@
" code.set_append_text(\"\")\n",
" code.store()\n",
" ! verdi code show \"{code_full_name}\"\n",
" \n",
" ! reentry scan\n",
" ! verdi daemon restart > /dev/null\n",
" else:\n",
" print(\"Code '{}' already existent\".format(code_full_name))\n",
" \n",
Expand Down Expand Up @@ -493,6 +499,9 @@
" code.set_append_text(\"\")\n",
" code.store()\n",
" ! verdi code show \"{code_full_name}\"\n",
" \n",
" ! reentry scan\n",
" ! verdi daemon restart > /dev/null\n",
" else:\n",
" print(\"Code '{}' already existent\".format(code_full_name))\n",
" \n",
Expand Down

0 comments on commit d0d22de

Please sign in to comment.