You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncomment the section that is right (remove the HTML comment wrapper).
5
+
-->
6
+
7
+
<!--
8
+
### Highlights ✨
9
+
10
+
- A bullet item for the Highlights ✨ category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
11
+
12
+
-->
13
+
<!--
14
+
### Removed
15
+
16
+
- A bullet item for the Removed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
17
+
18
+
-->
19
+
### Added
20
+
21
+
- Kedro integration function `datasets_from_catalog` can handle dataset factories for `kedro>=0.19.9`. ([#1001](https://github.com/mckinsey/vizro/pull/1001))
22
+
23
+
### Changed
24
+
25
+
- Bump optional dependency lower bound to `kedro>=0.19.0`. ([#1001](https://github.com/mckinsey/vizro/pull/1001))
26
+
27
+
<!--
28
+
### Deprecated
29
+
30
+
- A bullet item for the Deprecated category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
31
+
32
+
-->
33
+
34
+
<!--
35
+
### Security
36
+
37
+
- A bullet item for the Security category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX. ([#1](https://github.com/mckinsey/vizro/pull/1))
Copy file name to clipboardexpand all lines: vizro-core/docs/pages/explanation/faq.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ Any attempt at a high-level explanation must rely on an oversimplification that
95
95
96
96
All are great entry points to the world of data apps. If you prefer a top-down scripting style, then Streamlit is a powerful approach. If you prefer full control and customization over callbacks and layouts, then Dash is a powerful approach. If you prefer a configuration approach with in-built best practices, and the potential for customization and scalability through Dash, then Vizro is a powerful approach.
97
97
98
-
For a more detailed comparison, it may help to visit the introductory articles of[Dash](https://medium.com/plotly/introducing-dash-5ecf7191b503), [Streamlit](https://towardsdatascience.com/coding-ml-tools-like-you-code-ml-models-ddba3357eace) and [Vizro](https://quantumblack.medium.com/introducing-vizro-a-toolkit-for-creating-modular-data-visualization-applications-3a42f2bec4db), to see how each tool serves a distinct purpose, and could be the best tool of choice.
98
+
For a more detailed comparison, it may help to read introductory articles about[Dash](https://medium.com/plotly/introducing-dash-5ecf7191b503), [Streamlit](https://blog.streamlit.io/streamlit-101-python-data-app/) and [Vizro](https://quantumblack.medium.com/introducing-vizro-a-toolkit-for-creating-modular-data-visualization-applications-3a42f2bec4db), to see how each tool serves a distinct purpose.
99
99
100
100
## How does Vizro compare with Python packages and business intelligence (BI) tools?
Copy file name to clipboardexpand all lines: vizro-core/docs/pages/user-guides/kedro-data-catalog.md
+54-8
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ pip install vizro[kedro]
12
12
13
13
## Use datasets from the Kedro Data Catalog
14
14
15
-
`vizro.integrations.kedro` provides functions to help generate and process a [Kedro Data Catalog](https://docs.kedro.org/en/stable/data/index.html). Given a Kedro Data Catalog `catalog`, the general pattern to add datasets into the Vizro data manager is:
15
+
`vizro.integrations.kedro` provides functions to help generate and process a [Kedro Data Catalog](https://docs.kedro.org/en/stable/data/index.html). It supports both the original [`DataCatalog`](https://docs.kedro.org/en/stable/data/data_catalog.html) and the more recently introduced [`KedroDataCatalog`](https://docs.kedro.org/en/stable/data/index.html#kedrodatacatalog-experimental-feature). Given a Kedro Data Catalog `catalog`, the general pattern to add datasets into the Vizro data manager is:
16
16
17
17
```python
18
18
from vizro.integrations import kedro as kedro_integration
@@ -39,20 +39,21 @@ The full code for these different cases is given below.
39
39
from vizro.integrations import kedro as kedro_integration
for dataset_name, dataset in kedro_integration.datasets_from_catalog(catalog).items():
70
-
data_manager[dataset_name] = dataset
70
+
for dataset_name, dataset_loader in kedro_integration.datasets_from_catalog(catalog).items():
71
+
data_manager[dataset_name] = dataset_loader
72
+
```
73
+
74
+
### Use dataset factories
75
+
76
+
To add datasets that are defined using a [Kedro dataset factory](https://docs.kedro.org/en/stable/data/kedro_dataset_factories.html), `datasets_from_catalog` needs to resolve dataset patterns against explicit datasets. Given a Kedro `pipelines` dictionary, you should specify a `pipeline` argument as follows:
1. You can specify the name of your pipeline, for example `pipelines["my_pipeline"]`, or even combine multiple pipelines with `pipelines["a"] + pipelines["b"]`. The Kedro `__default__` pipeline is what runs by default with the `kedro run` command.
83
+
84
+
The `pipelines` variable may have been created the following ways:
85
+
86
+
1. Kedro project path. Vizro exposes a helper function `vizro.integrations.kedro.pipelines_from_project` to generate a `pipelines` given the path to a Kedro project.
87
+
1.[Kedro Jupyter session](https://docs.kedro.org/en/stable/notebooks_and_ipython/kedro_and_notebooks.html). This automatically exposes `pipelines`.
88
+
89
+
The full code for these different cases is given below.
90
+
91
+
!!! example "Import a Kedro Data Catalog with dataset factories into the Vizro data manager"
92
+
=== "app.py (Kedro project path)"
93
+
```python
94
+
from vizro.integrations import kedro as kedro_integration
0 commit comments