Skip to content

Python requires ipykernel installed or requires an update. #6272

@DucNgn

Description

@DucNgn

Environment data

  • VS Code version: 1.57.0 (Universal)
  • Jupyter Extension version (available under the Extensions sidebar): v2021.6.999230701
  • Python Extension version (available under the Extensions sidebar): v2021.5.926500501
  • OS (Windows | Mac | Linux distro) and version: MacOS Big Sur 11.3.1
  • Python and/or Anaconda version: python 3.6.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Jupyter server running: Local | Remote | N/A: Local

Expected behaviour

  • Click on "start" in the tool bar, it should start running cells

Actual behaviour

The following box appears.

image

  • I tried to reinstall as suggested in the box, it reinstalls ipykernel successfully but the issue still persists.
  • I tried the option to change kernel and verified that the kernel is in the correct venv path.
  • Here's the kernelspec if it helps:
jupyter kernelspec list --json

{
  "kernelspecs": {
    "python3": {
      "resource_dir": "/Users/ducnguyen/workspaces/lab/SHAP-demo/venv/share/jupyter/kernels/python3",
      "spec": {
        "argv": [
          "python",
          "-m",
          "ipykernel_launcher",
          "-f",
          "{connection_file}"
        ],
        "env": {},
        "display_name": "Python 3",
        "language": "python",
        "interrupt_mode": "signal",
        "metadata": {}
      }
    }
  }
}

Steps to reproduce:

  1. Have pyenv to manage python version
  2. Choose python 3.6.0 globally
  3. Start a virtual environment with venv
  4. Start vscode, change kernel path to the one in venv
  5. Create a jupyter notebook file, run cells.

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions