Skip to content

Commit 7b07a8b

Browse files
authored
no install if exists (#781)
Signed-off-by: Wenqi Li <[email protected]>
1 parent 55d4639 commit 7b07a8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/resample_benchmark.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"outputs": [],
3232
"source": [
3333
"!pip install -q ipywidgets==7.6\n",
34-
"!pip install -q \"monai-weekly[nibabel]\"\n",
34+
"!python -c \"import monai\" || pip install -q \"monai-weekly[nibabel]\"\n",
3535
"import monai\n",
3636
"from monai.apps.utils import download_url\n",
3737
"\n",

runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ for file in "${files[@]}"; do
312312
replace_text
313313
done
314314

315-
# echo "$notebook" > "${base_path}/debug_notebook.ipynb"
315+
python -c 'import monai; monai.config.print_config()'
316316
time out=$(echo "$notebook" | papermill --progress-bar -k "$kernelspec")
317317
success=$?
318318
if [[ ${success} -ne 0 || "$out" =~ "\"status\": \"failed\"" ]]; then

0 commit comments

Comments
 (0)