How Open edX and Jupyter notebooks connect for learners
A course team that wants hands-on notebook exercises inside Open edX needs to know one thing first: the supported path is the Tutor Jupyter plugin. The plugin installs the official jupyter-xblock in both the LMS and Studio, so authors can place a notebook component in a unit and learners can open it from the course page. Behind that component, the plugin runs a Docker-based JupyterHub with a Docker spawner. Each learner gets a separate container with limited CPU and memory, which keeps one learner's code from taking resources from everyone else, but it also means the hub is a stateful service that sits alongside the LMS and needs its own capacity planning.
The plugin's own README is explicit about the boundary. It states that Kubernetes compatibility was not battle-tested, and it points production users to Zero to JupyterHub with Kubernetes instead. If your Open edX deployment runs on Kubernetes, which many operators choose for scaling, do not assume the Tutor Jupyter plugin is a production-ready route there. Decide early whether notebooks will run on a single Docker host alongside Tutor, or whether the hub needs a separate Kubernetes design. That decision changes who builds it, how learners' containers are scheduled and how the hub is monitored.
Because plugin behavior can change between releases, confirm the current details in the tutor-jupyter README before you commit to a design. Check the supported Tutor versions, the spawner configuration, the resource limits applied to each container, and the Kubernetes guidance. Then run a pilot course with a small group of learners and watch CPU, memory and container counts during the exercise. The pilot tells you more about sizing than any general estimate, and it gives your security team something concrete to review before notebooks reach a full cohort.
What you need in place before installing the Jupyter plugin
The Jupyter plugin depends on a working Tutor-based Open edX environment, enough Docker capacity for learner containers, and a few production decisions made early. Work through these cards before any install step, because each one changes the design of the next.
A working Tutor-based Open edX
Start from a Tutor installation that already serves the LMS and Studio, not from bare metal. The edx-platform maintainers recommend Tutor or a service provider for production because bare-metal installs are complex and get limited community support. Tutor also handles the development dependencies such as Python 3.12, Node.js, MySQL 8.0, MongoDB 7.x and Memcached, so your team does not have to assemble them. Confirm that the LMS and Studio load and that a test course can be edited before you add the plugin.
Tutor docsDocker host capacity for learner containers
The Jupyter plugin runs JupyterHub with a Docker spawner, so each learner gets a container with limited CPU and memory. Capacity is set by how many learners open notebooks at the same time, not by total enrollment. Ask the team to estimate peak concurrent sessions, the per-container limits they want, and the memory headroom left for the LMS, Celery workers and the database on the same host. Plan a separate host or cluster if the notebook load would starve the platform.
Plugin installation access on the target environment
Installing the plugin means changing the Tutor configuration, rebuilding images and restarting services on the environment that will host learners. Confirm who holds SSH or cluster access, who can run the Tutor commands, and where configuration changes are recorded. Keep the staging and production environments on the same Tutor and plugin versions so a notebook that works in staging behaves the same way in production.
Production target: Docker host or Kubernetes
Decide early where production runs. The tutor-jupyter README says Kubernetes compatibility was not battle-tested and points to Zero to JupyterHub with Kubernetes for production. A single Docker host fits a pilot or a small course set, while a Kubernetes deployment means a separate JupyterHub design for per-learner pods. Record the decision in the scope, because it changes the install path, the monitoring and the staff skills needed.
tutor-jupyter READMEDNS and TLS for LMS and JupyterHub
Learners reach the notebook service through a hostname, so the LMS and the JupyterHub endpoint each need a DNS record and a valid certificate. Notebooks are loaded in the browser, so mixed content or certificate warnings will block them. Confirm the hostnames, who controls the DNS zone, how certificates are issued and renewed, and whether the proxy in front of Tutor forwards the JupyterHub traffic correctly.
A named owner for course content in Studio
A notebook block is only useful when course teams know which notebooks to add, which images learners need and who fixes a broken exercise. Name one owner in each course team who holds Studio edit rights and approves notebook content before release. Agree who owns the container image, the course data files and the updates to the Jupyter XBlock, so that a version change does not break published units.
How a learner request reaches a notebook container
The flow starts in the learner's browser, which loads a course unit in the LMS where the jupyter-xblock renders. Authors add that XBlock in Studio, and the plugin installs it in both services. The request then passes to JupyterHub, which uses a Docker spawner to start a separate container for each learner with limited CPU and memory. Two trust boundaries matter: between the LMS and the hub, and between the hub and the container host. Confirm the authentication handoff from LMS to hub in your target version before you rely on it.
Learner requests flow from the LMS through JupyterHub to a per-learner Docker container.
Configuration sequence for embedding notebooks in a course
This sequence takes Jupyter notebooks from a test install to a production deployment inside Open edX, with a check that closes each step. It keeps learner containers isolated, resource-limited and traceable to the right LMS account before any real learner uses them.
Install the Tutor Jupyter plugin in a non-production environment
The platform engineer installs the Tutor Jupyter plugin in a non-production Tutor environment. The plugin installs the official jupyter-xblock in the LMS and Studio and runs a Docker-based JupyterHub with a Docker spawner. Confirm the install by opening a Studio unit and checking that the Jupyter XBlock appears in the component menu. Do not continue until the block is listed and can be added to a unit.
Set per-container CPU and memory limits
Because the Docker spawner gives each learner a container, set CPU and memory limits in the plugin configuration before any learner test. The platform engineer then starts a test learner session and inspects the running container with Docker tooling to confirm the limits are applied. Ask your Open edX vendor or the plugin documentation which configuration keys control these limits in your Tutor version, and record them. The step closes when the inspected container shows the limits you set.
Create a sample notebook exercise in a Studio unit
A course author adds the Jupyter XBlock to a test unit in Studio and attaches a small sample notebook exercise, such as a short data-loading task with a clear expected output. The author previews the unit in the LMS to confirm the notebook renders and the exercise instructions display correctly. The step closes when the sample unit loads in preview without errors and the author has saved it as a draft in the test course.
Confirm container start and cleanup for a test learner
Sign in to the LMS as a test learner, open the sample unit and launch the notebook. The engineer watches the Docker host to confirm a container starts for that learner, then ends the session and checks whether the container is stopped, removed or reset according to the configured behavior. Record the container start log and the cleanup result. The step closes when the start log and the post-session container state match the expected lifecycle.
Verify the hub identity matches the LMS account
Compare the username the JupyterHub assigns to the test learner's container with the LMS account for that learner. Check that the identity is stable across sessions and that a second test learner gets a separate container rather than sharing one. Confirm that staff accounts follow the same mapping. The step closes when a written test record shows each LMS account maps to exactly one hub identity and no two learners share a container.
Document the image and dependency set
Record the notebook container image name and tag, the Python and library versions inside it, the Tutor and plugin versions, and any custom packages added for course content. Store this record with the course configuration in version control so it can be rebuilt. Ask the plugin maintainers or your engineering lead which packages are needed for your courses and whether the image needs a security scan before use. The step closes when a reviewer can rebuild the same image from the documented record.
Repeat in production with a load check on the Docker host
Deploy the same configuration to production through your normal change process. Before opening the course to learners, run a load test that starts concurrent notebook sessions on the production Docker host and watches CPU, memory and disk use against the limits set in step two. The README for the plugin notes that Kubernetes compatibility was not battle-tested and points to Zero to JupyterHub with Kubernetes for production, so confirm the hosting choice before go-live. The step closes when the load test results show the host stays within capacity and the production start log confirms each learner gets an isolated container.
How learner, course and container identities map
This table pairs each Open edX object with its notebook-side counterpart, shows who owns the record and where the data sits, and lists what to confirm in the plugin version you install. Read each row as a question to answer in a test environment before course teams build graded notebooks. The main takeaway is that a learner's Open edX identity and their JupyterHub identity are separate records that must be linked, and the link and file persistence behavior are not guaranteed by the platform alone.
| Open edX object | Notebook-side counterpart | Owner and data location | What to confirm in your plugin version |
|---|---|---|---|
| Learner account | JupyterHub user | Open edX LMS owns the account; the hub user is created from the session when a learner launches a notebook | Which value the LMS passes as the hub username, and whether the hub user is created on first launch or in advance |
| Course run | Notebook context for one course | Course run lives in the LMS and Studio; the notebook side only sees the block placed in it | Whether the same learner gets one shared container or separate containers across different course runs |
| Studio unit | XBlock instance on a page | Studio stores the unit and its Jupyter XBlock settings in the course content store | How the block settings reach the spawned container, and whether changing a unit after learners start affects running sessions |
| JupyterHub user | Hub user record and its server state | JupyterHub holds its own user database and server state in the Tutor-managed deployment | Where hub state is stored between restarts and whether it survives a Tutor redeploy |
| Docker container | One spawned notebook server per user | Docker host running the Docker spawner; container lifecycle is controlled by the hub | Resource limits applied per container, cleanup timing for idle containers, and which host paths are mounted |
| Notebook files | User workspace or mounted volume | Stored on the container host or a volume you configure; not inside the LMS database | Whether files persist across sessions, where they are written, and who can read them as the operator |
Security controls for learner notebook containers
The Tutor Jupyter plugin runs a Docker-based JupyterHub that starts a container for each learner, so every notebook is code that someone else wrote and runs on your host. The six controls below cover what the host, the network, the images, the secrets, the logs and the access rules need before learners reach the hub. Running untrusted code is a boundary decision, and the grading flows are covered in a separate topic.
Resource limits per container
The Docker spawner gives each learner a container with limited CPU and memory, but the values you choose decide whether one runaway notebook can starve the host or other learners. Set memory and CPU ceilings with your own load tests in mind, and confirm that the limits apply to every spawned container, not only the default profile. Check what happens when a learner hits the memory ceiling: the kernel should stop that container, not the host services that run Open edX.
Tutor Jupyter pluginEgress rules for learner code
A notebook can make outbound network calls, so a learner can exfiltrate course data, probe internal services or pull malicious packages. Decide which destinations containers may reach, such as package mirrors you approve, and block the rest at the host or network layer. Confirm with your network team that containers cannot reach the LMS database, the MongoDB and MySQL hosts, or cloud metadata endpoints. Test the rules from inside a running container rather than trusting the configuration file.
Approved notebook images
Each container starts from an image, and an unreviewed image is unreviewed software running for every learner. Keep a short list of approved base images, pin them by version and digest, and rebuild them on a schedule you control. Record where each image came from and who approved it. Ask your team to confirm how the plugin selects its image so that a change to the configuration cannot silently point learners at an image you have not reviewed.
Secrets kept out of notebooks
Learners can read anything in their notebook, including environment variables, mounted files and kernel state. Keep LMS and Studio credentials, database passwords and API keys out of the spawned containers, and do not bake them into images. If a notebook needs a service credential, issue a scoped, short-lived token that the course team can revoke. Check that the hub's own configuration and the Open edX secrets are not mounted into the learner containers.
Hub and container event logging
Operations needs to see who started which container, when it failed, and when a resource limit or egress rule stopped it. Send JupyterHub and Docker events to the same log system you use for the rest of the platform, and set a retention period that your privacy office has agreed. Keep the logs free of notebook contents where possible. Test that a learner's session start and stop can be traced to a user identifier without exposing the code they wrote.
Access limited to enrolled learners
The hub should open only to learners enrolled in the course that embeds the notebook and to the authors who maintain it. Confirm how the hub authenticates requests that come from the LMS, and test with an account that is not enrolled to make sure it is refused. Review who holds staff or admin roles in Studio, because those roles usually sit close to the hub. Revisit the access rules whenever enrollments or course team membership change.
Where the Docker spawner stops and Kubernetes production planning starts
The Tutor Jupyter plugin's README says Kubernetes compatibility was not battle-tested, and it points to Zero to JupyterHub with Kubernetes for production. Read that as a boundary on what the plugin itself promises. The documented path is a Docker-based JupyterHub with a Docker spawner, where each learner gets a container with limited CPU and memory. Any move to Kubernetes is a different architecture with its own design, and the production guidance for it lives in a separate project that your team has to evaluate on its own terms. Confirm the current wording in the tutor-jupyter README before you commit, because the status of plugin compatibility can change between releases.
Before choosing Kubernetes, decide three things. First, node sizing for per-learner pods: estimate the peak number of concurrent notebook sessions for a course, the CPU and memory each session needs, and how many nodes that implies with headroom for failures and upgrades. Learners who leave sessions running hold resources, so idle culling policy belongs in the same decision. Second, storage for user data: notebook files must survive pod restarts and node replacement, which means choosing a persistent volume approach, a backup schedule and a restore test, and deciding who can read learner work. Third, upgrade ownership: name who upgrades the JupyterHub chart, the notebook images, the Kubernetes cluster and the Open edX release that calls the XBlock, and who tests each change against the courses that depend on them.
DeployOpen would scope a Kubernetes design of this kind as separate work from the Tutor Jupyter plugin implementation, with its own requirements, architecture decisions, testing and handover. Expect that scope to cover the cluster, the hub deployment, image management and the operating model, and to be quoted from a written statement of work rather than from this page. Ask any partner, including DeployOpen, which parts of the Zero to JupyterHub guidance they have run in production and how they would test a sustained class load before you sign.
Choosing a hosting model for notebook workloads
This model fits a small pilot on one Tutor environment, where a few courses use notebooks and the team wants to learn how the XBlock and hub behave before committing. The Tutor Jupyter plugin installs the official jupyter-xblock in the LMS and Studio and runs a Docker-based JupyterHub, so the pilot runs on the same host as the rest of the platform.
- Shared resources: Notebook containers compete with the LMS, Studio and workers for CPU and memory on one machine, so pilot results may not predict behavior under real concurrent use.
- Low setup effort: The plugin is installed and enabled through Tutor's plugin mechanism, which keeps the first build small.
- Limited recovery options: A single host has no built-in failover, so the pilot should be treated as non-critical until the production model is chosen.
- Easy teardown: Pilot content and settings can be rebuilt or removed without affecting a larger environment.
- Scope of conclusions: Results apply to the courses and learners you tested, not to a full population.
Before relying on pilot findings, confirm the plugin version against your Tutor release, the resource limits applied to learner containers, and the data kept in notebook volumes.",
This model fits a fixed learner population that will use notebooks on a predictable schedule, running the plugin's Docker spawner on a dedicated host or hosts you control. It keeps the architecture close to the documented plugin path, so the team works with the spawner and container settings that the plugin README describes.
- Capacity planning: You must size the host for the peak number of simultaneous notebook containers, which the plugin limits per learner through CPU and memory settings you confirm before go-live.
- Patching and rebuilds: Operating system, Docker engine and image updates require maintenance windows that coordinate with Tutor upgrades.
- Backup of user state: Notebook volumes and hub database need a tested backup and restore procedure, separate from the LMS database backup.
- Monitoring: Container failures, disk growth and hub login errors need alerts routed to the platform team.
- Operator knowledge: Someone on the team must be able to diagnose Docker-level issues, since the plugin provides no managed control plane.
Confirm the supported Docker and Tutor versions, the spawner configuration keys, and the host sizing approach in the tutor-jupyter README before writing the runbook.",
This model fits an organization that already operates a Kubernetes cluster and wants notebooks to run there. The tutor-jupyter README states that Kubernetes compatibility was not battle-tested and points to Zero to JupyterHub with Kubernetes for production, so this path is a separate design and build, not a switch of the Docker spawner.
- Different project: Using Zero to JupyterHub means a Kubernetes-native hub configuration, which is a separate integration with the LMS authentication and the XBlock.
- Cluster ownership: Namespaces, quotas, network policy, storage classes and node pools must be agreed with the cluster team before notebooks are added.
- Identity and access: The hub's authentication must match the LMS sign-in path so that learners reach their own notebooks without shared accounts.
- Upgrade coupling: Cluster upgrades and Tutor or Helm chart upgrades can interact, so their order needs a written plan.
- Support boundary: Confirm who owns cluster incidents, the hub and the XBlock integration in your contracts and runbooks.
Before committing, confirm with the Zero to JupyterHub documentation which chart version fits your cluster, and test the LMS-to-hub handoff in a non-production cluster.
Common notebook failures and where to look first
This table lists the failures course teams most often hit when embedding Jupyter notebooks with the Tutor Jupyter plugin, with the likely cause, the first check and the fix direction for each. Use it as a triage order: confirm the symptom, run the first check, then match the fix to your plugin version, since behavior can change between releases.
| Failure | Likely cause and first check | Fix direction and what to confirm |
|---|---|---|
| XBlock missing in Studio after install | The jupyter-xblock package may not be installed in the Studio image, or the image was not rebuilt and the platform restarted. Check that the XBlock is listed in the Studio advanced components list after a fresh build. | Rebuild the images, run the configuration and restart the platform, then confirm the component is enabled in the course advanced settings. Confirm the install behavior against the plugin version in the tutor-jupyter README. |
| Notebook loads but the container does not start | The Docker spawner cannot create the learner container, often because the Docker socket or image name is wrong, or the image is not pulled on the host. Check the JupyterHub logs for spawn errors first. | Correct the image and host Docker access in the plugin settings, pull the image, and retest with one test account. Confirm the spawner settings for your plugin version before changing them. |
| Containers run out of memory or CPU under concurrent use | Each learner receives a container with limited CPU and memory, so many simultaneous sessions on one host exhaust capacity. Check host load and container resource limits during a class session. | Size the host for expected concurrent learners, tune the per-container limits, and plan for session timeouts. Treat the Docker path as a single-host design and confirm limits with your plugin documentation. |
| Learners see another user's files or session | Misconfigured volume mounts or shared storage paths can expose data between containers. Check which host paths are mounted into each container and whether user directories are separated. | Use per-user volumes, restrict mounts to the learner's own directory, and test with two accounts before launch. Review the access model with your security team and confirm mount behavior in your plugin version. |
| Hub cannot reach the container network | The JupyterHub service and spawned containers may sit on different Docker networks, or a firewall or proxy rule blocks the connection. Check container network membership and hub logs for connection timeouts. | Attach the hub and spawned containers to the same network and align proxy routes with the hub address. Confirm the networking setup in the plugin documentation for your version. |
| Kubernetes deployment behaves differently from the Docker path | The Tutor Jupyter plugin's README says Kubernetes compatibility was not battle-tested. The Docker spawner does not map directly to Kubernetes pods, storage or scheduling. | For production on Kubernetes, plan with Zero to JupyterHub with Kubernetes rather than the Docker spawner. Ask for a written compatibility statement for your plugin version before committing to the design. |
Questions buyers ask about Jupyter notebooks in Open edX
How much effort does the Docker install of Jupyter notebooks in Open edX take?
The effort depends mostly on how much of the Open edX platform is already running with Tutor and how many notebook images you need to maintain. The Tutor Jupyter plugin installs the jupyter-xblock in the LMS and Studio and runs a Docker-based JupyterHub, so the install adds a second container layer to a Docker host you already operate. Work grows with the number of learners who start notebooks at the same time, the CPU and memory limits you set per container, and the number of course-specific images. Ask your implementer to walk through the Tutor plugin configuration, the host sizing for concurrent sessions and the image build process before agreeing on scope.
Can our own team run a Jupyter pilot on Open edX without a partner?
A capable platform team can run a pilot in-house if it already operates Tutor and Docker and has someone comfortable with JupyterHub and Python environments. The pilot needs one course, a small set of approved images, a test learner group and a clear rollback plan. The harder questions are usually not technical: who approves the images learners run, who owns the notebook data, and who answers when a container fails during a graded exercise. Decide those owners before the pilot starts, then judge whether your team has the time and skills to cover them alongside normal platform operations.
What does our organization need to provide for a notebook project?
The organization usually provides the following inputs:
- Docker capacity on hosts you control, sized for the number of learners expected to run notebooks at once
- Course content, including the notebook exercises, expected outputs and the course structure they belong to
- Decisions on base images, required Python or R packages and any data files learners need
- Named account owners for the LMS, Studio, the JupyterHub deployment and the hosting environment
Without these inputs, the notebook work stalls because the image and capacity choices depend on them.
How long does a Jupyter notebook integration usually take?
Duration depends on the number of courses, the complexity of the exercises, the number of images and the review cycle your security and compliance teams require. A single-course pilot on a Tutor-based platform moves faster than a rollout across several programs with different software requirements. Plan extra time for capacity testing with realistic concurrent use, for image review by security teams and for course authors to build and check their notebooks. Ask any implementer for a written schedule that lists these phases separately, so you can see which one controls the end date.
Does the Tutor Jupyter plugin support Kubernetes for production?
No, the plugin's documentation does not claim Kubernetes compatibility for production. Its README states that Kubernetes compatibility was not battle-tested and points to Zero to JupyterHub with Kubernetes for production deployments. That means running notebooks on a Kubernetes cluster is a separate design effort, with its own spawner, storage, networking and resource controls, rather than a switch in the Tutor plugin. If your platform runs on Kubernetes, confirm with your implementer how the notebook layer will be deployed, tested and operated before you commit to a production date. The tutor-jupyter README lists the current limits.
What should a quote for Jupyter notebooks in Open edX cover?
A quote should follow from a written scope and list each piece of work separately. Ask it to cover the Tutor Jupyter plugin configuration, the JupyterHub and Docker spawner setup, container resource limits, image build and review, the jupyter-xblock placement in LMS and Studio courses, testing with concurrent learners, backup and log handling, and handover documentation. It should also name the parts that are one-time, such as initial build and testing, and the parts that recur, such as image updates and host maintenance. Any Kubernetes production design should appear as its own item with its own assumptions, because the plugin does not cover that case.
How DeployOpen scopes and delivers notebook integrations
DeployOpen plans, implements, tests, documents and supports self-hosted open-source platforms inside your own infrastructure, including Open edX. For Jupyter notebooks, we start from a written scope that names the course use cases, the compute limits per learner and the Kubernetes or Docker target before any build begins.
How we scope
- Confirm which courses need notebooks and what learners must run in them
- Agree the target: Docker-based JupyterHub via Tutor or a Kubernetes design
- Record CPU, memory and storage limits per learner container in the written scope
- Define who approves images, packages and data access for notebook labs
How we build
- Install the Tutor Jupyter plugin and the jupyter-xblock in LMS and Studio
- Build a sample course unit and test notebook launch for learner and staff roles
- Set container images, resource limits and volume handling against the agreed scope
- Document any Kubernetes design as a separate, reviewed build with its own tests
How we hand over
- Deliver configuration, plugin settings and runbooks in your own repositories
- Provide test cases covering launch, resource limits, cleanup and access control
- Walk your platform and course teams through course authoring and troubleshooting
- Record known limits, including the Kubernetes caveat, in the handover document
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing
- Ongoing support, Tutor and Open edX upgrades and continuous testing run as retainers
- Retest notebook launch and resource behavior after each platform upgrade
- Confirm with your team which upgrades and changes fall inside the retainer

