Update ml interactive tools

This commit is contained in:
Anup Kumar
2021-06-24 15:36:49 +02:00
parent f384154e20
commit 3a28a7d613
2 changed files with 12 additions and 445 deletions
File diff suppressed because one or more lines are too long
@@ -22,23 +22,30 @@
mkdir -p ./jupyter/outputs/ &&
mkdir -p ./jupyter/data &&
mkdir -p ./jupyter/notebooks &&
mkdir -p ./jupyter/elyra &&
#set $cleaned_name = re.sub('[^\w\-\.]', '_', str($input.element_identifier))
ln -sf '$input' './jupyter/data/${cleaned_name}' &&
## change into the directory where the notebooks are located
cp /home/\$NB_USER/notebooks/*.ipynb ./jupyter/notebooks/ &&
cd ./jupyter/ &&
export HOME=/home/\$NB_USER/ &&
export PATH=/home/\$NB_USER/.local/bin:\$PATH &&
chown -R \$NB_USER:users `pwd` &&
#if $mode.mode_select == 'scratch':
cp '$__tool_directory__/home_page.ipynb' ./home_page.ipynb &&
## copy all notebooks, workflows and data
cp /home/\$NB_USER/home_page.ipynb ./ &&
cp /home/\$NB_USER/notebooks/*.ipynb ./notebooks/ &&
cp /home/\$NB_USER/elyra/*.* ./elyra/ &&
cp /home/\$NB_USER/data/*.tsv ./data/ &&
## provide all rights to copied files
chown -R \$NB_USER:users `pwd` &&
chown \$NB_USER ./home_page.ipynb &&
chown \$NB_USER ./notebooks/*.ipynb &&
chown \$NB_USER ./elyra/*.* &&
jupyter trust ./home_page.ipynb &&
jupyter trust ./notebooks/*.ipynb &&
jupyter trust ./elyra/*.ipynb &&
jupyter lab --allow-root --no-browser --NotebookApp.shutdown_button=True
##/usr/local/bin/start-notebook.sh
#end if
]]>
</command>