Health Checks#

Conda doctor can be extended with the health_checks plugin hook. Write new health checks using the health_checks plugin hook, install the plugins you wrote and they will run every time conda doctor command is run. The action function is where you specify the code you want to be executed with conda doctor.

class CondaHealthCheck#

Return type to use when defining conda health checks plugin hook.


Register health checks for conda doctor.

This plugin hook allows you to add more "health checks" to conda doctor that you can write to diagnose problems in your conda environment. Check out the health checks already shipped with conda for inspiration.


from conda import plugins

def example_health_check(prefix: str, verbose: bool):
    print("This is an example health check!")

def conda_health_checks():
    yield plugins.CondaHealthCheck(