From 0dc5e63a5419f0fdd366efc3e8a4e1d8d6ecd0c6 Mon Sep 17 00:00:00 2001 From: Merel Theisen Date: Wed, 19 Oct 2022 10:34:02 +0100 Subject: [PATCH] Update docs removing mention of package_name in session.create Signed-off-by: Merel Theisen --- docs/source/extend_kedro/plugins.md | 3 +-- docs/source/kedro_project_setup/session.md | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/source/extend_kedro/plugins.md b/docs/source/extend_kedro/plugins.md index 2bad011c10..df31250500 100644 --- a/docs/source/extend_kedro/plugins.md +++ b/docs/source/extend_kedro/plugins.md @@ -106,8 +106,7 @@ from kedro.framework.session import KedroSession project_path = Path.cwd() -metadata = _get_project_metadata(project_path) -session = KedroSession.create(metadata.package_name, project_path) +session = KedroSession.create(project_path=project_path) context = session.load_context() ``` diff --git a/docs/source/kedro_project_setup/session.md b/docs/source/kedro_project_setup/session.md index 767afe2d22..5c498dde61 100644 --- a/docs/source/kedro_project_setup/session.md +++ b/docs/source/kedro_project_setup/session.md @@ -25,12 +25,12 @@ from kedro.framework.session import KedroSession from kedro.framework.startup import bootstrap_project from pathlib import Path -metadata = bootstrap_project(Path.cwd()) -with KedroSession.create(metadata.package_name) as session: +bootstrap_project(Path.cwd()) +with KedroSession.create() as session: session.run() ``` -You must tell `KedroSession` the package name of your Kedro project so it can load your settings, nodes and pipelines. Additionally, you can provide the following optional arguments in `KedroSession.create()`: +You can provide the following optional arguments in `KedroSession.create()`: - `project_path`: Path to the project root directory - `save_on_close`: A boolean value to indicate whether or not to save the session to disk when it's closed