Skip to content

Commit

Permalink
refactor: Disable course list extension for students (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgwerner authored Sep 3, 2021
1 parent 1032a41 commit b9cd47d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
5 changes: 0 additions & 5 deletions umich-grader/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ RUN jupyter nbextension enable --sys-prefix create_assignment/main \
RUN jupyter serverextension disable --sys-prefix nbgrader.server_extensions.assignment_list \
&& jupyter nbextension disable --sys-prefix assignment_list/main --section=tree

# install and activate the async-nbgrader extensions
RUN jupyter nbextension install --sys-prefix --py async_nbgrader --overwrite \
&& jupyter nbextension enable --sys-prefix --py async_nbgrader \
&& jupyter serverextension enable --sys-prefix --py async_nbgrader

# fix permissions as root
USER root
RUN fix-permissions "${JULIA_PKGDIR}" \
Expand Down
4 changes: 1 addition & 3 deletions umich-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ RUN jupyter nbextension install --symlink --sys-prefix --py nbgrader --overwrite
RUN jupyter nbextension enable --sys-prefix validate_assignment/main --section=notebook \
&& jupyter serverextension enable --sys-prefix nbgrader.server_extensions.validate_assignment

# everyone gets the course list and assignment list extensions
# everyone assignment list extension
RUN jupyter serverextension enable --sys-prefix nbgrader.server_extensions.assignment_list \
&& jupyter serverextension enable --sys-prefix nbgrader.server_extensions.course_list \
&& jupyter nbextension enable --sys-prefix course_list/main --section=tree \
&& jupyter nbextension enable --sys-prefix assignment_list/main --section=tree

# update permissions as root
Expand Down
1 change: 0 additions & 1 deletion umich-notebook/async-nbgrader
Submodule async-nbgrader deleted from dc22f1
1 change: 0 additions & 1 deletion umich-notebook/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
git+https://github.com/jupyter/nbgrader.git@2256b7efd094c4e7863f76ef26d2149b893a4462
git+https://github.com/IllumiDesk/async-nbgrader.git@dc22f1cd57154aad9540f051d518bb7119b8648f
jupyter-server-proxy==3.1.0
nbgitpuller==0.10.2
psycopg2-binary==2.9.1
Expand Down

0 comments on commit b9cd47d

Please sign in to comment.