-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevelop.py
23 lines (15 loc) · 1.37 KB
/
develop.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# https://canvas.instructure.com/doc/api/modules.html#method.context_module_items_api.index
# https://canvasapi.readthedocs.io/en/stable/module-ref.html?highlight=module_item#canvasapi.module.ModuleItem
import sys
import add_to_module
args = []
args += ['-u', 'https://uio.instructure.com/courses/39661']
args += ['-lt', 'UiO website']
args += ['-lu', 'https://www.uio.no']
args += ['-t','Uke 44 - Kapittel 8: Mutations and DNA']
add_to_module.main(args)
sys.exit
#'-u', 'https://uio.instructure.com/courses/39661', '-lt', 'Oppgave notebook (44.oppgaver.ipynb på JupyterHub)', '-lu', 'https://canvas-lti.jupyterhub.uio.no/hub/lti/launch?custom_next=/hub/user-redirect/notebooks/BIOS1100/uke44/44.oppgaver.ipynb', '-ext', '-t', 'Uke 44 - Kapittel 8: Mutations and DNA']
# python add_to_module.py -u https://uio.instructure.com/courses/39661 -lt "Oppgave notebook (44.oppgaver.ipynb på JupyterHub)" -lu https://canvas-lti.jupyterhub.uio.no/hub/lti/launch?custom_next=/hub/user-redirect/notebooks/BIOS1100/uke44/44.oppgaver.ipynb -ext -t "Uke 44 - Kapittel 8: Mutations and DNA"
# python add_to_module.py -u https://uio.instructure.com/courses/39661 -lt "UiO website" -lu https://www.uio.no -t "Uke 44 - Kapittel 8: Mutations and DNA"
# python add_to_module.py -u https://uio.instructure.com/courses/39661 -lt "UiO website" -lu https://www.uio.no -t "Uke 44 - Kapittel 8: Mutations and DNA" --force