Kedro-Viz helps visualise Kedro data and analytics pipelines
Project description
Kedro-Viz
develop |
master |
---|---|
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
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.
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.
If you are using a remote server machine or a docker container, run the following command instead.
kedro viz --host 0.0.0.0
You can change the port with --port
option if needed.
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:
-
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 markedgitignore
. -
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file kedro-viz-3.0.0.tar.gz
.
File metadata
- Download URL: kedro-viz-3.0.0.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ddbc7dd7c7dbfec9d79b56f051bcdb78fc536bef0199201fd3b4779fbe65d4a |
|
MD5 | 2653ea4e9484667e237ef770edcc1a71 |
|
BLAKE2b-256 | 4c66fca6d99ff026463ebf1373352ce81ab42db1fcc0cd63129e7300aa34abbe |
File details
Details for the file kedro_viz-3.0.0-py3.6.egg
.
File metadata
- Download URL: kedro_viz-3.0.0-py3.6.egg
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdfefdbfb907118649b19821b48f83978b953875d18e0dc1623090f4b3c9377 |
|
MD5 | 00854c22d9d231e6d442cea0a8e2f28c |
|
BLAKE2b-256 | f252326ac821fa36dfeb3e46c5859bf31425c762a35f4fde8796b5860039bae0 |
File details
Details for the file kedro_viz-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: kedro_viz-3.0.0-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac551106c3525104485e831b59e668609b08739193587c197b953495df7913b4 |
|
MD5 | aa58e2f7a9fc5c60cef754c3a9538785 |
|
BLAKE2b-256 | 67c8d43054527042d843eb56e6b5b50afd4645a920e4fbba6fe5a2d584c280ae |