📚 Add your own exercises to JupyterLab
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Improve cell header text Jan 9, 2019
style Fix multiple notebooks error Jan 8, 2019
.gitignore Initial commit Dec 17, 2018
LICENSE Add solution buttons on cells Dec 18, 2018
README.md Improve hint block colors Jan 8, 2019
package.json Add hint block functionality Jan 8, 2019
requirements.txt Add custom variables Dec 17, 2018
setup.py Create setup.py Dec 20, 2018
yarn.lock Initial commit Dec 17, 2018


JupyterLab Solutions

A simple extension to hide solution cells in Jupyter Lab. Meant for teachers and students.

Demo as teacher


Demo as student



To install using pip:

jupyter labextension install @rmotr/jupyterlab-solutions
pip install jupyterlab-solutions
jupyter serverextension enable jupyterlab_rmotr_solutions


For a development install (requires npm version 4 or later), do the following in the repository directory:

npm install
jupyter labextension link .

also add

  "NotebookApp": {
    "nbserver_extensions": {
      "jupyter_nbextensions_configurator": true,
      "jupyterlab_rmotr_solutions": true

on /Users/<USERNAME>/.jupyter/jupyter_notebook_config.json.

Adding custom variables

Add the following to /Users/<USERNAME>/.jupyter/jupyter_notebook_config.py.

c.JupyterLabRmotrSolutions.is_enabled = True # True, False
c.JupyterLabRmotrSolutions.role = 'teacher' # 'teacher', 'student'