Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using jupyter notebook shortcuts in colaboratory

Is there an easy way to use the default jupyter notebook shortcuts instead of the ones that come as default in colab?

It also appears that hotkeys don't distinguish whether a cell is active or not, which makes the use of simple hotkeys (e.g. 'b'-> insert cell after) impossible.

Any suggestions as to how this can be overcome, or will we have to get used to (slightly) different shortcuts?

like image 365
Daniel Lenz Avatar asked Mar 25 '18 05:03

Daniel Lenz


People also ask

How do I add a shortcut to a Jupyter Notebook?

Starting with Jupyter Notebook 5.0, you can customize the command mode shortcuts from within the Notebook Application itself. Head to the ``Help`` menu and select the ``Edit keyboard Shortcuts`` item. A dialog will guide you through the process of adding custom keyboard shortcuts.

What is Ctrl M in Colab?

If you are familiar with keyboard shortcuts from Jupyter Notebook, they don't work directly in Colab. But I found a mental model to map between them. Just add Ctrl + M before whatever keyboard shortcut you were using in Jupyter. This rule of thumb works for the majority of common use-cases. Action.


1 Answers

This isn't currently supported in Colab -- this issue is the one to follow.

like image 112
Craig Citro Avatar answered Oct 22 '22 06:10

Craig Citro