-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
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",
]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels