Error when running Python in Visual Studio Code: Error: Session cannot generate requests

  Uncategorised

I am using a virtual maching provided by AWS, to which I connect via its ssh key using VSC. When connected to it, I open a jupyter notebook inside the VM (via VSC) in which I run my code.

Today I wanted to execute a particular cell, and I noticed that some points during its execution (it takes ~24mins), and after a while, before it has ended all the other cells that wait for execution get "canceled" and the following message appears below them.

enter image description here

I have no idea what this error means. I’ve already executed another notebook which run for 4-5 hours without issues.

If you need any other information please ask me. Thanks in advance.

Source: Visual Studio Questions

One Reply to “Error when running Python in Visual Studio Code: Error: Session cannot generate requests”

LEAVE A COMMENT