Skip to content

can't send to Native Python REPL with ⇧&⏎ like send to Jupyter #23988

@geoqiao

Description

@geoqiao

I can't send to Native Python REPL with ⇧&⏎ like send to Jupyter

When I select a piece of code and press the shortcut key ⇧ & ⏎, this piece of code is executed in the repl interface of the terminal instead of Native Python REPL.
image

What I expect is that this code can be executed in Native Python REPL when I press the shortcut key.

Here is my setting.json config, thanks for help me:

{
  // editor basics

  "editor.accessibilitySupport": "on",

  "editor.fontFamily": "JetBrains Mono NL, MesloLGS NF", //字体部分需要下载相关字体

  "editor.cursorBlinking": "solid",

  "editor.defaultFormatter": "charliermarsh.ruff", // ruff插件的配置项

  "editor.mouseWheelScrollSensitivity": 1,

  "editor.mouseWheelZoom": true,

  "editor.semanticHighlighting.enabled": true, //语义高亮

  "editor.wordWrap": "off",

  "editor.autoClosingBrackets": "languageDefined",

  // python

  "[python]": {
    "editor.formatOnSave": true,

    "editor.codeActionsOnSave": {
      "source.fixAll": "explicit",

      "source.organizeImports": "explicit"
    },

    "editor.defaultFormatter": "charliermarsh.ruff"
  },

  "python.languageServer": "Pylance",

  "python.analysis.typeCheckingMode": "basic", //类型检查

  "python.REPL.sendToNativeREPL": true,

  "interactiveWindow.executeWithShiftEnter": false,

  // theme

  "workbench.colorTheme": "Best Themes - Xcode Catalina Bold",

  "workbench.iconTheme": "material-icon-theme",

  "debug.console.fontSize": 15,

  "editor.fontSize": 15,

  "window.zoomLevel": 1,
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "accessibility.signalOptions.volume": 10
}

Metadata

Metadata

Assignees

Labels

area-replbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions