Skip to main content

Kedro-Viz

develop master
CircleCI CircleCI

npm version PyPI version License Python Version code style: prettier

Kedro-Viz shows you how your Kedro data pipelines are structured.

With Kedro-Viz you can:

  • See how your datasets and Python functions (nodes) are resolved in Kedro so that you can understand how your data pipeline is built
  • Get a clear picture when you have lots of datasets and nodes by using tags to visualise sub-pipelines
  • Search for nodes and datasets

Kedro-Viz Pipeline Visualisation

This project was bootstrapped with Create React App, for which more complete documentation is available on the project website.

How do I install and use Kedro-Viz?

For in-depth development and usage notes, see the Contribution Guidelines.

As a Kedro Python plugin

Kedro-Viz is available as a Python plugin named kedro-viz.

The following conditions must be true in order to visualise your pipeline:

  • Your project directory must be available to the Kedro-Viz plugin.
  • You must be using a Kedro project structure with a complete Data Catalog, nodes and pipeline structure.

To install it:

pip install kedro-viz

This will install kedro as a dependency, and add kedro viz as an additional CLI command.

Kedro CLI command

To visualise your pipeline, go to your project root directory and install the project-specific dependencies by running:

kedro install

This will install the dependencies specified in requirements.txt in your Kedro environment (see the Kedro documentation for how to set up your Python virtual environment).

Finally, run the following command from the project directory to visualise your pipeline:

kedro viz

This command will run kedro_viz.server on http://127.0.0.1:4141/ which cannot be accessed from another machine.

Kedro-Viz has a number of options to customise running the visualisation:

CLI command Description
--host Host that viz will listen to. Defaults to 127.0.0.1.
--port TCP port that viz will listen to. Defaults to 4141.
--browser/--no-browser Whether to open viz interface in the default browser or not.
--load-file Path to load the pipeline JSON file
--save-file Path to save the pipeline JSON file
--pipeline Name of the modular pipeline to visualise. If not set, the default pipeline is visualised.
--env, -e Kedro configuration environment. If not specified, catalog config in local will be used.

As a JavaScript React component

Kedro-Viz is also available as an npm package named @quantumblack/kedro-viz. To install it:

npm install @quantumblack/kedro-viz

Then include it in your React application:

import KedroViz from '@quantumblack/kedro-viz';

const MyApp = () => <KedroViz data={json} />;

As a JavaScript React component, the project is designed to be used in two different ways:

  1. Standalone application

    Run npm run build to generate a production build as a full-page app. The built app will be placed in the /build directory. Data for the chart should be placed in /public/api/nodes.json because this directory is marked gitignore.

  2. React component

    Kedro-Viz can be used as a React component that can be imported into other applications. Publishing the package will run npm run lib, which compiles the source code in /src, and places it in the /lib directory.

    The React component exposes props that can be used to supply data and customise its behaviour. For information about the props, their expected prop-types and default values, see /src/components/app/index.js. For examples of the expected data input format, see the mock data examples in /src/utils/data, and compare the resulting demo.

What licence do you use?

Kedro-Viz is licensed under the Apache 2.0 License.

↑↑↓↓←→←→BA

Release files for kedro-viz 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kedro-viz 3.3.0
File Size Uploaded
kedro-viz-3.3.0.tar.gz 1.7 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for kedro-viz 3.3.0
File Interpreter ABI Platform
kedro_viz-3.3.0-py3.6.egg Legacy Egg format - - Details
kedro_viz-3.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 MB

Release files / kedro-viz-3.3.0.tar.gz

Download URL kedro-viz-3.3.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
6349a6c532caa0d9d56cbb6f9b3f61447b7104e0b9bd9549ce03c275d5457711
BLAKE2b-256 checksum
How to use checksums
cf8e179744b3906d61032bc4c653e88c2338e6291cac10ec7fee9da64a42a787
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

Release files / kedro_viz-3.3.0-py3.6.egg

Download URL kedro_viz-3.3.0-py3.6.egg
Size 1.7 MB
Tags Egg
SHA-256 checksum
How to use checksums
f11a3be45aaec76e9676ea8c442b6c65d7c6ac1311c99d799fc49f359b921fb4
BLAKE2b-256 checksum
How to use checksums
e80b5c151ed2e52542afa878672246d46f81ff5743a091ae074a0e84a891ee0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

Release files / kedro_viz-3.3.0-py3-none-any.whl

Download URL kedro_viz-3.3.0-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c31d050d4dff04ef7b85c8d14402979e3fe5a8d8bd5b0b70f22427d61c7a7ff8
BLAKE2b-256 checksum
How to use checksums
ec2fc77062986bcbeaf0f91d528239f8c851982ead09516f1418ce8b7aeb00b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

Release history Release notifications | RSS feed

12.4.0

2 release files

12.3.0

2 release files

12.2.0

2 release files

12.1.0

2 release files

12.0.0

2 release files

11.0.2

2 release files

11.0.1

2 release files

11.0.0

2 release files

10.1.0

2 release files

10.0.0

2 release files

9.2.0

2 release files

9.1.0

2 release files

9.0.0

2 release files

8.0.1

2 release files

8.0.0

2 release files

7.1.0

2 release files

7.0.0

2 release files

6.7.0

2 release files

6.6.1

2 release files

6.6.0

2 release files

6.5.0

2 release files

6.4.0

2 release files

6.3.4

2 release files

6.3.3

2 release files

6.3.2

2 release files

6.3.1

2 release files

6.3.0

2 release files

6.2.0

2 release files

6.1.1

2 release files

6.1.0

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.3.0

2 release files

5.2.1

2 release files

5.2.0

2 release files

5.1.1

2 release files

5.1.0

2 release files

5.0.1

2 release files

5.0.0

2 release files

4.7.2

2 release files

4.7.1

2 release files

4.7.0

3 release files

4.6.0

3 release files

4.5.0

3 release files

4.4.0

3 release files

4.3.1

3 release files

4.3.0

3 release files

4.2.0

3 release files

4.1.1

3 release files

4.1.0

3 release files

4.0.1

3 release files

4.0.0

3 release files

3.17.1

3 release files

3.16.0

3 release files

3.15.0

3 release files

3.14.0

3 release files

3.13.1

3 release files

3.13.0

3 release files

3.12.1

3 release files

3.11.0

3 release files

3.9.0

3 release files

3.8.1

3 release files

3.8.0

3 release files

3.7.0

3 release files

3.6.0

3 release files

3.5.1

3 release files

3.5.0

3 release files

3.4.0

3 release files

3.3.1

3 release files

This release

3.3.0 This release

3 release files

3.2.0

3 release files

3.1.0

3 release files

3.0.1

3 release files

3.0.0

3 release files

2.1.1

3 release files

2.1.0

3 release files

2.0.0

3 release files

1.0.2

3 release files

1.0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page