Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rcap107
Copy link
Member

@rcap107 rcap107 commented Nov 5, 2025

This is a relatively small change that simplifies a lot writing examples with the TableReport.

The idea is having the parameter "default_tab" to let the user select the specific tab in the report (either the preview, stats, distributions, or associations) so that the TableReport is rendered with the given tab already pre-selected.

@rcap107
Copy link
Member Author

rcap107 commented Nov 5, 2025

This would make #1476 easier to write as well

@rcap107 rcap107 added this to the Release 0.6.3 milestone Nov 6, 2025
@rcap107 rcap107 marked this pull request as ready for review November 7, 2025 15:13
@@ -0,0 +1,30 @@
<table border="1" class="dataframe">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how are those 3 home page files changes related to the PR ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not entirely sure how those files ended up there, I removed them

standalone=True,
column_filters=None,
minimal_report_mode=False,
default_tab="table",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it's really a "default" -- it is the one that is open when loading the page. not sure we can find a better name though 🤔 , maybe open_tab, selected_tab

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think open_tab works

Comment on lines 175 to 176
"default_tab": default_tab,
"default_panel_id": default_panel_id,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"default_tab": default_tab,
"default_panel_id": default_panel_id,
"default_panel_id": default_panel_id,

default_tab doesn't seem to be used in the template, and that's good because it's best not to have 2 different parameters to encode the same info

Copy link
Member

@jeromedockes jeromedockes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise :)

@jeromedockes
Copy link
Member

I guess we could also add a test in the js test suite to check that the correct tab is actually opened when opening the report

Copy link
Member

@jeromedockes jeromedockes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @rcap107 !

Co-authored-by: Jérôme Dockès <[email protected]>
@rcap107 rcap107 merged commit 20194e8 into skrub-data:main Dec 1, 2025
29 checks passed
@rcap107 rcap107 deleted the enh-add-default-tablereport-view branch December 1, 2025 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants