-
Hello, Is it possible to make the tables outputted by quarto look exactly like they do in the jupyter notebook? The defaults in jupyter are nice and compact with every other line alternating between gray and white. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There isn't currently a high-level way to do this (although your issue is a reminder that this is feature we should implement soon!). In the meantime, you can take advantage of the fact that Bootstrap is providing the CSS for Quarto documents and add this script to the bottom of your document to add the behaviors you are looking for: ```{=html}
<script type="text/javascript">
const tables = document.querySelectorAll(".cell .table");
tables.forEach(table => {
// see https://getbootstrap.com/docs/5.0/content/tables/
table.classList.add("table-sm", "table-striped");
});
</script>
``` |
Beta Was this translation helpful? Give feedback.
-
The output does indeed look miles better! We will provide options for controlling this soon, in the meantime I've changed the default behavior to use small/striped here: 0a352d6 |
Beta Was this translation helpful? Give feedback.
The output does indeed look miles better! We will provide options for controlling this soon, in the meantime I've changed the default behavior to use small/striped here: 0a352d6