Skip to content

UX: Enhance the HTML displays #26595

Open

Description

@GaelVaroquaux

Describe the workflow you want to enable

When I interact when non-advanced users a recurrent difficulty for them is finding information and understanding what is going on.

Describe your proposed solution

I think that we can guide users with better html displays. In general, what would be desirable is to give ways to the users to access all the information that an estimator knows about itself, but avoiding to add any lengthy computation during fit. Of course the difficulty of any UX which is that adding more information leads to crowding, and thus the UX needs to be kept light and focused.

I propose to do changes in an iterative way, adding one feature after the other. Here are the ideas that I have in mind:

In terms of plan, I propose to first adapt our current display without changing its main philosophy. Hence we need to add light accessors of the information, and not a huge list of things (think "mac", design).

Another important thing to keep in mind is that, for users, the hardest things to comprehend are composite estimators, such as pipelines. Most users do not understand how they can access internal objects in these.

cc @amueller who, if I understand correctly, has been pushing these ideas for a long time. Also cc @thomasjpfan who has always shown impressive skills at html.

Describe alternatives you've considered, if relevant

No response

Additional context

We should make sure that the displays work and are easy to view in all the relevant environments: jupyter notebooks, vscode.

This means that avoid javascript. If needed, we can consider using https://purecss.io/ for buttons, tabs, ...

Activity

  1. eskayML commented on Jun 17, 2023

    @eskayML

    I have a question though,
    Is this display enhancement only for using sklearn in notebooks?
    Because I'm really curious on how some of those things you mentioned could be implemented for those running sklearn in scripts on their terminal.

  2. GaelVaroquaux commented on Jun 18, 2023

    @GaelVaroquaux
    MemberAuthor
  3. moved this to Discussion in Front-end UI/UXon May 17, 2024
  4. koaning commented on Jun 5, 2024

    @koaning

    Something that came up the other day was to perhaps add sizes to the diagram. Suppose I have something relatively complex, like below, it might be nice to be able to figure out the size/shape of the outgoing array/dataframe.

    CleanShot 2024-06-05 at 07 12 19@2x

  5. ogrisel commented on Oct 18, 2024

    @ogrisel
    Member

    That's a good point. This information is a bit redundant with displaying the feature names but displaying the feature names cannot be done by default (because that would take too much screen real estate) but the number of output features can always be displayed. Maybe the number of output features would be a natural way for the user to click and expand the list of ouput feature names.

    I added an item to the bullet list of the issue.

    I also added an item about displaying (public) fitted attributes.

  6. moved this from Todo to In progress in Labson Jan 14, 2026
  7. moved this from In progress to Todo in Labson Jun 15, 2026
  8. moved this from Todo to Done in Labson Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions