-
Notifications
You must be signed in to change notification settings - Fork 915
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
Add support for %load_ext kedro #4406
Conversation
Signed-off-by: ravi_kumar_pilla <[email protected]>
Signed-off-by: ravi_kumar_pilla <[email protected]>
Signed-off-by: ravi_kumar_pilla <[email protected]>
Signed-off-by: ravi_kumar_pilla <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good. Can you provide some steps on how to test it manually?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm it works!
$ uv run ipython
...
In [1]: %load_ext kedro
[01/14/25 15:47:45] INFO Using '/Users/juan_cano/Projects/QuantumBlackLabs/Kedro/kedro/kedro/framework/project/rich_logging.yml' as logging configuration. __init__.py:270
INFO Registered line magic '%reload_kedro' __init__.py:61
INFO Registered line magic '%load_node' __init__.py:63
Signed-off-by: ravi_kumar_pilla <[email protected]>
…to feat/load_ext
Signed-off-by: ravi_kumar_pilla <[email protected]>
Signed-off-by: ravi_kumar_pilla <[email protected]>
Signed-off-by: ravi_kumar_pilla <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it and it works well 👍
Description
Resolves #4063
Development notes
load_ipython_extension
function inkedro/__init__.py
to make kedro available as ipython extimportlinter
to ignore missing contractsQA notes
ipython
in the terminal%load_ext kedro
to check if kedro is available as ipython extension.kedro
should be recognized as ipython extension and it should load other magic methods like (%reload_kedro, %load_node)Developer Certificate of Origin
We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a
Signed-off-by
line in the commit message. See our wiki for guidance.If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.
Checklist
RELEASE.md
file