Comment on page
Setting Verta Config for the Python client
When the
Client
is instantiated, it will look for a file called verta_config.json
or verta_config.yaml
in the following locations—in order—using the first one it finds:- 1.the current directory
- 2.parent directories, recursively
- 3.
$HOME/.verta/
Defining a config file like this:
verta_config.yaml
email: "[email protected]"
dev_key: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
host: "app.verta.ai"
workspace: "My Workspace"
project: "My Project"
experiment: "My Experiment"
allows you go directly from instantiating a client to working with your
ExperimentRun
without needing to explicitly set the project or experiment in your code:workflow.py
from verta import Client
client = Client()
run = client.set_experiment_run("New Run")
# setting email from config file
# setting dev_key from config file
# setting host from config file
# connection successfully established
# setting experiment from config file
# setting project from config file
# set existing Project: My Project from workspace: My Workspace
# set existing Experiment: My Experiment
# created new ExperimentRun: New Run
Last modified 1yr ago