Commit 468ce3e0 authored by goekce's avatar goekce
Browse files

corrections, jinja2 workaround

- thanks to Bashar for the corrections
parent 4d3be891
Pipeline #12969 passed with stage
in 10 minutes and 4 seconds
......@@ -21,13 +21,13 @@ build:
- sudo -u build makepkg -fsri --noconfirm
- cd /home/build
- sudo -u build pikaur -S --noconfirm pandoc-bin
- sudo -u build pikaur -S --noconfirm pandoc-plantuml-filter-py-git
- pacman -S --noconfirm plantuml # workaround: dep. missing for pandoc-plantuml-filter-py https://aur.archlinux.org/packages/pandoc-plantuml-filter-py
- cd $CI_PROJECT_DIR
- make
- pacman -S python-pip python-virtualenv --noconfirm
- sudo -u build virtualenv nbgrader
- sudo -u build sh -c '. nbgrader/bin/activate; pip install git+https://github.com/jupyter/nbgrader; for d in $(ls -d exam-practice/*/); do make -f ../nbgrader-source-to-release.mk -C $d; done'
# Note: There a workaround for jinja2 in the following command
# For details: https://github.com/jupyter/nbgrader/issues/1555
- sudo -u build sh -c '. nbgrader/bin/activate; pip install git+https://github.com/jupyter/nbgrader; pip install jinja2==3.0.3; for d in $(ls -d exam-practice/*/); do make -f ../nbgrader-source-to-release.mk -C $d; done'
artifacts:
paths:
- "*.pdf"
......
......@@ -89,16 +89,16 @@ A) I don't know
<!-- list, what does mutable mean? -->
##
which property of lists does the equality of `cheeses` and `favorites` prove?
```py
cheeses = ['gouda']
favorites = cheeses
cheeses.append('paneer')
cheeses # outputs ['gouda', 'paneer']
favorites # outputs ['gouda', 'paneer']
```
Which property of `list`s does the behavior above prove?
A) mutable
A) frozen
A) ordered
......@@ -169,7 +169,7 @@ names # ['Hüseyin', 'Cora', 'Su']
##
<!-- insert() -->
a number is missing in the following list and you want to amend it. Which code does work?
a number is missing in the following list with increasing numbers and you want to amend it. Which code does work?
```py
years=[2019, 2020, 2022]
```
......
......@@ -7,7 +7,6 @@ COMMON_OPTS := \
--pdf-engine=lualatex \
--variable=colorlinks \
--include-in-header common.tex \
--filter pandoc-plantuml \
--request-header User-Agent:"Mozilla/5.0"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment