deephaven_enterprise.venv

This module allows users to dynamically inspect the virtual environment of the current worker and install additional packages in it.

get_venv_path()[source]

Returns the path to the virtual environment configured for the current worker.

Return type:

str

Returns:

str

install(packages)[source]

Installs packages into the virtual environment of the current worker using pip.

Parameters:

packages (list[str]) – the list of packages to install

Raises:

DHError – if pip is not found, or fails to install the requested packages

Return type:

None