Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
machinelearning-introduction-workshop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
courses
machinelearning-introduction-workshop
Commits
a1139140
Commit
a1139140
authored
3 years ago
by
schmittu
Browse files
Options
Downloads
Patches
Plain Diff
added update_course_repo.sh script
parent
bdd21a81
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
intro_presentation/open_this_file_to_see_the_presentation.html
+0
-0
0 additions, 0 deletions
..._presentation/open_this_file_to_see_the_presentation.html
update_course_repo.sh
+62
-0
62 additions, 0 deletions
update_course_repo.sh
with
62 additions
and
0 deletions
intro_presentation/
index
.html
→
intro_presentation/
open_this_file_to_see_the_presentation
.html
+
0
−
0
View file @
a1139140
File moved
This diff is collapsed.
Click to expand it.
update_course_repo.sh
0 → 100755
+
62
−
0
View file @
a1139140
#!/bin/bash
#
# update_course_repo.sh
# Copyright (C) 2021 Uwe Schmitt <uwe.schmitt@id.ethz.ch>
#
# Distributed under terms of the MIT license.
#
set
-e
NOTEBOOKS
=
??_
*
.ipynb
NEEDED
=
"images data"
EXTRA
=
"Install.md LICENSE intro_presentation environment.yml"
REPOURL
=
https://gitlab.ethz.ch/sis/machine-learning-workshop
echo
echo
This script will upload the following files and folders to
${
REPOURL
}
:
echo
for
P
in
${
NEEDED
}
${
EXTRA
}
${
NOTEBOOKS
}
;
do
echo
" "
${
P
}
done
echo
echo
you might be prompted to enter your NETHZ account name and password
echo
while
true
;
do
read
-p
"Do you wish to continue?"
yn
case
$yn
in
[
Yy]
*
)
break
;;
[
Nn]
*
)
exit
;;
*
)
echo
"Please answer yes or no."
;;
esac
done
FLDR
=
$(
mktemp
-d
)
git
-C
${
FLDR
}
clone
${
REPOURL
}
.git
ROOT
=
${
FLDR
}
/machine-learning-workshop
test
-d
${
ROOT
}
/solutions
||
mkdir
-p
${
ROOT
}
/solutions
NOTEBOOKS
=
??_
*
.ipynb
NEEDED
=
"images data"
EXTRA
=
"Install.md LICENSE intro_presentation environment.yml"
cp
-R
${
NEEDED
}
${
NOTEBOOKS
}
${
ROOT
}
/solutions
cp
-R
${
NEEDED
}
${
EXTRA
}
${
ROOT
}
for
N
in
${
NOTEBOOKS
}
;
do
jupyter nbconvert
${
N
}
\
--TagRemovePreprocessor
.enabled
=
True
\
--TagRemovePreprocessor
.remove_cell_tags
=
'{"solution"}'
\
--to
notebook
\
--output
${
ROOT
}
/
${
N
}
done
git
-C
${
ROOT
}
add
${
ROOT
}
git
-C
${
ROOT
}
commit
-m
"update"
git
-C
${
ROOT
}
push
This diff is collapsed.
Click to expand it.
schmittu
@schmittu
mentioned in issue
#49 (closed)
·
3 years ago
mentioned in issue
#49 (closed)
mentioned in issue #49
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment