Title
#announcements
Sebastián Barrios Slight

Sebastián Barrios Slight

08/23/2022, 7:40 PM
quick newbie question: this is my first time looking at a distributed/kubernetes-based codebase. When working on the code of the different services, do you create a python virtualenv for each service?
Yannick

Yannick

08/23/2022, 8:49 PM
Excellent question! I did indeed create a virtualenv for every service. I set up
pyrightconfig.json
files in every service to configure the pyright/pylance language servers (the latter being the default language server in VSCode). This way the language server should look for a virtualenv for the particular service in the root-level
.venvs
directory, eg
.venvs/orchest-api
. Alternatively you can create one big virtualenv with the requirements of every service (since those will more or less use the same versions).
8:50 PM
The last option is definitely less involved and works perfectly fine. Hope that helps! 😎
Sebastián Barrios Slight

Sebastián Barrios Slight

08/24/2022, 4:46 PM
Thanks Yannick! Will try both approaches.
Yannick

Yannick

08/24/2022, 4:47 PM
Awesome. Looking forward to hearing what solution worked best for you 🕵️‍♂️