diff --git a/tools/interactive/interactivetool_ml_jupyter_notebook.xml b/tools/interactive/interactivetool_ml_jupyter_notebook.xml index 5d19185d4ef6..757a3fbfd9ee 100644 --- a/tools/interactive/interactivetool_ml_jupyter_notebook.xml +++ b/tools/interactive/interactivetool_ml_jupyter_notebook.xml @@ -1,9 +1,9 @@ - + - 0.2 + 0.4 - docker.io/anupkumar/docker-ml-jupyterlab:galaxy-integration-@VERSION@ + quay.io/galaxy/docker-ml-jupyterlab:galaxy-integration-@VERSION@ @@ -80,6 +80,15 @@ except FileNotFoundError: /dev/null; then + echo An NVDIA GPU was detected. ; + ln -s \$PYTHON_LIB_PATH/tensorflow-GPU-cached \$PYTHON_LIB_PATH/tensorflow ; + else + echo No compatible GPU present. ; + ln -s \$PYTHON_LIB_PATH/tensorflow-CPU-cached \$PYTHON_LIB_PATH/tensorflow ; + fi && + python staging_script.py && export GALAXY_WORKING_DIR=`pwd` && mkdir -p ./jupyter/outputs && @@ -88,6 +97,10 @@ except FileNotFoundError: export HOME=/home/\$NB_USER/ && export PATH=/home/\$NB_USER/.local/bin:\$PATH && cp '${galaxy_input_startup_script}' /home/\$NB_USER/.ipython/profile_default/startup/02-load.py && + + ## Disable popups informing that "a new release is available" + jupyter labextension disable "@jupyterlab/apputils-extension:announcements" && + #set $output_notebook_name = 'jupyterlab_notebook.ipynb' #if $mode.mode_select == 'scratch': cp -r /home/\$NB_USER/data ./ && @@ -96,6 +109,10 @@ except FileNotFoundError: cp -r /home/\$NB_USER/usecases ./ && cp -r /home/\$NB_USER/home_page.ipynb ./ && jupyter lab --no-browser --NotebookApp.shutdown_button=True + #elif $mode.mode_select == 'github': + cp /home/\$NB_USER/home_page.ipynb ./ && + git clone $mode.repo_url && + jupyter lab --no-browser --NotebookApp.shutdown_button=True #else: #import re #set $cleaned_name = re.sub('[^\w\-\.]', '_', str($mode.ipynb.element_identifier)) @@ -119,9 +136,13 @@ except FileNotFoundError: + + + +