Skip to content

Matplotlib is not listed as dependency #166

@Benjamin2107

Description

@Benjamin2107

When trying to plot something without a filename, prov tries to plot it using matplotlib. However, matplotlib is not listed as a dependency.

Since pydot is listed as a normal dependency, i would also put it there:

dependencies = [
    "networkx>=2.0",
    # Supporting graphic outputs (e.g. PNG, SVG, PDF) - a local graphviz is required
    "pydot>=1.2.0",
    "matplotlib>=3.9.0",
    "python-dateutil>=2.2",  # TODO: is this really needed?
]

However. I really liked the way it was handled in version 2.0.1 of prov with an optional dot section. As long as you don't need any plot, you also don't need to install it. This would look like this:

[project.optional-dependencies]
rdf = [
    "rdflib>=4.2.1,<7",
]
xml = [
    "lxml>=3.3.5",
]
dot = [
    # Supporting graphic outputs (e.g. PNG, SVG, PDF) - a local graphviz is required
    "pydot>=1.2.0",
    "matplotlib>=3.9.0",
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions