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

Tabulator does not display all columns #7496

Open
wcstrache opened this issue Nov 15, 2024 · 2 comments
Open

Tabulator does not display all columns #7496

wcstrache opened this issue Nov 15, 2024 · 2 comments
Labels
component: tabulator Related to the Tabulator widget type: bug Something isn't correct or isn't working

Comments

@wcstrache
Copy link

wcstrache commented Nov 15, 2024

Software version info

Panel versions higher than 1.5.2 (currently this affects 1.5.3 and 1.5.4)

Description of expected behavior and the observed behavior

After panel serve example.py --autoreload you will see that the frozen column is not really frozen and moves out of the frame after passing column no. 5. Also these last columns look different from a visual perspective. I suspected an issue with the VirtualDome of Tabulator and tried to disable it using e.g. configuration={“renderHorizontal”: “basic”} but it did not work. The only fix I found was to downgrade the panel version to 1.5.2 via conda.
The issue is a follow-up of the holviz discourse thread found here: https://discourse.holoviz.org/t/getting-tabulator-to-display-all-columns/8394

Minimal, self-contained example code that reproduces the issue

import panel as pn
import pandas as pd

df = pd.DataFrame({
    "John WithALongName": [1, 2, 3],
    "Albert WithAnEvenLongerName": ["d", "d", "d"],
    "Robert WithQuiteALongName": ["d", "d", "d"],
    "Jack WithShortName": ["d", "d", "d"],
    "Elisa WithTheLongestNameYouCanThinkOfAndEvenLonger": ["d", "d", "d"],
    "Thomas Shortest": ["d", "d", "d"],
    "Tina NotThatLongName": ["d", "d", "d"],
})

pn.extension("tabulator")

tab = pn.widgets.Tabulator(df, width=800, frozen_columns=[0])

tab.servable()
@holovizbot
Copy link

This issue has been mentioned on HoloViz Discourse. There might be relevant details there:

https://discourse.holoviz.org/t/getting-tabulator-to-display-all-columns/8394/4

@philippjfr
Copy link
Member

Sounds like a regression caused by upgrading to Tabulator 6.3.0. Will investigate.

@philippjfr philippjfr added type: bug Something isn't correct or isn't working component: tabulator Related to the Tabulator widget labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tabulator Related to the Tabulator widget type: bug Something isn't correct or isn't working
Projects
None yet
Development

No branches or pull requests

3 participants