How do you install a third-party XBlock on Open edX with Tutor?
A course team or platform owner who wants a community XBlock in production should know that the block is added to the Tutor-built image, pinned to a PyPI version or Git commit, and then enabled per course in Advanced Settings. The image change is the part that touches your infrastructure, and it is the part that needs review. An XBlock is a Python package that adds a new component type to course content, such as a quiz format, a widget or an interactive exercise, and the learner-facing and authoring code runs inside your LMS and Studio. Tutor is the official Docker-based Open edX distribution, so the block is normally installed through a Tutor plugin or a Tutor configuration that adds the package to the image build, not by editing files inside running containers.
Installing a block means adding third-party code to a platform you operate, so it carries the same trust decisions as any dependency. Before the build, confirm the license is compatible with how you will distribute the image, read the package's source and its dependency tree, and check who maintains it and whether it has a recent release for the Open edX release you run. Decide whether you will pin a released version from PyPI or a specific Git commit, and record the reason. A commit pin gives you exact code but leaves you to review every change yourself. A version pin is easier to audit against a release, provided the publisher is one you trust. Confirm with your platform team which Tutor version and Open edX release your block was tested against, because compatibility is tied to the release you run.
Pinning a PyPI version or a Git commit
This table compares four ways to source a community XBlock for a Tutor image: a PyPI release, a Git tag, a Git commit, and an organization-maintained copy. Read each row against your own review capacity, since the right source depends on who will review upgrades and own patches. The main takeaway is that an exact version or commit is what makes a rebuild reproducible, while floating references change what ships without any change on your side.
| Source | Reproducibility | Upgrade review and patch ownership | When it fits |
|---|---|---|---|
| PyPI release with exact version | High when the version is pinned exactly, such as a fixed release number in the requirements file. Confirm the index serves the same artifact on every rebuild. | Upgrades are a deliberate version change reviewed in a pull request. Patches usually mean waiting for the maintainer or forking, so confirm who answers security issues. | Block is published with a clear release history and the maintainer is active. |
| Git tag | High when the tag is immutable in your repository. Confirm the tag is not moved or deleted upstream before you rely on it. | Upgrades mean comparing the tagged source to the previous tag. Patches can be cherry-picked onto a fork, so you need an owner for that fork. | The project tags releases but does not publish to PyPI, or you need a version not yet released there. |
| Specific Git commit hash | Highest, since a full commit hash identifies one exact tree. Branch names or short hashes are not sufficient. | Every change is a new hash that someone must review line by line. Your team owns the decision to move forward and any patches applied to that commit. | Short-lived needs such as a pilot, or a fix merged upstream but not yet released. |
| Organization-maintained copy | Fully reproducible because your team controls the source, mirror and build inputs. | Your team reviews every upstream change it chooses to take and owns all patches, security fixes and compatibility work with each Open edX release. | The block is essential, the upstream project is inactive, or the license and data rules require internal control. Expect ongoing maintenance cost. |
| Unpinned or floating reference | Low. A latest-version install or a branch reference can change the shipped code on a later rebuild with no code change on your side. | Changes arrive without review. Ownership is unclear, so this option should be avoided in production builds. | Not recommended for production. Use only in throwaway local experiments. |
| License and maintenance check | Not a source type, but required before choosing any row above. Confirm the license in the package metadata and repository. | Check the last release date, open security issues, and whether the block supports your Open edX release. Ask the maintainer about support terms. | Complete this step before any option is selected, and record the result in your change file. |
How the block moves from review to a learner's course
The path starts with source review, the first point where the operator decides what will run. The reviewed code is then locked to a pinned version or commit, which is the second control point, and Tutor rebuilds the image with that pin. The rebuilt image is deployed to the LMS and Studio, and the block stays off until an author enables it in a course's Advanced Settings. Check it in a test course before any production course uses it.
The two control points are the review and the pin, before any course uses the block.
Installing a community XBlock step by step
This sequence takes a community XBlock from a vetted, version-pinned package to a block that authors can add in Studio and learners can view in the LMS, with a check at each stage so problems surface in a non-production environment first.
Confirm release compatibility and vet the code
Before touching configuration, check that the XBlock's documentation, release tags or package metadata name the Open edX release your platform runs. Open edX supports only the latest named release, so a block built for an older release may fail at import or render time. Review the source repository, its maintainer history, its open issues and its dependency list, and confirm the license is acceptable to your legal team. The output is a short written decision record naming the exact package version or commit you will pin. Confirm the supported-release statement against the current Open edX release notes before you proceed.
Pin the package or commit in Tutor configuration
Add the block to your Tutor image build as a pinned dependency, either as a specific PyPI version or a Git commit hash, never as a floating branch reference. Tutor manages image customization through its plugin and configuration mechanisms, so the exact key names and where the package list is declared depend on the Tutor version you run. Consult the Tutor documentation for the current configuration keys and build commands, and confirm them against your installed Tutor version before editing anything. The check at this step is a diff in version control that shows the package name, the pinned version or commit, and nothing else changed.
Rebuild the platform image
Rebuild the Open edX image with Tutor so the pinned block is installed into the LMS and Studio containers. Run the build in your staging or development environment first. Watch the build output for dependency resolution errors, failed installs and any warnings about conflicting packages. The check is a completed build with the new image tag recorded, plus confirmation that the block package appears in the installed package list inside the built image. Record the image tag so you can roll back to the previous image if needed.
Deploy to a non-production environment
Deploy the rebuilt image to a non-production Open edX environment that mirrors your production configuration as closely as possible, including the same Open edX release, database engine versions and shared cache setup. Run any database migrations the block requires and confirm they complete. The check is that the LMS and Studio start, their health pages respond, and the logs show no import errors referencing the new block. Do not proceed to production while these checks fail.
Allow the block in course Advanced Settings
In Studio, open the target course, go to Advanced Settings and add the block's entry point name to the advanced component list, which controls which component types authors can create in that course. Apply the change only to the courses that need the block, since each course opts in separately. The check is that the setting saves without a validation error and the course reloads with the new value present. Confirm the exact setting name against the XBlock's own documentation, because each block declares its own entry point.
Verify authoring in Studio
As a course author, open a unit in Studio and open the component menu. The block should appear under the advanced components group. Add an instance, configure its fields, save, and preview the unit. The check is that the authoring view loads, saved field values persist after a page reload, and the Studio console shows no JavaScript errors tied to the block. Test with a staff account that has the course team role, since permission differences can hide components from other roles.
Verify learner rendering in the LMS
Publish the unit and open it in the LMS as a learner enrolled in the course, and as a staff preview. Test the block with the features your course depends on, such as grading, progress tracking or completion, if the block supports them. The check is that the learner view renders without server errors, the browser console is free of errors from the block, and any grade or completion data appears in the gradebook as the block documentation describes. Record the results, the image tag and the pinned version in your change record before scheduling the production rollout.
Vetting XBlock code before it runs in your LMS
An XBlock runs inside the Open edX platform process, so it has the same access as the LMS or Studio code around it. A weak block can expose learner data, leak secrets or break pages for every course on the deployment. The review areas below connect what the code can reach with what it sends out, stores, depends on and how fixes will reach you after go-live.
Request and template context access
Read the block's Python handlers and its templates to see which request objects, user attributes, course data and Django settings it touches. Look for direct use of the request user, session, settings module or database models outside the XBlock's own scope. Confirm which rendering paths use unescaped output or raw HTML, because a block that injects markup into a learner page runs in the same browser context as the platform.
Outbound calls and third-party scripts
Search the block for HTTP clients, websocket connections, iframes and script tags that load code from external hosts. Each external endpoint is a data flow to document: what leaves the LMS, which identifiers are sent, and whether the request can be made from a learner's browser or only from the server. A block that loads a script from a vendor CDN inherits that vendor's changes without any review on your side.
Data storage location and retention
Identify every place the block writes data: its own tables through Django migrations, the platform's key-value or cache stores, or an external service. Confirm the data's owner, the fields it holds and how long it stays. Ask the author whether the block removes its records when a learner unenrolls or a course is deleted, since those removals are the events that drive most data-subject requests.
Dependency and license review
List the block's direct and transitive Python and JavaScript dependencies and check each package's license against your organization's policy. Open edX itself is licensed under the GNU Affero General Public License version 3, and your legal team should confirm how the block's license interacts with that before you distribute or host modified code. Pin every dependency so that a rebuilt image does not pull a different version without a decision.
edx-platform licenseLearner data and grade handling
Check whether the block reads or writes grades, scores, completion state or personal fields, and whether it does so through the platform's supported grading interfaces or by writing directly to shared tables. A block that changes a learner's score outside the grading pipeline can produce grades that no report or certificate can explain. Test the block with a learner account and a staff account to confirm that each one sees only what its role allows.
Security update intake
Decide before installation who will watch for security advisories, how you will learn about a fix and who approves a rebuild. Block authors may be a single maintainer with no release schedule, so plan to maintain the block yourself, to pay a partner to do it or to remove the block if it stops receiving fixes. Record the pinned version or commit, the review date and the owner in your change log so that every upgrade starts from a known state.
Who does each part of the install
The course author works inside Studio and is the person who turns an installed block into course content. They do not touch the server. Their job is to confirm that the block is available in their course, add it to units, and check that it renders and grades the way the course design expects. Enabling the block is a per-course setting in Advanced Settings, so the author's change affects only the course they are editing.
- Access needed: a Studio course staff or instructor role on the specific course, and no access to the Tutor project, the server or the image registry.
- Tasks: add the block to Advanced Settings under the course's advanced modules list, then add it to units in Studio and preview it.
- Testing: check the block in preview and in a test enrollment before learners see it, including how it reports grades if it is graded.
- Hand off: send the platform operator the block name, the version the course needs, and any error they saw, rather than editing platform files themselves.
- Limits: a block that is installed on the platform but not enabled in the course will not appear, so the author should confirm with the operator which blocks are approved.
Before relying on a block for graded content, the author should confirm with the operator which version is deployed.
The platform operator owns the Tutor project and the image that runs the platform. They pin the block to a known source, add it to the image build, rebuild, and roll the new image out to the environments they run. This is the change that affects every course on the platform, so it should go through the same review and staging path as other platform changes.
- Access needed: the Tutor project directory, the build and deployment pipeline, the container registry, and staging and production clusters or hosts.
- Tasks: pin the block to a PyPI version or a Git commit in the plugin or requirements, rebuild the image, deploy to staging, then promote to production.
- Verification: confirm the block is importable in the running containers and that existing courses still load after the rollout.
- Hand off: keep a record of the pinned source, the image tag and the rollback image for each release, and share it with the course authors.
- Limits: the operator should confirm the exact deployment steps for their Tutor version in the Tutor documentation rather than relying on memory.
The operator's change is reversible only if the previous image is still available, so confirm that before each rollout.
The developer or vendor writes and maintains the XBlock. Their responsibility ends at a clear release: a versioned package or tagged commit, documentation of the settings the block needs, and a statement of which Open edX releases it supports. They do not deploy to the client's platform, and they should not be given production access to do so.
- Access needed: the block's own repository and release process. Platform access is not required.
- Tasks: publish tagged releases, document installation and the supported platform release, and list the course-level settings the block exposes.
- Compatibility: state which Open edX releases each version was tested against, and tell the operator when a platform upgrade may break the block.
- Security: disclose dependencies, network calls and any data the block stores, so the operator can review them before pinning.
- Hand off: provide a changelog, a known issues list and a support contact, so the operator knows whom to ask after an upgrade.
Before adopting a block, the operator should confirm the vendor's release cadence and how long older versions are maintained.
Why version pinning matters across Open edX releases
Open edX supports only the latest named release, and it cannot support more than one release at a time. A third-party XBlock has to match the release your platform runs, so a block that works on today's image may fail after an upgrade. Verawood is the current named release, and the next releases, Willow and Xylon, are listed for December 2026 and June 2027 in the Open edX release notes. Before you plan any upgrade, confirm the release dates with the release notes, then schedule a compatibility check of every installed block at each upgrade window.
A pin is what keeps your image reproducible between those windows. In Tutor, a block is declared in the image build with a fixed PyPI version or Git commit, so rebuilding the image produces the same code every time. Without a pin, a rebuild can pull a newer release of the block, which may depend on a newer edx-platform API than the one you run. Record each pin alongside the Open edX release it was tested against, and keep that record in the same repository as your Tutor configuration so the two change together.
An upgrade may require a new block version, a patched fork, or a replacement block with similar behavior. Some blocks are maintained for one release line only, and a block that no longer receives updates can become a dependency you have to own. Ask the block maintainer which releases each version supports before you commit to it, and treat an unmaintained block as a retirement decision rather than a routine upgrade item.
Limits to confirm for each block
A third-party XBlock is code your platform will run for learners and course teams, so approval should rest on evidence from your own environment. The six checks below cover release fit, course portability, deployment dependencies, build needs, maintenance health and licensing.
Compatibility with your release
Confirm that the block states support for the named Open edX release you run. Open edX supports only the latest named release at a time, so a block written for an older release may need code changes before it loads. Check the block's documentation, its tested versions and its issue tracker for open reports against your release, then confirm everything in a test course on a staging build.
Open edX release notesCourse export and import
Confirm that course content using the block survives an export and re-import between environments. Some blocks store state outside the course structure, or reference assets that do not travel with the export, so a course may import with the block present but empty or broken. Export a test course with real block content, import it into a clean staging instance, and compare the learner view.
Dependencies on disabled features
Confirm which platform features, settings or feature flags the block needs. A block may depend on a feature, a settings key or an external service that your deployment has turned off or never configured. Compare the block's requirements with your settings and feature toggles, and test with the same toggles your production platform uses, not the defaults in a development build.
Frontend builds and separate services
Confirm whether the block needs a frontend build step, static assets compiled into the image, or a separate service with its own hosting, database or credentials. Each of these adds parts to your image build, your deployment and your operations runbook. Ask the maintainers for the exact build steps, then check that your image pipeline can reproduce them.
Maintainer responsiveness
Check whether the maintainers still respond to issues, merge fixes and publish releases. Look at the dates of recent commits, the response times on open issues and whether a named owner exists. A block without recent activity may still work today, but you would carry any security or compatibility fix yourself, so record that ownership in the approval.
License fit
Confirm that the block's license allows your intended use, distribution and modification. Open edX itself is licensed under the GNU Affero General Public License version 3, but a block may carry a different license, and a license that is missing or unclear may still restrict you. Have your legal or compliance team read the license file in the exact version you will pin before any code is installed.
edx-platform licenseWhat does it cost and take to install an XBlock safely?
What drives the effort of installing a third-party XBlock?
The effort is driven by how many blocks you add, how deeply each one is reviewed, which Open edX release you run, how your Tutor image is built, and how much test coverage exists. A single block from a well-maintained package with a clear license and no server-side dependencies is a small job. A block that needs new Python packages, JavaScript bundles, database changes or access to learner data takes longer to review and test. Each extra block adds its own rebuild, staging run and course-level check. Ask the provider to state which of these factors their quote assumes.
Can our own operator install an XBlock without outside help?
Yes, if your team already runs Tutor, can rebuild the image, and has someone who can read the block's code. The steps are mechanical: pin a PyPI version or Git commit, rebuild the image, deploy to staging, then enable the block per course in Advanced Settings. The harder part is the review. Someone has to judge whether the code is safe to run on your learner data and whether it will survive the next release. If that skill is not in-house, an outside review is the usual gap to fill.
What does the organization need to provide for the install?
You need access to the Tutor project and environment that builds your images, a staging Open edX platform that matches production as closely as practical, and a named owner for each block who can approve it and answer for it after go-live. Without a staging platform, the first real test happens with learners. Without a named owner, nobody decides when a block is removed or updated. Confirm these three items before work starts, since missing access is a common cause of delay.
How long does a single XBlock install take?
No duration is fixed here, because it depends on the review scope. A light review of a small, actively maintained block with no new dependencies is quick. A full code review, dependency audit, staging test and course-level verification takes longer, and more so when the block touches grades, enrollment or personal data. Ask for the review scope to be written as a list of checks, then ask for the effort estimate against that list rather than against a generic install.
Does an XBlock need rework at each Open edX upgrade?
It can. Blocks depend on platform APIs, Python packages and frontend code, and those change across named releases. Open edX supports only the latest named release, so a block that works today may need a new version or a patch when you move to the next release. Check the block's compatibility with each target release before you upgrade, and budget for a retest in staging. Blocks that are unmaintained are the most likely to need replacement.
What should a fixed-scope quote for an XBlock install list?
A fixed-scope quote should name the blocks, the exact version or commit for each, the Open edX release and Tutor setup it targets, and the review checks performed, such as license terms, dependency and security review, and data access. It should also list the staging test, the course-level verification, the handover of the Tutor image changes, and what happens at upgrade time. Ask for the deliverables in writing, including what is excluded, such as later maintenance or new blocks added after sign-off.
What are the security risks of running an unreviewed XBlock?
A block runs inside the LMS or Studio with access to the platform's code paths and, depending on its design, to learner records and grades. Risks include unsafe handling of user input, hidden network calls, unpinned dependencies that change silently, and licenses that conflict with your use. Review the source of the pinned version, not the latest release, and confirm that the block does not send data to third parties. Treat this review as part of the security baseline for your platform.
How DeployOpen scopes and delivers XBlock installs
DeployOpen treats each third-party XBlock as a small change to a self-hosted Open edX platform that runs in infrastructure you control. We agree the scope in writing first, then vet, pin, build, test and document the block so your course teams and operators can run it after handover.
How we scope
- Engagements are fixed-scope, so the list of XBlocks, target courses and environments is agreed in writing before work starts.
- We record each block's source, license, maintainer and whether it installs from PyPI or a Git commit.
- The written scope states which courses will enable each block in Advanced Settings and who approves that change.
How we build
- We vet each block's code, dependencies and permissions before adding it to the Tutor image build.
- We pin the exact PyPI version or Git commit so every image rebuild produces the same block.
- We rebuild the image in a non-production environment, then test the block in a sample course before any rollout.
How we hand over
- You receive the pinned versions, build configuration, and the vetting notes for each block as written documentation.
- We document the per-course enablement steps in Advanced Settings so course teams can repeat them without us.
- The handover includes the rebuild and rollback steps your operators need for future image updates.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, covering re-vetting when a block or Open edX release changes.
- Retainer scope, response expectations and renewal terms are set in writing, so you know what recurs before you commit.
- Ask for the retainer scope to name which blocks are covered after each named Open edX release.

