Concept map
Concept Map Widget for Marimo
ConceptMapWidget
Bases: BaseWidget
A concept mapping widget where students draw labeled directed edges between concepts.
Students select a relationship term then click two concept nodes to connect them. Concept nodes can be dragged to rearrange the layout.
Attributes:
| Name | Type | Description |
|---|---|---|
question |
str
|
The question or prompt shown above the map |
concepts |
list
|
List of concept names (nodes) |
terms |
list
|
List of relationship terms that can label edges |
correct_edges |
list
|
List of dicts with 'from', 'to', 'label' keys |
value |
dict
|
State with 'edges', 'score', 'total', and 'correct' keys |
Source code in src/marimo_learn/concept_map.py
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 | |
Example
