%load_node line magic improvements #3754
Replies: 9 comments 1 reply
-
Add support for other platforms, currently only supports jupyter lab/notebook (#3510) and ipython (#3536). Consider including:
|
Beta Was this translation helpful? Give feedback.
-
Add import statement to import * from node source file - allows nodes with helper functions to be runnable in notebooks without having to go back to source files and copy paste the code over Edited by Nok below: |
Beta Was this translation helpful? Give feedback.
-
Resolve MemoryDatasets so that users don't have to add them to catalog to access them as node inputs |
Beta Was this translation helpful? Give feedback.
-
if we can use
|
Beta Was this translation helpful? Give feedback.
-
I find a couple of things to improve when I try to help an user to debug on 0.18.x
i.e. It should be valid to have a node
This will cause error because |
Beta Was this translation helpful? Give feedback.
-
Better handle of The idea is to use For example: def dummy(a,b,c, *args, **kwargs):
...
node(dummy, ["data_1", "data_2", "data_3", "dummy1","dummy2","dummy3"], ...) should translate to a = catalog.load("data_1")
b = catalog.load("data_2")
c = catalog.load("data_3")
dummy1 = catalog.load("dummy1")
dummy2 = catalog.load("dummy2")
dummy3 = catalog.load("dummy3")
args = [dummy1, dummy2, dummy3] # Noted here the name of the "dummy_x" variable are arbitrary
dummy(a, b, c, *args) |
Beta Was this translation helpful? Give feedback.
-
Consider adding |
Beta Was this translation helpful? Give feedback.
-
Currently working with it is a hassle, because of MemoryDatasets handling. It would be handy to have some improvements here:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Description
In #3510 we introduce a new line magic, aimed at improving the process of debugging Kedro projects in notebooks. This feature is experimental - this issue should be used to add suggestions for extending and improving it. Add a suggestion in the comments, or if already mentioned, bump its priority with a 👍 .
(edited by Nok)
%load_node
support full Kedro Node syntax, with better *args, **kwargs handling #3629before_node_run
,after_node_run
or document how to handle edge case if user project has hooks that mutate inputs(Copy from previous issue)
Two-way sync
Recursive definition of function body
Beta Was this translation helpful? Give feedback.
All reactions