Re:We're Leaving Kubernetes
by ctippett on Monday November 04, 2024 @12:25PM
(#42043824)
I'm not going to second-guess what works for you, but Python makes it so easy to work with an ephemeral environment.
[ Parent
| on HN ]
Yeah, I know. But then you have to make sure that your IDE is using the correct environment, that the notebook is using the correct environment, that the debugger is using the correct environment.
It's trivial to setup a venv, but sometimes it's just not worth it for me.
This is one of the main reasons I tell people not to use VSCode. The people most likely to use it are juniors and people new to python specifically, and they're the most likely to fall victim to 'but my "IDE" says it's running 3.8 with everything installed, but when I run it from my terminal it's a different python 3.8'
I watched it last week. With 4 (I hope junior) Devs in a "pair programming" session that forced me to figure out how VSCode does virtual envs, and still I had to tell them like 3 times "stop opening a damn new terminal, it's obviously not setup with our python version, run the command inside the one that has the virtual env activated".
Re:We're Leaving Kubernetes
by fastasucan on Monday November 04, 2024 @04:36PM
(#42046228)
Weird, in my experience vscode makes it very clear by making you explicitly choose a .venv when running or debugging.
When it comes to opening a new terminal, you would have the exact same problem by... running commands in a terminal, cant see how vscode related that is.