UBC-DSCI / jupyterhub-infrastructure

0 stars 0 forks source link

Disable keyboard shortcuts in Jupyter lab #17

Open ttimbers opened 3 years ago

ttimbers commented 3 years ago

I think I have figured out why there are so many problems with the DSCI 100 student notebooks this year (I have to edit the JSON of one file per assignment, on average, all term - to replace some missing cell metadata that nbgrader needs). We moved to Jupyter lab, because it is superior in so many ways to the old, dated classic notebook (e.g., with lab we can use the Git GUI!). BUT it has some new keyboard shortcuts that are killing us, including:

Control + Shift: When a cell is highlighted (i.e. when you click the the left of a cell) it merges that cell with the cell below it, wiping the cell below its metadata... And hey, what's the keyboard shortcut for the pipe again? Oh right, Control + Shift + M... :skull:

I am going to figure out a way to remove that keyboard shortcut for the next iteration of the course. Interestingly, in our online Python courses that use this software stack, this is not happening as often (but there's also less students, so maybe its just the sheer number in DSCI 100 that this is more likely to happen)...

Seems possible: https://github.com/jupyterlab/jupyterlab/issues/6830

trevorcampbell commented 3 years ago

At least for DSCI100, I vote we try to disable all shortcuts that can remove, merge, duplicate, or "auto-edit in some way" cells (which all cause problems with nbgrader).

trevorcampbell commented 3 years ago

...and if that's not feasible, I would also be OK with disabling all keyboard shortcuts.