# Table formatting

**URL:** <https://discourse.holoviz.org/t/table-formatting/1043>\
**Category:** HoloViews\
**Created:** [July 31, 2020, 2:09pm UTC](https://discourse.holoviz.org/t/table-formatting/1043 "2020-07-31T14:09:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cerioscha](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/cerioscha/32/4476_2.png) [@Cerioscha](https://discourse.holoviz.org/u/Cerioscha)\
**Post date:** [July 31, 2020, 2:09pm UTC](https://discourse.holoviz.org/t/table-formatting/1043/1 "2020-07-31T14:09:37Z")

</div>

Hi

Is is possible to perform any formatting on a hv table in terms of colouring the cells or columns. Or say the colour of the column names?

thanks Jason

---

<div class="post-metadata">

**Author:** ![Material-Scientist](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/material-scientist/32/503_2.png) [@Material-Scientist](https://discourse.holoviz.org/u/Material-Scientist)\
**Post date:** [August 2, 2020, 12:13pm UTC](https://discourse.holoviz.org/t/table-formatting/1043/2 "2020-08-02T12:13:50Z")

</div>

Would also like to know this! I know it’s possible with plotly. So, you could just serve a plotly table with panel. But I’d also like to do it with Holoviews.

---

<div class="post-metadata">

**Author:** ![Marc](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/marc/32/24_2.png) [@Marc](https://discourse.holoviz.org/u/Marc)\
**Post date:** [August 3, 2020, 4:43am UTC](https://discourse.holoviz.org/t/table-formatting/1043/3 "2020-08-03T04:43:31Z")

</div>

I can contribute my little knowledge.

- The table is built on SlickGrid. You can take a look at the [examples](https://slickgrid.net/Index.html)([https://github.com/6pac/SlickGrid/wiki/Examples](https://github.com/6pac/SlickGrid/wiki/Examples)) to see what in theory could be possible.
- I believe (hypothesis) that the table is a Panel DataFrame. If you take a look at the [guide](https://panel.holoviz.org/reference/widgets/DataFrame.html) you can see that you can specify some `editors` and `formatters`. I guess you might be able to access that object and change it.
- If you would like to style the Table differently it is possible. I’ve done it (in Panel) via CSS to support a Dark Themed, Material Design app. You can find the default css here [https://github.com/mleibman/SlickGrid/blob/master/slick-default-theme.css](https://github.com/mleibman/SlickGrid/blob/master/slick-default-theme.css).

An alternative if your tables are small and you don’t need interactivity is to use [Pandas Styling](https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html).

![image](https://discourse.holoviz.org/uploads/default/original/1X/ea8b542796c886ddad7cde8b03923685118b4a8b.png)

I would also like to know how this could be done “easily”. For example the Plotly tables can be “easily” styled. [https://plotly.com/python/table/](https://plotly.com/python/table/)

---

<div class="post-metadata">

**Author:** ![Cerioscha](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/cerioscha/32/4476_2.png) [@Cerioscha](https://discourse.holoviz.org/u/Cerioscha)\
**Post date:** [August 18, 2020, 10:11pm UTC](https://discourse.holoviz.org/t/table-formatting/1043/4 "2020-08-18T22:11:06Z")

</div>

Cheers Marc

---

<div class="post-metadata">

**Author:** ![Marc](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/marc/32/24_2.png) [@Marc](https://discourse.holoviz.org/u/Marc)\
**Post date:** [August 18, 2020, 11:43pm UTC](https://discourse.holoviz.org/t/table-formatting/1043/5 "2020-08-18T23:43:01Z")

</div>

Fyi. I’ve added an alternative data grid to the awesome-panel-extensions package. It might also be an option.

See [Awesome-panel.org change log](https://discourse.holoviz.org/t/awesome-panel-org-change-log/66/42)

 ![image](https://discourse.holoviz.org/uploads/default/original/1X/b0e66f85adedbeb54d714c588920ca181ef443fa.png)

A PR has been opened to get this into Panel.

---

<div class="post-metadata">

**Author:** ![Marc](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/marc/32/24_2.png) [@Marc](https://discourse.holoviz.org/u/Marc)\
**Post date:** [December 3, 2020, 7:41am UTC](https://discourse.holoviz.org/t/table-formatting/1043/6 "2020-12-03T07:41:20Z")

</div>

There is also a discussion here [Loading js file to change color on pn object](https://discourse.holoviz.org/t/loading-js-file-to-change-color-on-pn-object/1494) with some additional solutions.
