holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.8k stars 519 forks source link

Tabulator does not display all columns #7496

Open wcstrache opened 1 week ago

wcstrache commented 1 week ago

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 commented 4 days ago

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 commented 3 days ago

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