kedro-org / kedro-viz

Visualise your Kedro data and machine-learning pipelines and track your experiments.
https://demo.kedro.org
Apache License 2.0
646 stars 106 forks source link

Disable experiment tracking and publishing for static build #1813

Open sbrugman opened 3 months ago

sbrugman commented 3 months ago

Description

When serving a project statically via kedro viz build, I would like to turn off unused features:

Context

Why is this change important to you? How would you use it? How can it benefit other users?

Possible Implementation

(Optional) Suggest an idea for implementing the addition or change.

Possible Alternatives

(Optional) Describe any alternative solutions or features you've considered.

Checklist

astrojuanlu commented 3 months ago

Hi @sbrugman, thanks for opening this issue. Another comment by @datajoely in a similar vein:

As a user of the react component I want to disable both left and right sidebars since I intend to use this as an embedded element with a narrow viewport.

You might be aware that we're considering dropping experiment tracking altogether #1624

Having said that, this goes a bit beyond exp tracking, because you also mentioned other features you want to turn off. So let me share my thoughts about what you describe here.

There's two ways to look at this feature request: additive or subtractive.

I am personally much more interested in "progressive enhancement" and modularity than in "graceful degradation".

rashidakanchwala commented 3 months ago

Currently hosted Kedro-Viz doesn't have any of the options you listed actually. So I am a bit confused

Screenshot 2024-03-19 at 11 35 18
rashidakanchwala commented 3 months ago

@sbrugman -- can u clarify a bit more?

sbrugman commented 2 months ago

Latest release shows the experiment tracking (build/index.html):

Screenshot 2024-04-11 at 11 52 27
kedro viz build

kedro-viz 8.0.1 python 3.10 kedro, version 0.19.2

Did anything change in main since then? I've tried installing from source using:

pip install https://github.com/kedro-org/kedro-viz/archive/refs/heads/main.zip#subdirectory=package

However, this complains about missing files:

     FileNotFoundError: [Errno 2] No such file or directory:                                                                                                          
                             '.../lib/python3.10/site-packages/kedro_viz/html/index.html'    
rashidakanchwala commented 2 months ago

interesting, are you trying to run this locally?? Our current checks in Kedro-Viz involve disabling Experiment Tracking and the Publish and Share pipeline when it detects that Kedro-Viz is not running locally but is hosted

astrojuanlu commented 2 months ago

I've tried installing from source using:

This is the topic of https://github.com/kedro-org/kedro-viz/issues/1611

astrojuanlu commented 1 day ago

See also https://github.com/kedro-org/kedro-viz/discussions/1943