-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnotebook-test-yaml-markdown.py
More file actions
56 lines (48 loc) · 1.29 KB
/
notebook-test-yaml-markdown.py
File metadata and controls
56 lines (48 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# ---
# jupyter:
# jupytext:
# cell_metadata_filter: all
# cell_metadata_json: true
# formats: py:percent
# notebook_metadata_filter: all,-language_info,-jupytext.text_representation.jupytext_version
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# toc:
# base_numbering: 1
# nav_menu: {}
# number_sections: true
# sideBar: true
# skip_h1_title: false
# title_cell: Table of Contents
# title_sidebar: Contents
# toc_cell: false
# toc_position: {}
# toc_section_display: true
# toc_window_display: false
# ---
# %% [markdown]
# # markdown in quizzes
# %% {"scrolled": true}
# mostly for using under binder or in a devel tree
import sys
sys.path.append('..')
# %% {"scrolled": false}
from nbautoeval import run_yaml_quiz
run_yaml_quiz("test-markdown", "quiz-markdown")
# %%
# this is for testing purposes only, it allows to 'reset' the history
# about this particular exercise
from nbautoeval.storage import storage_clear
storage_clear("quiz-markdown")
# %% [markdown]
# ## under the hood
# %% [markdown]
# Here's the code that defines the above quizz
# %% {"scrolled": false}
# !cat ./test-markdown.yaml