numbas / numbas/editor

Ability to refer to a variable group as a dictionary or list

Open
#503 0 comments 0 reactions 0 assignees View on GitHub
interface wishlist
Dominant language
JavaScript
Stars
60
Forks
62
PR merge metrics
No merged PRs in 30d

Description

A common pattern in our recent questions is to define several versions of a block of text in separate variables, then put them into a list and select from them. At the moment, the list has to be hard-coded with the names of all the variables.

It would be convenient if there was a special option in the 'data type' drop-down called "Variable group as list/dictionary". You'd select a variable group, and it'd either collect all the variables in that group into a list, or into a dictionary with the variables' names as keys.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the data type drop-down and the existing variable-group handling in the editor. Determine how a selected group could provide either a list of values or a dictionary keyed by variable names; done means both representations can be selected and populated without hard-coding each variable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.