-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify documentation for matplotlib datasets #2536
Comments
I'm surprised that this works, although looking at the
Either way, this is definitely not the intended use of the dataset and I agree we should not encourage it. Let's change the docs to return the As for documentation of datasets, you're right that this is one disadvantage of the current approach. To get around the problem at the moment we just put all the docs in the class docstring, which is not great but it's ok I think. As in the github issues you mention, IMO there's more fundamental problems with |
Yep... The story for multi-repository docs is not impossible, but requires some focus: #2072 (comment) |
xref kedro-org/kedro-plugins#353 and a conversation we had in Slack: https://linen-slack.kedro.org/t/15875966/i-have-a-plot-saved-as-an-image-in-my-catalog-yml-and-the-fi#6d98204f-5d9f-497b-88df-80a23980dcfa
The fact that some datasets are meant to be write-only (hence "artifacts") is in line with the discussions we're having in #1936 (comment) |
This should not be tackled before kedro-org/kedro-plugins#353 |
Description
The documentation to visualize plots with matplotlib contains this snippet:
It's very puzzling that the node returns the
matplotlib.pyplot
state machine through theplt
variable. However, it works!The
MatplotlibWriter
documentation, on the other hand, hints that the node should return thematplotlib.figure.Figure
, which also worked an feels way more natural.If returning
pyplot
is expected, I think we should make it more clear in both places of the docs. If we want to discourage it (yes please), then we should tweak the example in the narrative docs so it returns aFigure
instead.Related: kedro-org/kedro-plugins#529.
Context
The problem with the documentation of datasets is that the actual logic lives in
_load
and_save
methods that are private and therefore not documented. I recall there are generic issues to "redesign the catalog" #1778 #1981 but I don't know if they are about this.The text was updated successfully, but these errors were encountered: