# Table View -- Table not showing in plot() (but showing fine in jupyter using iplot() )

**URL:** <https://community.plotly.com/t/table-view-table-not-showing-in-plot-but-showing-fine-in-jupyter-using-iplot/6700>\
**Category:** 📊 Plotly Python\
**Created:** [November 7, 2017, 4:57pm UTC](https://community.plotly.com/t/table-view-table-not-showing-in-plot-but-showing-fine-in-jupyter-using-iplot/6700 "2017-11-07T16:57:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gennadyi](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gennadyi](https://community.plotly.com/u/gennadyi)\
**Post date:** [November 7, 2017, 4:57pm UTC](https://community.plotly.com/t/table-view-table-not-showing-in-plot-but-showing-fine-in-jupyter-using-iplot/6700/1 "2017-11-07T16:57:10Z")

</div>

Can’t get a simple example table to show as separate offline plot. Get a javascript error:

![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/9/9cd1c3089f0f500de19f446812685308e018e6d2.png)

import pandas as pd  
import plotly.plotly as py  
import plotly.graph\_objs as go  
from plotly.offline import download\_plotlyjs, init\_notebook\_mode, plot, iplot  
init\_notebook\_mode(connected=False)

trace = go.Table(  
header=dict(values=[‘A Scores’, ‘B Scores’]),  
cells=dict(values=[[100, 90, 76,76],  
[80, 90,45,48],  
]))

layout = dict(width=500, height=300)  
data = [trace]  
fig = dict(data=data, layout=layout)

iplot(fig, filename = ‘basic\_table.html’) #shows ok in jupyter notebook

plot(fig, filename = ‘basic\_table.html’) #doesn’t show in separate browser windows with javascript error

---

<div class="post-metadata">

**Author:** ![gennadyi](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gennadyi](https://community.plotly.com/u/gennadyi)\
**Post date:** [November 7, 2017, 4:58pm UTC](https://community.plotly.com/t/table-view-table-not-showing-in-plot-but-showing-fine-in-jupyter-using-iplot/6700/2 "2017-11-07T16:58:30Z")

</div>

this is what it look like in the notebook:

![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/1/1aa8848c85cc44e6f99dcedb2e6e2f0cb21fb8f8.png)

---

<div class="post-metadata">

**Author:** ![gennadyi](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gennadyi](https://community.plotly.com/u/gennadyi)\
**Post date:** [November 7, 2017, 7:57pm UTC](https://community.plotly.com/t/table-view-table-not-showing-in-plot-but-showing-fine-in-jupyter-using-iplot/6700/3 "2017-11-07T19:57:58Z")

</div>

Ok I have work around for this now.

1. in the header the values are apparently expected to be list of lists. This is probably for multi-rows.
2. width property must be defined on the level of cells { line }, otherwise the cells wont render because of an error looking for “width” property

trace = go.Table(  
columnwidth = [250,250],  
header=dict(values=[[‘A Scores’], [‘B Scores’]],  
height = 50,  
line = dict(color=‘rgb(50,50,50)’, width= 1),  
align = [‘left’]\*5,  
font = dict(color=[‘rgb(45,45,45)’]\*5, size=14),  
fill = dict( color = ‘#d562be’ )  
),

```
cells=dict(values=[[100, 90, 76,76],
                   [80, 90,45,48],],
           height = 45,
              line = dict(color='rgb(50,50,50)', width= 1), 
          )
)

```

layout = dict(width=500, height=500)  
data = [trace]  
fig = dict(data=data, layout=layout)

iplot(fig, filename = ‘basic\_table.html’)  
plot(fig, filename = ‘basic\_table.html’)
