Enable XBlocks for a course
To install a new XBlock, follow the steps below:
-
Log in to your server console.
-
Download the module.
-
Load the Bitnami stack environment:
$ sudo /opt/bitnami/use_edx
-
Load the Open edX virtual environment:
$ source /opt/bitnami/apps/edx/venvs/edxapp/bin/activate
-
Install the XBlock using pip:
$ pip install /path/to/downloaded/xblock/
NOTE: The installation steps could differ depending on the XBlock. Check the provider documentation to get more information.
-
Restart the Apache server to load the changes.
Next, enable the XBlock for the course, as follows:
-
Navigate to the course in Studio.
-
Click the “Settings -> Advanced settings” menu.
-
Specify the XBlock to use in the “Advanced Module List” area using a comma-separated list. Note that you can find the name of the module in the provider documentation.
You should now be able to use the extension. To check this, create a new unit and select the “Advanced” button:
You should see the modules previously specified: