Skip to content

Issue with Untrusted to Trusted Workspaces in Jupyter Notebooks #20367

Open

Description

Currently the python extension is stalling when attempting to execute functionality following the change from a untrusted to trusted workspace. When a file is originally opened in an untrusted workspace, then switched to trusted, the follow jupyter notebook operations performed by the user will stall and not complete. Dev tools will show the following error about the client not be available.

Steps to reproduce:

  1. Open new workspace, click do not trust
  2. Make a new Jupyter notebook
  3. Attempt to run code in the notebook
  4. Check in dev tools, an error should have appeared
  5. VS Code will now stall and be stuck on that run command

We have also determined this issue does not happen when you originally check trust when opening a new workspace. If you make it a trusted workspace from the beginning, then try and run code in a jupyter notebook, the code will return and no error will appear in the dev tools windows.

From the code on the python side, we are able to know that the user has switched to a trusted workspace, and doing this action does not cause a problem. The problem arises when attempting to run a notebook and the client error surfaces.

Screenshot 2022-11-23 at 11 34 34 AM

Screenshot 2022-11-22 at 3 07 24 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugtriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions