Skip to content
Discussion options

You must be logged in to vote

You can overwrite in several ways:

---
format: html
jupyter: python3
include-in-header:
  - text: |
      <style>
        .table {
          width: auto;
        }
      </style>
---

```{python}
import pandas as pd
from IPython.display import HTML
```


```{python}
HTML(pd.DataFrame({'a': [1, 2, 3, 4], 'b': [3, 4, 5, 6]}).to_html())
```

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@joelostblom
Comment options

@mcanouil
Comment options

mcanouil Aug 4, 2024
Collaborator

@joelostblom
Comment options

Comment options

You must be logged in to vote
4 replies
@joelostblom
Comment options

@mcanouil
Comment options

mcanouil Aug 5, 2024
Collaborator

@joelostblom
Comment options

@mcanouil
Comment options

Answer selected by joelostblom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tables Issues with Tables including the gt integration jupyter knitr computations
2 participants