A lightweight feedback extension for Jupyter. Ordo allows users to add feedback messages in a cell's metadata. The feedback is appended to cell's output as a success or failure message based on the result the cell produces.
Install and enable ordo on your Jupyter server
curl -LO https://github.com/nm-wu/ordo/archive/refs/heads/main.zip
unzip main.zip
cd ordo-main/
pip install -e .
jupyter nbextension install --py --sys-prefix ordo
jupyter nbextension enable --py ordo
git clone git@github.com:nm-wu/ordo.git
cd ordo/
pip install -e .
jupyter nbextension install --py --sys-prefix --symlink ordo
jupyter nbextension enable --py ordo
To configure your ordo installation (e.g., to default into the
feedback mode) provide an ordo section to
<config-dir>/nbconfig/notebook.json:
- Pick a configuration directory (
config-dir) fromjupyter --paths; - Create and/or edit
notebook.jsontherein, to include:
{
"ordo": {
"defaultSuccess": "Thumb up!",
"defaultFailure": "Thumb down!",
"enableModeToggle": false
}
}
defaultSuccess(string): The default success message, valid for for the scope of an entire notebook (maybe overriden on a cell-by-cell basis);defaultFailure(string): The default failure message, valid for for the scope of an entire notebook (maybe overriden on a cell-by-cell basis);enableModeToggle(boolean): Setting totrueenables both command modes: authoring and feedback mode (as well as toggling between the two).falserenders the notebook in feedback-only mode (no mode toggle available).
See README.ipynb for examples.