14
submitted 1 week ago by neme@lemm.ee to c/python@programming.dev
top 14 comments
sorted by: hot top controversial new old
[-] Reptorian@programming.dev 1 points 1 day ago

Pass. I rather use PyCharm for Python development.

[-] blindbunny@lemmy.ml 9 points 1 week ago

Cool, I'm still not gonna use that garbage

[-] BigMikeInAustin@lemmy.world 4 points 1 week ago

Yup. Blog should have just been called "AI in Python extension."

[-] ALERT@sh.itjust.works 2 points 1 week ago

What's your IDE of choice?

[-] blindbunny@lemmy.ml 1 points 1 week ago

Usually whatever is installed kate kDevelop Geany but when I worked for a big fancy company I'd use IntelliJ IDEA

[-] ALERT@sh.itjust.works 3 points 1 week ago

I use PyCharm and cannot stand VSCode for Python development. It's just too obsolete in UX.

Anyone have a good solution for projects with multiple sub-projects? My structure is like this:

  • root - no venv
    • project_a
      • .venv
      • app/
    • project_b
      • .venv
      • app/

To get completions to work, I need to manually switch venvs since each uses imports like app.a.b.c. But I frequently work on multiple projects at the same time, so I'd like it to switch venvs based on where the file lives.

Anyone know if that's possible? I'm probably missing something obvious since this seems like a fairly common thing.

[-] eager_eagle@lemmy.world 4 points 1 week ago* (last edited 1 week ago)

Multi-root workspaces will let you choose the interpreter for each directory;

I think that's the best way to make it work if you want to have more than one project in the same VS Code instance.

[-] FizzyOrange@programming.dev 2 points 1 week ago

You could use uv workspaces. It means you only have one venv though.

A VSCode multi-root workspace might also work.

[-] dangling_cat@lemmy.blahaj.zone 2 points 1 week ago

Look into modern package management system like poetry or UV ;3

I use poetry and that manages my venvs. I just want VSCode to select the right one based on where the file is.

[-] nutcase2690@lemmy.dbzer0.com 1 points 1 week ago

I can't say that I've tried this for python, but have you looked into multi-root workspaces? That is how my current C++ and cmake setup performs, so Python might have something similar.

I'll check it out, thanks for the tip. I don't know much about VSCode, I'm more of a vim person, but I've been using it more and more at work.

[-] Crumbgrabber@lemm.ee -1 points 1 week ago

You have my upvote good sir.

this post was submitted on 07 Apr 2025
14 points (81.8% liked)

Python

7010 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS