Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python interpreter citing zen of python in the terminal window

I run vscode version 1.65.2. Today it started citing the whole "The Zen of Python" in the terminal window every time I run a python script in the debugger.

EDIT: It turns out that it is the python interpreter that does it, not vscode. The problem apparently came after I updated ipykernel to version 6.11.0. I run python version 3.9.1 on Windows.

How can I turn it off?

I havent been able to find an answer to this anywhere.

like image 285
tbj141 Avatar asked Mar 04 '26 13:03

tbj141


1 Answers

It turned out that an import statement had found its way into my code: "import this as d", and removing it solved the problem. It is a mystery how it ended up there, I certainly haven't put it there knowingly. But problem solved!

like image 63
tbj141 Avatar answered Mar 07 '26 07:03

tbj141



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!