Skip to content

config

Configuration for the package.

Classes

BaseModel

Bases: BaseModel

Base of the settings models.

Numbers are accepted for string settings (copyright_year: 2024 in a YAML file) and unknown nested keys are ignored, as with pydantic 1, so configurations written for ydata-profiling (with settings this fork removed, such as plot.dpi) still load. Unknown top-level settings are errors.

Dataset

Bases: BaseModel

Metadata of the dataset

ImageType

Bases: Enum

Format of the charts. Charts are always inline SVG.

Style

Bases: BaseModel

Attributes

theme_mode property

Colour mode of the HTML report: light, dark or auto.

accent_color property

Accent colour of the HTML report.

The first primary colour, unless a deprecated theme was selected while the primary colours were left at their defaults.

Notebook

Bases: BaseModel

When in a Jupyter notebook

Engine

Bases: BaseModel

How the lazy queries of a profile are executed.

Settings

Bases: BaseSettings

Methods:

update(updates)

A copy of these settings with updates merged in (nested dicts are merged key by key).

from_file(config_file) staticmethod

Create a Settings object from a yaml file.

Args: config_file: yaml file path Returns: Settings