Skip to main content

Jupyterlite-xblock

The JupyterLite XBlock is an advanced educational tool designed to seamlessly integrate JupyterLite, a lightweight Jupyter notebook environment, into Open edX. This integration allows both instructors and learners to leverage the powerful features of Jupyter notebooks directly within the Open edX platform. Here are its key features:

  • JupyterLite Integration: Embeds JupyterLite for interactive Python coding within course content.
  • Configurable Notebook Settings: Instructors can set the JupyterLite service URL and a default notebook.
  • Notebook Tracking: Tracks learner interactions with notebooks, saving their progress.
  • Interactive Learning: Offers real-time coding practice and results visualization.
  • Notebook Storage: Facilitates saving and retrieval of notebooks within the platform.
  • Completion Tracking: Configurable to mark notebook interactions as course completion criteria.
  • Studio Interface: Easily manage JupyterLite settings and notebooks in Open edX Studio.
  • User-Friendly Interface: Enhanced with custom JavaScript and HTML for an interactive experience.

Setup

Install the jupyterlite xblock

 pip install jupyterlite-xblock

Install the jupyterlite plugin

The plugin is currently not available in tutor public indexes at the moment. To install it you should have access to git repo:

pip install git+https://github.com/edly-io/tutor-contrib-jupyterlite.git

Enable the jupyterlite plugin

tutor plugins enable jupyterlite

Build image and launch:

tutor images build jupyterlite
tutor [dev|local] launch

Update Advanced Settings of course

Update course advanced settings by adding jupyterlite_xblock as shown in below image and save changes

Update settings image

Now you can access the jupyterlite xblock feature in the advanced component of course unit

Update settings of Jupyter Component

JupyterLite Xblock will be available in Advanced component of course unit now. Add "JupyterLite" xblock in unit and click "Edit" button Access Edit Settings: Once the XBlock is added, click on the "Edit" button to open the configuration settings.

Set JupyterLite Service URL:

In the "JupyterLite base URL" field, enter the URL of your JupyterLite service. This URL is where the JupyterLite server is hosted. Example: http://jupyterlite.yourservice.com/lab/index.html This setting defines the base URL for the JupyterLite environment that learners will interact with.

Upload Default Notebook:

You have the option to upload a default .ipynb (IPython Notebook) file. This notebook will be the starting point for learners. Click on the "Upload .ipynb file" button and select the desired notebook from your computer. If a notebook is already uploaded, it will display its name. You can replace it by uploading a new file.

Save the Changes:

After configuring the settings, click on the "Save" button to apply the changes.

Configure Jupyter Lite XBlock Image

Add these settings to enable S3 Storage.

Please make sure your bucket's CORS allow JupyterLite service URL

XBLOCK_SETTINGS["JupterLiteXBlock"] = {
    "STORAGE_FUNC": "jupyterlitexblock.storage.s3",
    "S3_BUCKET_NAME": "YOUR_BUCKET_NAME_GOES_HERE"
}

Completion Delay Setting:

Configure the delay for marking an activity as complete. The default is 5 seconds, but it can be adjusted to suit course needs. The setting 'completion_delay_seconds' in XBLOCK_SETTINGS allows you to specify the delay in seconds.

'completion_delay_seconds': self.xblock_settings.get("COMPLETION_DELAY_SECONDS", 5)

Publish Content

Use "Preview" button to preview it or publish your content and use "View Live Version" button to see how it appears on LMS

View Jupyter Lite XBlock Image

Metadata

Release files for jupyterlite-xblock 16.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterlite-xblock 16.0.8
File Size Uploaded
jupyterlite-xblock-16.0.8.tar.gz 20.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlite-xblock 16.0.8
File Interpreter ABI Platform
jupyterlite_xblock-16.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 44.1 kB

Release files / jupyterlite-xblock-16.0.8.tar.gz

Download URL jupyterlite-xblock-16.0.8.tar.gz
Size 20.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2925ea7bda5fcd2341a9f29ebc9b0046d2aa32312fe6c3646b4f68116af6c2ee
BLAKE2b-256 checksum
How to use checksums
3be1ddad20b8765e5fc8a25d03f29138a43fae476a2967b39290c494024d8572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / jupyterlite_xblock-16.0.8-py3-none-any.whl

Download URL jupyterlite_xblock-16.0.8-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64bc1db920f75d4f06f04094fe9c8ddca1387c0d3ebe8f4576f7acc6bf0fdc20
BLAKE2b-256 checksum
How to use checksums
881a3ad59bab9b09a34ace9947b691a91876cc2eaf5a29f3aaae25bc072bba87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

16.0.8 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page