jupyter / jupyter/notebook

Remove Specific Keyboard Shortcuts

Open
#4,477 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

How can I remove specific keyboard shortcuts?

The Z and DD shortcuts in particular are troublesome as errant keystrokes keep undo-ing or deleting cells.

Referencing [#1437](https://github.com/jupyter/notebook/issues/1437), I too have seen documentation suggesting the code below. However, It gives the error "Javascript Error: Can't find variable: Jupyter"

```
%%javascript

Jupyter.keyboard_manager.command_shortcuts.remove_shortcut('z');
Jupyter.keyboard_manager.command_shortcuts.remove_shortcut('dd');
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the guidance referenced in issue #1437 and the shown Jupyter.keyboard_manager.command_shortcuts calls. Determine whether the documentation needs an updated method for removing the Z and DD shortcuts, or clarification that the example no longer works; done means the supported approach is documented clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.