-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document python version policies and other small doc updates. #2139
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,16 @@ If you haven't installed Kedro {doc}`follow the documentation to get set up<kedr | |
We recommend that you use the same version of Kedro that was most recently used to test this tutorial (0.19.0). To check the version installed, type `kedro -V` in your terminal window. | ||
``` | ||
|
||
Once you have installed Kedro, you can install Kedro-viz | ||
|
||
```bash | ||
pip install kedro-viz | ||
``` | ||
|
||
```{note} | ||
[Kedro Viz](https://github.com/kedro-org/kedro-viz) supports all Python versions that are actively maintained by the CPython core team. When a [Python version reaches end of life](https://devguide.python.org/versions/#versions), support for that version is dropped from Kedro-viz. This is not considered a breaking change. | ||
``` | ||
|
||
In your terminal window, navigate to the folder you want to store the project. Generate the spaceflights tutorial project with all the code in place by using the [Kedro starter for the spaceflights tutorial](https://github.com/kedro-org/kedro-starters/tree/main/spaceflights-pandas): | ||
|
||
|
||
|
@@ -29,25 +39,15 @@ The next step is optional, but useful to check that all is working. Run the full | |
```bash | ||
kedro run | ||
``` | ||
Kedro-Viz provides stats related to datasets under the metadata panel | ||
|
||
![](./images/pipeline_dataset_stats.png) | ||
|
||
These stats are generated by hooks. If you have Kedro-Viz installed and execute `kedro run`, the hooks will generate the stats by default. To disable this, you can disable Kedro-Viz hooks in the settings file of your project. | ||
|
||
```{note} | ||
Starting from Kedro-Viz 9.2.0, the dataset stats file `stats.json` will be moved to `.viz` directory at the root of your Kedro project in-case you have `kedro-viz` installed and had not disabled hooks for `kedro-viz` plugin. | ||
``` | ||
|
||
To start Kedro-Viz, type the following into your terminal from the project directory: | ||
|
||
```bash | ||
kedro viz run | ||
``` | ||
|
||
```{important} | ||
The former `kedro viz` command used here is now deprecated with the release of Kedro-Viz 7.0.0. | ||
`kedro viz run` is now the new way to run the tool. | ||
```{note} | ||
You can also type `kedro viz` to start Kedro-viz | ||
``` | ||
|
||
The command opens a browser tab to serve the visualisation at `http://127.0.0.1:4141/`. | ||
|
@@ -63,6 +63,16 @@ If a visualisation panel opens up and a pipeline is not visible, refresh the vie | |
|
||
To exit the visualisation, close the browser tab. To regain control of the terminal, enter `^+c` on Mac or `Ctrl+c` on Windows or Linux machines. | ||
|
||
Kedro-Viz provides stats related to datasets under the metadata panel | ||
|
||
![](./images/pipeline_dataset_stats.png) | ||
|
||
These stats are generated by hooks. If you have Kedro-Viz installed and execute `kedro run`, the hooks will generate the stats by default. To disable this, you can disable Kedro-Viz hooks in the settings file of your project. | ||
|
||
```{note} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Starting from Kedro-Viz 9.2.0, the dataset stats file `stats.json` will be moved to `.viz` directory at the root of your Kedro project in-case you have `kedro-viz` installed and had not disabled hooks for `kedro-viz` plugin. | ||
``` | ||
|
||
## Visualise a Kedro project without installing project dependencies | ||
|
||
You can use the experimental `--lite` flag to visualise your pipelines without installing Kedro project dependencies. Add the flag to the command you use to start Kedro-Viz: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one makes it wrapped around the code block. Is it intended?
Do we not want it to be in the "note block" instead?
> **Note:** This is a note block in a Markdown file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't render correctly there but it does here - https://kedro--2139.org.readthedocs.build/projects/kedro-viz/en/2139/kedro-viz_visualisation.html