@rmotr/jupyterlab-solutions

0.0.7 • Public • Published

JupyterLab Solutions

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

Demo as teacher

solutions-teacher

Demo as student

solutions-student

Installation

To install using pip:

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

Development

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'

Package Sidebar

Install

npm i @rmotr/jupyterlab-solutions

Weekly Downloads

1

Version

0.0.7

License

BSD-3-Clause

Unpacked Size

13.5 kB

Total Files

8

Last publish

Collaborators

  • rmotr