NCAR / VAPOR

VAPOR is the Visualization and Analysis Platform for Ocean, Atmosphere, and Solar Researchers
https://www.vapor.ucar.edu/
BSD 3-Clause "New" or "Revised" License
179 stars 49 forks source link

Allow use of arbitrary python environments in the python engine #3481

Open davidedelvento opened 1 year ago

davidedelvento commented 1 year ago

Is your feature request related to a problem?

I would like to use VAPOR's python engine to do stuff that require me to import many modules.

Describe the solution you'd like.

I might be able to do so today by placing all the relevant files in the VAPOR/share/python directory. Would that work? Even if it does, it would be unscalable if the various modules become many (which they usually do pretty quickly, in python).

Instead, if the python engine could be initialized with an arbitrary python (or conda) virtualenv that would be awesome.

sgpearse commented 1 year ago

Hi @davidedelvento - Just to be clear, this is regarding VAPOR's internal python engine that is used to derive new variables in the GUI, correct? Not the recently released Python API?

davidedelvento commented 1 year ago

Yes, correct, that is what I am thinking (however I am also independently and separately thinking of using the Python API for this reason, but VAPOR's internal python engine would be better for this goal)

Thanks!