-
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
pipeline.pipeline
confuses IDE autocompletion
#2805
Comments
Added 0.19 tag to prompt for discussion in case we need to move stuff around. (It's annoying Github project change doesn't allow comment🥲) |
Discussed in backlog grooming. Will keep this as a low priority for the 0.19 release and see if we have time to fit this in. If we end up don't want to break anything in 0.19, we should still update the starters to avoid these syntax highlight problem by importing from |
There's more confusion: kedro-org/kedro-viz#1522 (comment) Some users are creating the pipelines with the I think we should tackle this and #2723 at once. |
I just saw this code snippet in someone else's code: my_pipeline = Pipeline([
Node(filter_func, "df_input", "df_filtered"),
Node(actual_func, "df_filtered", "df_output"),
]) is there a reason why we are using the |
Description
We import
pipeline
in our starter and this confuse IDE like VSCode, as it thinkspipeline
is a module instead of thepipeline
function.from kedro.pipeline import Pipeline, node, pipeline
Changing it to the following avoid the issue.
from kedro.pipeline.modular_pipeline import pipeline
The problem here is IDE confuse
kedro.pipeline.modular_pipeline
askedro.pipeline.pipeline
module.Context
Solution 1:
pipeline
definition (Or what's the difference between pipeline and modular pipeline? Will be a breaking change if we move modules)Solution 2:
modular_pipeline
explicitly, should we keep the shortcut in this case?Solution 3:
Expected Result
Actual Result
Your Environment
pip show kedro
orkedro -V
):python -V
):The text was updated successfully, but these errors were encountered: