Home > Software design >  vscode jupyter notebook: Session cannot genreate requests
vscode jupyter notebook: Session cannot genreate requests

Time:12-08

I've been using vscode with Jupyter notebook extension (now maintain by Microsoft) for two years but It's weird to encouter the problem never met before as the error said:

Error: Session cannot generate requests
at S.executeCodeCell (c:\Users\alex0\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:301742)
at S.execute (c:\Users\alex0\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:300732)
at S.start (c:\Users\alex0\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:296408)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at t.CellExecutionQueue.executeQueuedCells (c:\Users\alex0\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:312326)
at t.CellExecutionQueue.start (c:\Users\alex0\.vscode\extensions\ms-toolsai.jupyter-2021.10.1101450599\out\client\extension.js:66:311862)

The problem shows when I train the CNN model. The model I've built previously bumped into this problem, but it works fine when preparing other deep learning models. What I've tried:

  1. Install anaconda, use its kernel.
  2. re-install Jupyter notebook extension and re-open vscode.
  3. run vscode as administrator.

All of them get no luck. The script has been tested and run sucessfully on Google Colab, and it's the alternative I am using now. Is there any way I can fix it?

Other information:

  1. windows 11
  2. vscode version: 1.62.3
  3. jupyter notebook extention: v2021.10.1101450599
  4. anaconda with its Python 3.9.6 version package
  5. Python(self-installed): 3.9.7

I'll provide extra information if necessary. Thanks.

CodePudding user response:

It's likely your kernel is crashing for some reason. Can you log an issue here? https://github.com/microsoft/vscode-jupyter/issues.

  • Related