Skip to content

Unable to run cells when opening an existing notebook and using pre-selected kernel #207126

Closed

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Steps to Reproduce:

  1. Open workspace folder, create an ipynb file on disc, save this, select a kernel and run a cell
  2. Reload VS Code
  3. The kernel will be automatically selected,
  4. We're unable to run cells, unless you switch kernels
Error: notebook controller is NOT associated to notebook: file:///Users/donjayamanne/demo/sample.ipynb
    at Object.createNotebookCellExecution (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:213939)
    at KernelController.createNotebookCellExecution (/Users/donjayamanne/Development/vsc/vscode-jupyter/src/kernels/kernelController.ts:13:32)
    at Function.create (/Users/donjayamanne/Development/vsc/vscode-jupyter/src/kernels/execution/cellExecutionCreator.ts:152:24)
    at Function.getOrCreate (/Users/donjayamanne/Development/vsc/vscode-jupyter/src/kernels/execution/cellExecutionCreator.ts:121:50)
    at _VSCodeNotebookController.createCellExecutionIfNecessary (/Users/donjayamanne/Development/vsc/vscode-jupyter/src/notebooks/controllers/vscodeNotebookController.ts:515:53)
    at _VSCodeNotebookController.executeCell (/Users/donjayamanne/Development/vsc/vscode-jupyter/src/notebooks/controllers/vscodeNotebookController.ts:534:25)
    a

Activity

  1. added
    bug
    on Mar 8, 2024
  2. DonJayamanne commented on Mar 8, 2024

    @DonJayamanne
    ContributorAuthor

    Given the PR has been reverted, this issue can be closed
    Besides the original issue is still open #204416

  3. locked and limited conversation to collaborators on Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions