From d0fb16a96b46d1641d422413609b69ba58951e90 Mon Sep 17 00:00:00 2001 From: Ivan Danov Date: Mon, 6 Nov 2023 11:31:09 +0000 Subject: [PATCH] Update RELEASE.md to reflect the rebase from develop Signed-off-by: Ivan Danov --- RELEASE.md | 2 +- .../src/{{ cookiecutter.python_package }}/__main__.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index b57bab607a..f2f3474a88 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -6,6 +6,7 @@ * The new spaceflights starters, `spaceflights-pandas`, `spaceflights-pandas-viz`, `spaceflights-pyspark`, and `spaceflights-pyspark-viz` can be used with the `kedro new` command with the `--starter` flag. * Added the `--conf-source` option to `%reload_kedro`, allowing users to specify a source for project configuration. * Added the functionality to choose a merging strategy for config files loaded with `OmegaConfigLoader`. +* Improved the default template's entrypoint to allow for `IPython` and Databricks executions without separate scripts. ## Bug fixes and other changes @@ -62,7 +63,6 @@ We are grateful to every community member who made a PR to Kedro that's found it ## Major features and improvements * Allowed using of custom cookiecutter templates for creating pipelines with `--template` flag for `kedro pipeline create` or via `template/pipeline` folder. * Allowed overriding of configuration keys with runtime parameters using the `runtime_params` resolver with `OmegaConfigLoader`. -* Improved the default template's entrypoint to allow for `IPython` and Databricks executions without separate scripts. ## Bug fixes and other changes * Updated dataset factories to resolve nested catalog config properly. diff --git a/kedro/templates/project/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.python_package }}/__main__.py b/kedro/templates/project/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.python_package }}/__main__.py index d1fede652a..dd5721b35f 100644 --- a/kedro/templates/project/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.python_package }}/__main__.py +++ b/kedro/templates/project/{{ cookiecutter.repo_name }}/src/{{ cookiecutter.python_package }}/__main__.py @@ -41,9 +41,10 @@ def main(*args, **kwargs): package_name = Path(__file__).parent.name configure_project(package_name) run = _find_run_command(package_name) + interactive = not hasattr(sys, 'ps1') kwargs["standalone_mode"] = not interactive - + run(*args, **kwargs)