Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ammar-Azman/69000a7a84b00545c2d8e8ae2b819d8c to your computer and use it in GitHub Desktop.
Save Ammar-Azman/69000a7a84b00545c2d8e8ae2b819d8c to your computer and use it in GitHub Desktop.
How to disable the JupyterLab Sagemaker shortcuts on left-toggle to use tmux

Details

Datetime

30/5/2023, 12:06 pm

Issue

Most of the tmux shortcut required ctrl + b, <some_alphabet> which become a headache as it is similar to JupyterLab left-toggle shortcut that is ctrl + b. Hence, I want to disable the JupyterLab shortcut, so I can use tmux happily.

Solution

  1. In the Sagemaker JupyterLab, open Settings > Advance Setting Editor.
  2. Search for "Keyboard"
  3. Click the Keyboard Shortcuts
  4. On the top left of the page, you can see JSON Settings Editor. Click it.
  5. You will see a JSON/dictionary form that represents the shortcuts.
  6. Add the following line within the shortcuts value.
{
            "command": "application:toggle-left-area",
            "keys": [
                "Accel B"
            ],
            "selector": "body",
            "disabled": true
        }
           
  1. Save it.
  2. Boom, disabled left-toggle shortcut, use tmux happily.

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment