Skip to content

Commit

Permalink
Update docs for programmatic kedro run (kedro-org#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymilne authored Oct 25, 2021
1 parent 5402c71 commit 65de36b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/source/04_kedro_project_setup/03_session.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ The following code creates a `KedroSession` object as a context manager and runs

```python
from kedro.framework.session import KedroSession
from kedro.framework.startup import bootstrap_project
from pathlib import Path

with KedroSession.create("<your-kedro-project-package-name>") as session:
metadata = bootstrap_project(Path.cwd())
with KedroSession.create(metadata.package_name) as session:
session.run()
```

Expand Down

0 comments on commit 65de36b

Please sign in to comment.