mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
update notebook name
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user