update notebook name

This commit is contained in:
Anup Kumar
2021-02-25 12:58:40 +01:00
parent ee3d09a9bc
commit 5d2bbb720a
@@ -30,21 +30,21 @@
#if $mode.mode_select == 'scratch':
## copy default machine learning notebook
cp '$__tool_directory__/default_notebook_ml.ipynb' ./ipython_galaxy_notebook.ipynb &&
jupyter trust ./ipython_galaxy_notebook.ipynb &&
cp '$__tool_directory__/default_notebook_ml.ipynb' ./tensorflow_notebook.ipynb &&
jupyter trust ./tensorflow_notebook.ipynb &&
jupyter lab --allow-root --no-browser --NotebookApp.shutdown_button=True &&
cp ./ipython_galaxy_notebook.ipynb '$jupyter_notebook'
cp ./tensorflow_notebook.ipynb '$jupyter_notebook'
#else:
#set $cleaned_name = re.sub('[^\w\-\.]', '_', str($input.element_identifier))
cp '$mode.ipynb' ./${cleaned_name}.ipynb &&
jupyter trust ./${cleaned_name}.ipynb &&
#if $mode.run_it:
jupyter nbconvert --to notebook --execute --output ./ipython_galaxy_notebook.ipynb --allow-errors ./*.ipynb &&
jupyter nbconvert --to notebook --execute --output ./tensorflow_notebook.ipynb --allow-errors ./*.ipynb &&
#else:
jupyter lab --allow-root --no-browser --NotebookApp.shutdown_button=True &&
#end if
cp ./ipython_galaxy_notebook.ipynb '$jupyter_notebook'
cp ./tensorflow_notebook.ipynb '$jupyter_notebook'
#end if
]]>
</command>