Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorisvandenbossche/nbtutor
Small utilities for teaching with Jupyter notebooks
https://github.com/jorisvandenbossche/nbtutor
Last synced: 4 days ago
JSON representation
Small utilities for teaching with Jupyter notebooks
- Host: GitHub
- URL: https://github.com/jorisvandenbossche/nbtutor
- Owner: jorisvandenbossche
- License: bsd-2-clause
- Created: 2015-03-13T10:32:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-13T20:20:52.000Z (almost 3 years ago)
- Last Synced: 2024-11-01T08:50:27.981Z (11 days ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nbtutor
-------A small utility for teaching with IPython notebooks: generate a student
version of the notebook with the exercises cleared, while keeping
your master version with the solutions.To install this, git clone the repo and then do:
git clone https://github.com/jorisvandenbossche/nbtutor.git
cd nbtutor
pip install .Further, you need to install the nbextension:
jupyter nbextension install nbextension/ --user
To ensure the the extension is loaded automatically, you also have to
enable the extension:jupyter nbextension enable nbtutor
And for converting, make a file that is eg called 'nbtutor_config.py' with
the following content:c.Exporter.preprocessors = ['nbtutor.ClearExercisePreprocessor']
and then run the following `nbconvert` command to convert a notebook:
jupyter nbconvert notebook.ipynb --to notebook --config nbtutor_config.py
Copyright (c) 2015, Joris Van den Bossche
BSD 2-Clause licensed, feel free to use or adapt!