Skip to content
juhasch edited this page Oct 25, 2014 · 12 revisions

Multi-Cell selection using a rubberband. This extension is only available for IPython version 3.x.

Description

The rubberband extension allows selecting multiple cells. Cells are selected by pressing shift/ctrl+shift + left mouse butte click and dragging the rubber band over the cells.

| keys | action | |------------| | shift + left mouse button | select cells that are currently touched by the rubberband | | ctrl + shift + left mouse button | select cells that were touched by the rubberband |

The ctrl+shift action is useful when scrolling inside the notebook. Scrolling is activated when the mouse reaches the upper or lower boundary of the notebook area. For now, the mouse has to be moved to achieve continuous scrolling.

A short video demonstrating the rubberband extension can be found here: screenshot

Two other extensions make use of this feature: exercise and chrome_clipboard.

Installation

Copy the rubberband directory to a new /nbextensions/usability/rubberband directory of your user's IPython directory and add

IPython.load_extensions('usability/rubberband/main')

to your custom.js file. Take a look at the general installation instructions in the Wiki if you are unsure how to proceed.

Internals

New metadata element added to each cell:

  • cell.metadata.selected - means this cell is selected

Clone this wiki locally