[KEP-2] Support user-injectable node preview functions #5309
Closed
ravi-kumar-pilla
started this conversation in
Kedro Enhancement Proposals
Replies: 1 comment
-
|
This proposal will be implemented in the next sprint. Please follow - #5317 for the implementation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
What are we trying to do?
Enable Kedro nodes to expose user-defined preview functions that allow visualization of complex, non-dataset objects directly in Kedro-Viz or other plugins.
The primary goal is to create an experimental feature that provides extensible preview mechanism for a kedro node while maintaining backward compatibility.
What this is NOT
Current Limitations
Currently, Kedro plugins (e.g., Kedro-Viz) can only preview standard dataset formats through the existing dataset preview system. Complex objects like:
...cannot be visualized directly.
Proposed Approach
Core Design
Based on the requirements from Issue #5190, the implementation will:
Nodedefinitionnode()when the user passes preview_fn)Technical Architecture
This feature will:
preview_fnparameter toNodedefinition that takes a callable which returnsPreviewPayloadcontract.node.preview()API for programmatic accessMore info can be found in Appendix A
Key Features
node.preview()API for external tools and debuggingPotential Drawbacks
Who cares?
ML Engineers & Data Scientists:
Graph/Network Analysts:
Business Users:
DevOps/Platform Teams:
Expected Improvements
Risks
Timeline
~ 1.5 weeks
Appendix A: Proposed API Changes
Preview Function Parameter:
Appendix B. Optional Design Sketch
Appendix C: Optional Rejected Designs
NodePreview Instance:
kedro.pipeline.node.NodeSimple examples showing args/kwargs support:
Decorator-Based:
Beta Was this translation helpful? Give feedback.
All reactions