An interactive Jupyter widget for generating and validating EDSL questions with real-time feedback.
Install with uv:
uv add edsl-question-widget
Or with pip:
pip install edsl-question-widget
For EDSL integration, also install:
uv add edsl-question-widget[edsl]
# or
pip install edsl-question-widget[edsl]
from edsl_question_widget import EDSLQuestionWidget
# Create and display the widget
widget = EDSLQuestionWidget()
widget
The widget provides:
- Interactive form for creating EDSL questions
- Real-time validation with feedback
- Support for multiple question types (free_text, multiple_choice, etc.)
- Code generation for created questions
Build the JavaScript assets:
npm run build
Install in development mode:
uv pip install -e .
- Python ≥3.8
- anywidget ≥0.9.0
- traitlets ≥5.0.0
- Optional: edsl (for validation)