Skip to content
/ ordo Public
forked from nbgallery/ordo

A lightweight feedback tool for Jupyter

License

Notifications You must be signed in to change notification settings

nm-wu/ordo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ordo

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.

Installation

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

Installation (for development)

git clone [email protected]:nm-wu/ordo.git
cd ordo/
pip install -e .
jupyter nbextension install --py --sys-prefix --symlink ordo
jupyter nbextension enable --py ordo 

Configuration

To configure your ordo installation (e.g., to default into the feedback mode) provide an ordo section to <config-dir>/nbconfig/notebook.json:

  1. Pick a configuration directory (config-dir) from jupyter --paths;
  2. Create and/or edit notebook.json therein, 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 to true enables both command modes: authoring and feedback mode (as well as toggling between the two). false renders the notebook in feedback-only mode (no mode toggle available).

Examples

See README.ipynb for examples.

About

A lightweight feedback tool for Jupyter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.9%
  • Python 2.2%
  • CSS 1.9%