Crash only in VSCode

I managed to get a screenshot before it went off:

EDIT: In Jupyter Notebook (in VSCode) it works: