How to add keyboard shortcuts permanently to Jupyter (ipython) notebook?

前端 未结 4 684
野的像风
野的像风 2021-01-04 11:49

I have the following configuration for shortcuts, that works after running it in the cell of Jupiter notebook:

%%javascript


IPython.keyboard_manager.comman         


        
4条回答
  •  悲&欢浪女
    2021-01-04 12:25

    Adding hotkeys the easy way with nbextensions

    1. Install nbextensions.
      pip install jupyter_contrib_nbextensions
    2. Then launch jupyter notebook.
    3. The the intro page will have a new tab called nbextensions click it and enable Keyboard Shortcut Editor.
    4. Now open any notebook click help>keyboard shortcuts
    5. Each shortcut will have a pencil icon next to it if you click on it then you can set the shortcut to whatever you want.

提交回复
热议问题