Skip to content
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

Show pipelines in interactive editors automatically #4498

Open
astrojuanlu opened this issue Feb 19, 2025 · 1 comment
Open

Show pipelines in interactive editors automatically #4498

astrojuanlu opened this issue Feb 19, 2025 · 1 comment
Labels
Issue: Feature Request New feature or improvement to existing feature

Comments

@astrojuanlu
Copy link
Member

Description

After kedro-org/kedro-viz#1993 is addressed, it would be cool to go 1 step further and let users display the pipeline without having to explicitly import kedro_viz:

In [2]: pipeline
[Just show Viz]

(not on IPython, but on web-based notebooks)

Context

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

To simplify interactive creation of pipelines in notebooks

Possible Implementation

Something like

def _repr_html_(self):
    from kedro_viz.integrations.notebook import NotebookVisualizer

    return NotebookVisualizer(self).generate_html()

But the exact implementation depends on the NotebookVisualizer affordances. Also, some control over the width and height should be in place so that the area is small by default, see

kedro-org/kedro-viz#2241 (comment)

Docs on _repr_html_:

Unclear whether this works on marimo 🤔

Possible Alternatives

@astrojuanlu astrojuanlu added the Issue: Feature Request New feature or improvement to existing feature label Feb 19, 2025
@datajoely
Copy link
Contributor

This would be super cool! I wonder if we should try and default to light mode if we know people are in a classic jupyter / collab with default styles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Feature Request New feature or improvement to existing feature
Projects
Status: No status
Development

No branches or pull requests

2 participants