This message was deleted.
# ask-anything
s
This message was deleted.
e
Yes, you can use two env files (e.g.
env.yaml
and
env.prod.yaml
), then you can switch them at runtime. More in the docs. - does this solve the issue?
l
yea that works
something like this where you can just pass an array to parameterize over could be nice but multiple env files will do the job
e
you might be looking for the grid feature then
l
oh sweet
that looks way more like what I wanted
meerkat 1
e
great!
l
can I parameterize outputs based on the grid
e
yes, we added that in version 0.17.2 so make sure you have that or higher. you need to use
[[
]]
placeholders
Copy code
tasks:
  - source: random-forest.py
    name: random-forest-
    product: 'n_estimators=[[n_estimators]]/criterion=[[criterion]].html'
    grid:
        n_estimators: [5, 10, 20]
        criterion: [gini, entropy]
l
perfect
is it possible to pass the db client to a py file?
I can import it manually but was wondering if ploomber could help with that
e
Not at the moment. We got a similar request so we'll work on it soon. But right now you need to import it manually
l
sounds good thank you