Skip to content

Commit

Permalink
Drop e2xgrader is not a lab extension yet, removing it
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Feb 13, 2024
1 parent 605ff3a commit 77a8cd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion roles/ewatercycle/templates/environment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ dependencies:
# TODO Once available uncomment the following line
# - git+https://github.com/eWaterCycle/ewatercycle-sfincs
- era5cli
- e2xgrader
- setuptools
- altair_saver
- altair
Expand Down
12 changes: 1 addition & 11 deletions roles/grader/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,24 @@
dest: /etc/jupyter/nbgrader_config.py
mode: 0644
content: |
from e2xgrader.config import configure_exchange
c = get_config()
c.Exchange.root = '{{ exchange_root }}'
configure_exchange(c)
- name: Grader jupyter dir
file:
path: /home/{{ grader_user }}/.jupyter
state: directory
owner: '{{ grader_user }}'
mode: '0755'
- name: Activate student e2xgrader mode globally
# TODO get conda bin path from somewhere
command: /opt/conda/envs/ewatercycle2/bin/e2xgrader activate student --sys-prefix
- name: Activate teacher e2xgrader mode for grader_user
command: /opt/conda/envs/ewatercycle2/bin/e2xgrader activate teacher --user
become: true
become_user: "{{ grader_user }}"

- name: nbgrader config for grader user
copy:
dest: /home/{{ grader_user }}/.jupyter/nbgrader_config.py
mode: 0644
owner: '{{ grader_user }}'
content: |
from e2xgrader.config import configure_base
c = get_config()
c.CourseDirectory.course_id = '{{ course_id }}'
c.CourseDirectory.root = '/home/{{ grader_user }}/{{ course_id }}'
configure_base(c)
- name: Course directory
file:
path: '/home/{{ grader_user }}/{{ course_id }}'
Expand Down

0 comments on commit 77a8cd2

Please sign in to comment.