Documentation > Hub for instructors
Rubberband and Exercise extensions in the classic notebook
Noteable notebooks (using the classic interface) come with the Rubber Band and Exercise & Exercise 2 extensions
These extension provide a mechanism to create a Question and Solution (or hint) system
- The first [uppermost] cell in the set is always the question cell
- The remaining cells are solution cells, and start off hidden... but can be toggled to visible
THESE EXTENSIONS ARE COMPLETELY INDEPENDENT OF NBGRADER
(You can use them within an nbgrader assignment)
NOTE
Notebooks documents run with a notebook server that does not have these extension will just show the question and solution cells as normal cells
Rubberband
Rubberband is used to select a set of cells.
- Using a Mouse:
- Hold down the shift key
- Left click in the first cell
- Holding both shift and left click, drag your mouse to select the cells to include.
Note the red box that shows the selection
- Keyboard only
- Use the arrow keys to select the first cell
- Hold down the `shift key` and use the arrow keys to select the rest of the set of cells
Note that you can select top-to-bottom, or bottom-to-top... the first cell, the question cell, is always the one nearest the top of the notebook document
Exercise
Having selected a set of cells, either click on the Exercise button (), or use alt-s
This is the exercise in closed mode:
This is the exercise in open mode:
Exercise2
Having selected a set of cells, either click on the Exercise 2 button (), or use alt-d
This is the exercise 2 in closed mode:
This is the exercise 2 in open mode:
Reminder
Notebooks documents run with a notebook server that does not have these extension will just show the question and solution cells as normal cells