Is there a page that has more information about ho...
# ask-community
j
Is there a page that has more information about how to declare
workspace.yaml
? I see an example for loading multiple python environments in dagit but the example only shows how to do it with
python_file
, I'd like something like this for
python_module
when using
python_file
and that declaration has multiple sub-items, it seems like
relative_path
is used instead. Not sure what the equivalent would be for modules
j
I have but it doesn't show an example on how to declare multiple fields for a
python_module
. I want the equivalent of this but for modules:
Copy code
load_from:
  - python_file:
      relative_path: path/to/dataengineering_spark_team.py
      location_name: dataengineering_spark_team_py_38_virtual_env
      executable_path: venvs/path/to/dataengineering_spark_team/bin/python
  - python_file:
      relative_path: path/to/team_code_location.py
      location_name: ml_team_py_36_virtual_env
      executable_path: venvs/path/to/ml_tensorflow/bin/python
I guess the specific question is what additional field would I declare the module in? Whatever is equivalent to
relative_path
but for modules.
Seems like I got this to work with
module_name
declared under a
python_module
. Is there a page that summarizes the valid fields for the different types of ways to load a code location?