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