404background / node-red-contrib-python-venv

Node for python virtual environment
MIT License
9 stars 3 forks source link

Creating Multiple Virtual Environments #3

Closed 404background closed 3 months ago

404background commented 6 months ago

For now, this node runs the program in a single Python virtual environment. The idea is to create multiple virtual environments and make them selectable.

FrederikPM commented 3 months ago

@404background are you currently working on this enhancement?

404background commented 3 months ago

@FrederikPM Yes, I was working on the following branch today. 3-creating-multiple-virtual-environments

I added a configuration node. I am trying with oneditsave to be able to create a new virtual environment when the configuration node is updated. image

I always use py.exe when I specify version of python. So I'm testing it so that I can also specify the version for Windows. image

I am still thinking about how to implement this. I would like to hear any opinions!

FrederikPM commented 3 months ago

I think what you are doing is makes sense. I was considering that it would be practical to handle the selection, creation, editing, and deletion of environments similarly to how @Alkarex manages server connections in his (https://github.com/alexandrainst/node-red-contrib-postgresql).

This interaction would then make sense to be reused in both the pip and venv node.