From 582fb25567a684f895642fbe8b1850719e5ff54b Mon Sep 17 00:00:00 2001 From: Anup Kumar Date: Thu, 9 Sep 2021 10:25:08 +0200 Subject: [PATCH] Fix review comments --- .../interactivetool_ml_jupyter_notebook.xml | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/tools/interactive/interactivetool_ml_jupyter_notebook.xml b/tools/interactive/interactivetool_ml_jupyter_notebook.xml index 0dd884b2ad5..0d2c5b825c7 100644 --- a/tools/interactive/interactivetool_ml_jupyter_notebook.xml +++ b/tools/interactive/interactivetool_ml_jupyter_notebook.xml @@ -1,4 +1,4 @@ - + docker.io/anupkumar/docker-ml-jupyterlab:galaxy-integration @@ -48,7 +48,18 @@ jupyter trust ./notebooks/*.ipynb && jupyter trust ./elyra/*.ipynb && jupyter lab --allow-root --no-browser --NotebookApp.shutdown_button=True - #end if + #else: + #set $noteboook_name = re.sub('[^\w\-\.\s]', '_', str($mode.ipynb.element_identifier)) + cp '$mode.ipynb' './${noteboook_name}.ipynb' && + jupyter trust './${noteboook_name}.ipynb' && + #if $mode.run_it: + jupyter nbconvert --to notebook --execute --output ./ipython_galaxy_notebook.ipynb --allow-errors ./*.ipynb && + #set $noteboook_name = 'ipython_galaxy_notebook' + #else: + jupyter lab --allow-root --no-browser --NotebookApp.shutdown_button=True && + #end if + cp './${noteboook_name}.ipynb' '$jupyter_notebook' + #end if ]]> @@ -79,16 +90,14 @@ - - - JupyterLab is a next-generation web-based user interface for Project Jupyter. JupyterLab enables you to work with documents and activities such as Jupyter notebooks, text editors, - terminals, and custom components in a flexible, integrated, and extensible manner. + + You can start with a new Jupyter Lab notebook from scratch and wait until the job starts running. Running job will provide you a link which can be opened in the same or another + browser tab. This link opens Jupyter Lab notebook which can be used to prototype machine learning solutions. + ]]>