RuntimePolicy#

class scikitplot.corpus.RuntimePolicy(allow_network=False)[source]#

Execution-boundary policy applied by RuntimeCorpus.

Parameters:

allow_network (bool)

allow_network: bool = False#
classmethod from_config(config)[source]#

Build from JSON/YAML-shaped data, rejecting unknown fields.

Parameters:

config (Mapping[str, Any])

Return type:

RuntimePolicy

classmethod networked()[source]#

Return a policy that explicitly permits URL source execution.

Return type:

RuntimePolicy

classmethod offline()[source]#

Return the default local-only execution policy.

Return type:

RuntimePolicy

to_dict()[source]#

Return a JSON-compatible representation.

Return type:

dict[str, Any]