Skip to content

Remove direct dependencies on numpy/scipy in edx-platform #35962

Open
@ormsbee

Description

@ormsbee

We still use them in openedx-calc (for now) and openedx-chem (for now), but there are places in edx-platform where we can substitute our current usage with Python stdlib calls, such as:

return dict(
min=min(data),
max=max(data),
mean=np.around(np.mean(data)),
median=np.around(np.median(data)),
mode=stats.mode(data, axis=None)[0],
)

The long term goal would be to isolate numpy/scipy to just the parts of the XBlocks that need them (and possibly isolate them to just the codejailed execution environment). This would reduce memory usage and make upgrades less painful.

We have to be really careful if we're touching anything related to grading.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions