Skip to content

Commit ac57069

Browse files
committed
FEAT: Use ipynb from vcs, rather than s3
1 parent fdca2a2 commit ac57069

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cloud/aws-emr/bootstrap/install-jupyter.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ while [ $# -gt 0 ]; do
2929
shift
3030
NotebookPath=$1
3131
;;
32+
--path-prefix)
33+
shift
34+
PATH_PREFIX=$1
35+
;;
3236
-*)
3337
error_msg "unrecognized option: $1"
3438
;;
@@ -42,7 +46,7 @@ done
4246
BUCKET=$(awk -v XX="$NotebookPath" 'BEGIN{x=substr(XX,6); split(x,a,"/"); print(a[1])}')
4347
PREFIX=$(awk -v XX="$NotebookPath" -v YY="$BUCKET" 'BEGIN{y=length(YY); print(substr(XX,7+y));}')
4448

45-
aws s3 cp s3://variant-spark/HailJupyter/VariantSpark_example_with_Hail_library.ipynb VariantSpark_example_with_Hail_library.ipynb
49+
wget "${PATH_PREFIX}/cloud/aws-emr/cf-templates/VariantSpark_example_with_Hail_library.ipynb"
4650
aws s3 cp VariantSpark_example_with_Hail_library.ipynb $NotebookPath/
4751

4852
upstart_jupyter() {

0 commit comments

Comments
 (0)