write_config

nbreport.userconfig.write_config(config, path=None)

Write the configuration data to a YAML file

Parameters:
config : ruamel.yaml.comments.CommentedMap

The configuration data, as a native ruamel.yaml map type.

path : str or pathlib.Path, optional

An optional, user-provided, override of the default configuration file path. The default path is ~/.nbreport.yaml.