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

Improve HoloViews reference guide #6065

Merged
merged 9 commits into from
Mar 11, 2024
Merged

Conversation

MarcSkovMadsen
Copy link
Collaborator

@MarcSkovMadsen MarcSkovMadsen commented Dec 16, 2023

Via #5628 its clear that the HoloViews reference notebook does not clearly explain how things are expected to work. After working with it I can also see that its not updated to reflect how the HoloViews pane works today. I also believe some of the things that are explained does not work due to bugs.

Copy link

codecov bot commented Dec 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.48%. Comparing base (e8ad8db) to head (2e49cf6).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6065      +/-   ##
==========================================
- Coverage   71.52%   71.48%   -0.04%     
==========================================
  Files         310      312       +2     
  Lines       45996    46050      +54     
==========================================
+ Hits        32898    32921      +23     
- Misses      13098    13129      +31     
Flag Coverage Δ
unitexamples-tests 71.48% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

examples/reference/panes/HoloViews.ipynb Outdated Show resolved Hide resolved
"hvplot.extension(\"plotly\")\n",
"\n",
"plot = df.hvplot.scatter(x=\"group\", y=\"value\", height=300, responsive=True)\n",
"pn.pane.HoloViews(plot, backend='plotly', height=300)"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is a bug here. The resulting plot is higher than the 300px specified both with hvPlot and HoloViews.

image

examples/reference/panes/HoloViews.ipynb Show resolved Hide resolved
examples/reference/panes/HoloViews.ipynb Show resolved Hide resolved
"\n",
"pn.Column(\n",
" pn.Row(*widgets),\n",
" hv_panel[0])"
" \"## Not Centered: `center=False`\",\n",
Copy link
Collaborator Author

@MarcSkovMadsen MarcSkovMadsen Dec 16, 2023

Choose a reason for hiding this comment

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

Does center work as expected when combined with sizing_mode?

  • I dont understand why the first example is not left aligned. I would expect the layout to have a fixed width.
  • I don't understand why the plot in the first and second examples have different widths.

But I can find a way to achieve what I need.

image

examples/reference/panes/HoloViews.ipynb Show resolved Hide resolved
examples/reference/panes/HoloViews.ipynb Show resolved Hide resolved
examples/reference/panes/HoloViews.ipynb Show resolved Hide resolved
examples/reference/panes/HoloViews.ipynb Outdated Show resolved Hide resolved
@MarcSkovMadsen
Copy link
Collaborator Author

There are so many issues here. I need an expert on HoloViews (the framework) and HoloViews (the pane) to go through my comments and give me some feedback on who should do what.

I don't plan to do more before I get that feedback.

@MarcSkovMadsen MarcSkovMadsen marked this pull request as ready for review January 18, 2024 14:59
@MarcSkovMadsen MarcSkovMadsen added this to the v1.3.7 milestone Jan 18, 2024
@MarcSkovMadsen
Copy link
Collaborator Author

Maybe I forgot to "release this". I've done that now. It is ready for review.

@philippjfr philippjfr modified the milestones: v1.3.7, v1.4.0 Jan 18, 2024
@philippjfr
Copy link
Member

I'll retarget for 1.4.0 because I don't want to hold up the release much more, but if I do get a chance before tomorrow I will backport it.

@philippjfr philippjfr force-pushed the enhancement/holoviews-reference branch from fa5abc9 to 74ee0b6 Compare March 11, 2024 13:37
@philippjfr philippjfr merged commit 7d525e6 into main Mar 11, 2024
12 of 15 checks passed
@philippjfr philippjfr deleted the enhancement/holoviews-reference branch March 11, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants