jupyter/jupyter-js-notebook

Active/Selected Cells

Closed this issue · 3 comments

I propose that a cell should not have active or selected properties. I suggest adding an attached property to cells for selected, and adding a getSelectedCells() method to the notebook model.

cc @jasongrout

We already have the activeCellIndex for the active state.

Actually, select(cell), deselect(cell), and isSelected(cell) would be required.

+1 to not having active or selected be intrinsic cell properties. Like the mode, those are properties of the container.