Skip to content

Impossible to type an "@" in a code cell on MacBook with Swiss keyboard layout #9801

@fabianegli

Description

@fabianegli

Description

Python sometimes requires an @ character to be typed to e.g. use decorators.

On MacOS / Apple native keyboards the @ is typed by the key combination Alt + g. See my keyboard layout at Swiss Multilingual - (SM) > Laptop Keayboard on https://support.apple.com/en-us/HT201794

Reproduce

  1. Open a new Jupyter Notebook in JupyterLab
  2. Press Alt+ g

Diagnosed in the current (February 15, 2021) jlab-test conda environment in a private browser window.

Expected behavior

Add a @ character to the code cell.

Context

  • Operating System and version: 10.14.6 (18G7016)
  • Browser and version: Version 1.20.103 Chromium: 88.0.4324.152 (Official Build) (x86_64)
  • JupyterLab version: 3.0.7

This is probably linked to #7704
For more information on trials I made to solve allow the typing of "@"s in code cells you can check my question over at Stack Overflow

Workaround

@jasongrout posted a workaround #7704 (comment) that worked with my setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpkg:codemirrortag:KeyboardCompatibility issues with keyboards, including locale-specific and layout-specific issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions