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

Document Tabulator Styling with Matplotlib gradients #7291

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

MarcSkovMadsen
Copy link
Collaborator

@MarcSkovMadsen MarcSkovMadsen commented Sep 18, 2024

One of the most used features in Excel is applying colormap gradients to your tables. You can do the same with Tabulator in Panel.

I've many times been searching for this and experienced some issues.

  • How to do this is not documented.
  • Often the gradients don't show. Its actually because I did not have Matplotlib installed. But its very hard to figure out because no warning or exception is displayed. I've spent countless hours trying to understand why it works locally but not when deployed. I thought Panel Tabulator Styling was a bit fragile depending on Pandas versions etc.

This PR makes it much easier for users to apply gradients to Tabulator by documenting an example and documenting Matplotlib requirement.

@MarcSkovMadsen MarcSkovMadsen added this to the v1.5.1 milestone Sep 18, 2024
@MarcSkovMadsen MarcSkovMadsen marked this pull request as ready for review September 18, 2024 05:15
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.79%. Comparing base (d4f7d68) to head (c7905dc).

❗ There is a different number of reports uploaded between BASE (d4f7d68) and HEAD (c7905dc). Click for more details.

HEAD has 8 uploads less than BASE
Flag BASE (d4f7d68) HEAD (c7905dc)
14 6
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #7291       +/-   ##
===========================================
- Coverage   82.18%   71.79%   -10.40%     
===========================================
  Files         337      336        -1     
  Lines       50380    50379        -1     
===========================================
- Hits        41407    36169     -5238     
- Misses       8973    14210     +5237     

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

@philippjfr philippjfr merged commit 37c9ec6 into main Sep 18, 2024
15 checks passed
@philippjfr philippjfr deleted the enhancement/tabulator-gradients branch September 18, 2024 20:31
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.

2 participants