Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session cannot generate requests on displaying invalid code #7190

Closed
CGHolm opened this issue Aug 18, 2021 · 2 comments
Closed

Session cannot generate requests on displaying invalid code #7190

CGHolm opened this issue Aug 18, 2021 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@CGHolm
Copy link

CGHolm commented Aug 18, 2021

Expected behaviour

Running these:

import numpy as np


N = 100
L = np.random.random((N, N))
A = np.identity(N) - 0.1* (np.identity - L)

A

Should print a python error due to this operation: (np.identity - L).

Actual behaviour

Ι get the following error:

Error: Session cannot generate requests
Error: Session cannot generate requests
at w.executeCodeCell (c:\Users\chris\.vscode\extensions\ms-toolsai.jupyter-2021.8.1236758218\out\client\extension.js:90:327199)
at w.execute (c:\Users\chris\.vscode\extensions\ms-toolsai.jupyter-2021.8.1236758218\out\client\extension.js:90:326520)
at w.start (c:\Users\chris\.vscode\extensions\ms-toolsai.jupyter-2021.8.1236758218\out\client\extension.js:90:322336)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

Steps to reproduce:

Run the above python code in three cells.

@CGHolm CGHolm added the bug Issue identified by VS Code Team member as probable bug label Aug 18, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Aug 18, 2021

Thanks for the bug.

I can't seem to repro the issue. I get this:

image

My only guess is that your version of numpy or ipykernel is crashing the kernel with that code.

My versions are these:

image

What versions do you have?

@rchiodo rchiodo added info-needed Issue requires more information from poster kernel-crash and removed needs-triage labels Aug 18, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Aug 30, 2021

Please reopen if you can provide the information. Thanks.

@rchiodo rchiodo closed this as completed Aug 30, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants