Closed astrojuanlu closed 9 months ago
@astrojuanlu Thanks for picking this up.
This is extracted from the README
Limitation ... If you stick with this project structure without transitioning to a full project, you will only be able to use Kedro’s library components such as the DataCatalog, Node and Pipeline manually. You won’t be able to use features available in a full Kedro project, including project-based CLI commands such as kedro run.
This included kedro jupyter
, as we also suggest the users launch the notebook with jupyter notebook
instead of the kedro
command.
I do realize this is a bit awkward, but I don't think adding the pyproject.toml
to make it a full project is the correct approach since we want to make it standalone instead of a full Python package.
Thanks @noklam for the extra context (well, and also for pasting the README I should have, errr, read).
Maybe we can work on this from a different angle. Given that the kedro.ipython
extension purpose is to give easy access to catalog, context, pipelines and session, would it be possible for it to work without metadata? I guess the only missing bit would be the Kedro session.
Otherwise, let's just turn this issue into a docs issue so that we can adapt this sentence or add a warning around it:
@astrojuanlu
I think the kedro.ipython also need a full Kedro project to work with, but maybe there is something we can work around.
I am going to give this a closer look while I work on the kedro jupyter-init command.
Needs to be taken into account for the user journey where users incrementally onboard to Kedro.
Answering the question earlier:
pyproject.toml
, in fact none of the "Kedro Project commands" is available.%reload_kedro
also won't work because pyproject.toml
is neededWe removed this starter right?
It got archived in #184 indeed
Description
As per title.
pyproject.toml
with the Kedro metadata is missing, which leads to some subcommands not being available, for examplekedro jupyter
:https://github.com/kedro-org/kedro/blob/116ddd015e81d2a6930a0dfbe83e630e526634f4/kedro/framework/cli/cli.py#L172-L173
Context
I was trying to use the
standalone-datacatalog
from Jupyter to have a minimal Kedro setup from a notebook, but found that thekedro.ipython
extension was not loading.Steps to Reproduce
kedro new -s standalone-datacatalog
kedro jupyter notebook
Expected Result
kedro jupyter
works for all starters.Actual Result
Your Environment
pip show kedro
orkedro -V
): 0.18.4python -V
): 3.10.9