Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I update my VSCode to v1.56.2, I can't run Jupyter Notebook [duplicate]

When I update my VSCode to v1.56.2, I can't run Jupyter Notebook.

VScode doesn't show any code by .ipynb format but .py format is okay and I can see this Error:

Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

How can I solve this problem?

like image 623
masanmola Avatar asked Oct 21 '25 10:10

masanmola


1 Answers

In Windows, you can simply fix this error by clearing the cache for VSCode. Please follow the steps below:

  1. Close VSCode and also kill any background processes running in the task manager.

  2. Go to the file explorer and to the path C:\Users\<user_name>\AppData\Roaming\Code and clear the contents of the folders Cache, CachedData, CachedExtensions, CachedExtensionVSIXs (if this folder exists) and Code Cache.

  3. Open VSCode and you are good to go

also, you can see this issue:

Error loading webview: Error: Could not register service workers: TypeError: Failed to register a ServiceWorker for scope

like image 113
masanmola Avatar answered Oct 23 '25 23:10

masanmola