Skip to content

Commit 36dba34

Browse files
updates
1 parent 3ca1b10 commit 36dba34

File tree

259 files changed

+33246
-347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

259 files changed

+33246
-347
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ web/package-lock.json
99
web/dist/
1010
examples/*.json
1111
examples/*.html
12+
13+
node_modules/
14+

.vscode/launch.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "debugpy",
77
"request": "launch",
88
"program": "sell.py",
9-
"args": ["-J", "examples/ex2.txt"],
9+
"args": ["-J", "examples/game.txt"],
1010
"console": "integratedTerminal",
1111
"env": {
1212
"PYTHONPATH": "${workspaceFolder}"
@@ -36,6 +36,13 @@
3636
"env": {
3737
"PYTHONPATH": "${workspaceFolder}"
3838
}
39+
},
40+
{
41+
"name": "pysell.org website",
42+
"request": "launch",
43+
"type": "chrome",
44+
"url": "http://localhost:5501/platforms/pysell_org/",
45+
"webRoot": "${workspaceFolder}"
3946
}
4047
]
4148
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"matplotlib",
5454
"mauvaise",
5555
"memorizza",
56+
"Mino",
5657
"Moodle",
5758
"navegador",
5859
"navigateur",
@@ -106,6 +107,8 @@
106107
"sympy",
107108
"tâches",
108109
"tareas",
110+
"tetris",
111+
"Tetromino",
109112
"todavía",
110113
"Tribonacci",
111114
"tutto",

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v1.5.0 (!!! TODO: write TETRIS docs in README + website; also make notes about randomized false solutions !!!)
2+
3+
- Fixed a scrolling issue that occurred when the feedback overlay was active.
4+
- Multiline code can now be displayed in questions using triple backticks, similar to Markdown syntax.
5+
- For developers: The web frontend API has been refactored to allow DOM elements to be passed to a Quiz instance at call time. This change enables more flexible embedding of pySELL questions into websites—an approach that is, for example, used on the project website https://pysell.org.
6+
- Questions can now be integrated into a Tetris-like game environment. See the examples provided in the file examples/game.txt for details.
7+
18
# v1.3.5
29

310
- The equation preview in input fields is now consistently visible, even when the evaluate button is not present

build-pysell.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env python3
22

33
"""
4-
pySELL - Python based Simple E-Learning Language for the simple creation of
4+
pySELL - Python based Simple E-Learning Language for the simple creation of
55
interactive courses
66
AUTHOR: Andreas Schwenk <mailto:[email protected]>
77
LICENSE: GPLv3
88
9-
This script is only intended for pySELL development.
9+
This script is only intended for pySELL development.
1010
Users just use file 'sell.py' (python sell.py QUESTION_FILE.txt)
1111
"""
1212

@@ -61,6 +61,12 @@
6161
+ "pysell.init(quizSrc,debug);</script></body>",
6262
)
6363

64+
# output html code as template for the pysell.org
65+
with open(
66+
"platforms/pysell_org/contents/template.html", mode="w", encoding="utf-8"
67+
) as f:
68+
f.write(html)
69+
6470
# update file "sell.py" between "# @begin(html" and "# @end(html)"
6571
py: str = ""
6672
skip: bool = False

dist/pysell-1.3.5-py3-none-any.whl

64.3 KB
Binary file not shown.

dist/pysell-1.3.5.tar.gz

71.9 KB
Binary file not shown.

docs/ex1.html

Lines changed: 3 additions & 2 deletions
Large diffs are not rendered by default.

examples/DE/grundlagen.txt renamed to examples/DE/hm01-Grundlagen.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ LANG de
22
TITLE Grundlagen
33
AUTHOR Andreas Schwenk
44

5+
TOPIC German -- Höhere Mathematik -- 01: Grundlagen
6+
57

68
QUESTION Mengen
79
"""

examples/DE/funktionen-elementar.txt renamed to examples/DE/hm02-Elementare-Funktionen.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ LANG de
22
TITLE Elementare Funktionen
33
AUTHOR Andreas Schwenk
44

5+
TOPIC German -- Höhere Mathematik -- 02: Elementare Funktionen
6+
57

68
QUESTION Polynome
79
"""

0 commit comments

Comments
 (0)