News for hackers. Stuff that matters.
Re:PEP 704 – Require virtual environments by default for pac... by bitcurious on Wednesday March 15, 2023 @10:02AM (#35168478)
>It should just work when I navigate to the project folder.

You still need to do the setup when you create the project, but once you do you can use direnv[0] to activate/deactivate the venv[1]. I target GCP often, so I have direnv switch over to the correct project [3] also.

[0] https://direnv.net/

[1] https://stackabuse.com/managing-python-environments-with-dir...

[2] https://stackoverflow.com/questions/56781493/gcloud-is-it-po...

Re:PEP 704 – Require virtual environments by default for pac... by rtpg on Wednesday March 15, 2023 @10:44AM (#35169045)
Going to second direnv. It + pyenv really resolved so many of my Python issues
Re:PEP 704 – Require virtual environments by default for pac... by Fatnino on Wednesday March 15, 2023 @11:01PM (#35177625)
I have a couple lines in my bashrc that activate the local venv when I cd into a directory.

I find myself doing `cd .` a lot.