open-index/open-npm huggingface dataset:
npm package: @rmotr/jupyterlab-solutions
Description: Add your own exercises to JupyterLab
Author: rmotr.com
Latest version: 0.0.7

# JupyterLab Solutions

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

<p align="center">
<a href="https://notebooks.rmotr.com/fork/santiagobasulto/demonstration-of-jupyterlab-solutions-bcbbbdb9"><img src="https://user-images.githubusercontent.com/872296/50401412-30056380-076d-11e9-91d3-6bad93b540ef.png" width="170px"></a>
</p>

### Demo as _teacher_
![solutions-teacher](https://user-images.githubusercontent.com/7065401/50402147-123afd00-0773-11e9-902c-8b72c266503c.gif)

### Demo as _student_
![solutions-student](https://user-images.githubusercontent.com/7065401/50402146-11a26680-0773-11e9-8c7a-36acc1fbcb85.gif)

## Installation

To install using pip:

```bash
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:

```bash
npm install
jupyter labextension link .
```

also add 
```javascript
{
  "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'
```