Registry / data / recommender-xblock

recommender-xblock

JSON →
library5.0.0pypypiunverified

An Open edX XBlock that provides course content recommendations to learners. Current version 5.0.0, aimed at the edx-platform Lilac release or later.

pip install recommender-xblock
INSTALL
IMPORT
SIG · RECOMMENDER-XBLOCK
R
recommender-xblock
datapythonv5.0.0
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.0.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RecommenderXBlock
from recommender import RecommenderXBlock
from recommender import RecommenderXBlock

Basic import and instantiation of RecommenderXBlock

from recommender import RecommenderXBlock # The XBlock is typically used within edx-platform. For local testing: from xblock.core import XBlock block = RecommenderXBlock() print(block.student_view({}))
Debug
Known issues
breakingIn version 5.0.0, the module name changed from recommender_xblock to recommender. Existing imports must be updated.
fix
Change 'from recommender_xblock import RecommenderXBlock' to 'from recommender import RecommenderXBlock'
affects: <5.0.0
gotchaAlways call super() when subclassing; missing this can cause runtime errors.
fix
In your custom XBlock, ensure __init__ calls super().__init__(**kwargs)
affects: all
Upgrade
Version history
5.0.0latest on PyPI · released Mar 10, 2026
Audit
Dependencies
XBlockrequiredXBlock framework dependency
web-fragmentsrequiredRequired for fragment rendering
Agent activity
15 hits · last 30 days
node
12
OpenAI (training)
1
Resources
recommender-xblock — pip install recommender-xblock · libregistry