This script creates an IPython extension to load Kedro-related variables in local scope.
From __init__.py
:
Function | load |
Main entry point when %load_ext kedro.ipython is executed, either manually or automatically through kedro ipython or kedro jupyter lab/notebook . IPython will look for this function specifically. See https://ipython.readthedocs.io/en/stable/config/extensions/index.html... |
Function | magic |
The %reload_kedro IPython line magic. See https://kedro.readthedocs.io/en/stable/notebooks_and_ipython/kedro_and_notebooks.html#reload-kedro-line-magic # pylint: disable=line-too-long for more. |
Function | reload |
Function that underlies the %reload_kedro Line magic. This should not be imported or run directly but instead invoked through %reload_kedro. |
Variable | logger |
Undocumented |
Function | _find |
Undocumented |
Function | _remove |
Undocumented |
Function | _resolve |
Resolve the project path to use with reload_kedro, updating or adding it (in-place) to the local ipython Namespace (local_namespace) if necessary. |
Main entry point when %load_ext kedro.ipython is executed, either manually or
automatically through kedro ipython
or kedro jupyter lab/notebook
.
IPython will look for this function specifically.
See https://ipython.readthedocs.io/en/stable/config/extensions/index.html
@magic_arguments()
@argument(
@argument(
@argument(
def magic_reload_kedro(line:
str
, local_ns: Dict[ str, Any]
= None):
(source)
¶
The %reload_kedro
IPython line magic.
See https://kedro.readthedocs.io/en/stable/notebooks_and_ipython/kedro_and_notebooks.html#reload-kedro-line-magic # pylint: disable=line-too-long
for more.
str
= None, env: str
= None, extra_params: Dict[ str, Any]
= None, local_namespace: Optional[ Dict[ str, Any]]
= None):
(source)
¶
Function that underlies the %reload_kedro Line magic. This should not be imported or run directly but instead invoked through %reload_kedro.
Optional[ str]
= None, local_namespace: Optional[ Dict[ str, Any]]
= None) -> Path
:
(source)
¶
Resolve the project path to use with reload_kedro, updating or adding it (in-place) to the local ipython Namespace (local_namespace) if necessary.
Parameters | |
path:Optional[ | the path to use as a string object |
localOptional[ | Namespace with local variables of the scope where the line magic is invoked in a dict. |
Returns | |
Path | Undocumented |