Jupyter Google Colab XBlock
Provides a convenient way to launch Google Colab notebooks with within Open edX.
Demo available at https://www.youtube.com/watch?v=ddZDNW_g-v4
- login as the root user:
- Activate the EdX virtualenv:
- New Installation:
sudo -u edxapp /edx/bin/pip.edxapp install git+https://github.com/ibleducation/jupyter-edx-colab-cloud-xblock.git
sudo -u edxapp /edx/bin/pip.edxapp install --upgrade --no-deps --force-reinstall git+https://github.com/ibleducation/jupyter-edx-colab-cloud-xblock.git
Edx Server Setup
In the following files:
Add the following at the bottom of the
# Colab XBlock 'colab_xblock',
/edx/bin/supervisorctl restart edxapp:
- In the studio, go to the course you would like to implement this XBlock in
Settingsat the top, select
- in the Advanced Module List, add:
- ensure there is a comma after the second to last entry, and no comma exists after the last entry
- Select Save
The Google Colab Link can now be added to a unit by selecting
Colab XBlock from the
Advanced component menu
How it works
Provides a button that will open a new tab/window to the provided google colab notebook.
If the link is a github link, we reformat it to a google colab link, otherwise we leave it as is.
The user can enter optional instructions or a summary that will be displayed above the link.