Jupyter 不允许我输入左方括号

问题描述 投票:0回答:1

最近我在 Mac 上安装了 Jupyter Notebook 以供教学使用,我注意到一个问题:

list = 
Jupyter 不允许我输入左方括号,如果我在新行中输入它,它允许我输入,例如:

[]

我刚刚尝试使用 Homebrew 根据提示完全重新安装 Jupyter,但没有成功。我该怎么办?

python python-3.x macos jupyter-notebook
1个回答
2
投票

这是一个已知问题:

https://github.com/jupyterlab/jupyterlab/issues/15744

你可以这样做:

Settings → Settings Editor → JSON Settings Editor → Keyboard Shortcuts → User → paste → save

粘贴:

{
  "shortcuts": [
    {
      "args": {},
      "command": "inline-completer:next",
      "keys": [
          "Alt ]"
      ],
      "selector": ".jp-mod-completer-enabled",
      "disabled": true
    },
    {
      "args": {},
      "command": "inline-completer:previous",
      "keys": [
          "Alt ["
      ],
      "selector": ".jp-mod-completer-enabled",
      "disabled": true
    },
    {
      "args": {},
      "command": "inline-completer:invoke",
      "keys": [
          "Alt \\"
      ],
      "selector": ".jp-mod-completer-enabled",
      "disabled": true
    }
  ]
}

https://github.com/jupyterlab/jupyterlab/issues/15744#issuecomment-1999433752

© www.soinside.com 2019 - 2024. All rights reserved.