Introducing Great Tables, a package for creating great-looking display tables in #Python!
Include them in a notebook, a #Quarto document, or exported as HTML.
We've been working hard on making this package as useful as possible, and we're excited to share it with you. We very recently put out our first major release of the Great Tables (v0.1.0) and it’s available in PyPI.
I recently experimented preparing with #quarto the lecture notes of a data-science course. My reason for choosing Quarto was to have a web version and a pdf version at once. Unfortunately that didn't work: the resulting pdf looks very bad, from placement of figures to maths macros. Trying to make it look nicer leads to a heavy need of learning and programming in Lua. So I gave up on the pdf and focused on the web version only.
I must now prepare lecture notes for a new course, and am faced again with this choice. This time I'm thinking of going with the pdf version, using #latex or #xetex. As I see it, the advantages are:
pdf is more portable: most browsers can immediately display a pdf, and you can also download it and read it on your laptop, notebook, phone – or print it nicely;
I have way more flexibility in typesetting and font formatting, maths notation, and general personalization using LaTeX.
More powerful editing tools for LaTeX, with #emacs + #auctex , than for Quarto.
The only disadvantage I can think of is with video or audio media, but I won't need much of that; and links can be given in a pdf.
However, I'm babbling about this here to ask you about other factors (in favour of web+quarto or pdf+latex) that I may not have thought about. Any thoughts?
[Side note: some might say that Quarto allows to do heavy customization of a pdf too. Maybe, but only if you learn Lua programming and deal with its intricacies. Then any advantages are lost: I can simply use LaTeX/XeTeX/LuaTeX.]
Interested in allowing #python 🐍 code to run seamlessly in the browser via #pyodide? The {quarto-pyodide} proof of concept unveiled at #positconf2023 is under active development with an initial release at the end of December. In the meantime, delve into our proof of concept demo:
Our friends at @holoviz_org migrated their blog to #Quarto. They wanted something easy to use that seamlessly renders #Python#Jupyter notebooks into blog posts, and #QuartoPub does just that! Read more about their thought process here:
I think I learned today that your parameters in #quarto#rstatsreports should not have the same name as variables in data frames. I could not render parameterized reports correctly. E.g.,. if my variable in my data is named "school" I should use something else in the YAML header like
I really love the parameterized reporting that is possible in #quarto in #rstats, but I'm stymied by how rendering to MS Word puts my gt() tables in one big chunk with no spacing. Is there a good resource for rendering to Word and controlling the spacing?
I just found that a \ between code chunks will render as a hard return between the gt() tables in each chunk. It's clumsy but it's progress. #quarto#rstats
What you'll see at the URL (https://30dmc.hrbrmstr.dev/2023/day-14.html) & in the attached is 100% WebR, {sf} & {ggplot2} —apart from a JS fetch() to get the Europe GeoJSON.
If you're into #Quarto & #WebR then today is a great day because @coatless just pushed an update to the webr Quarto extension so that is uses webr 0.2.2. This makes package install and load times sooooo much faster.
Thanks to some incredible toil+creativity by one of our equally incredible designers at work, I should have a decent example of using #Quarto + #Typst + #Observable Plot + (ofc) #RStats to generate data-driven PDF reports with a fairly complex multi-page layout ready to blog and git sometime next week. #StayTuned
Does #Quarto not support alt-text for figures when rendering a PDF? I used {fig-alt="my alt text"} after the image, and it printed out to the body of the pdf document. Perhaps this is only for html? Any work arounds? #RStats
Is it possible to set a #quarto code chunk in #rstats to execute only if a variable has a specific value? I am setting up parameterized reports and some code blocks are extraneous for some reports in which sets of variables have missing values.
@andrew I've been working on updating my website to use #Quarto and I've been using the code from yours as a guide (it's great).
One weird issue I'm running into and I'm curious if you've run into this before: if I run code interactively in VS Code, it will always set the terminal location to the project root, not the file location. This does not seem to be an issue in RStudio. I noticed your git includes files for VS Code and RStduio so I was curious if you've run into this before.
Are you assessing different tools for #LLM data annotation/curation?
In this blog post by @hamel, he reviews several options and discusses how #Shiny for #Python is a great front-end framework for annotating and curating LLM data.
Some of the reasons include:
• Native integration with #Quarto.
• A powerful reactive model that is snappy.
• A small API that is easy to learn and keep in your head.
• Amazing #WASM support
Apropos of nothing, if you've ever used #Quarto from the command line, you owe it to yourself to check out qvm for installing new releases (and downgrading to older versions when necessary):
Upcoming event!
What's New In Tidymodels with @emilhvitfeldt
The @RUGatHDSI will be hosting this event on Thursday at 5pm Eastern Time.
"The tidymodels framework is a collection of packages for modeling and machine learning using tidyverse principles. This talk will touch on a number of new additions and in-process work being done by the team."
A friendly reminder that this event is coming up tomorrow at 5pm Eastern Time! Register on our website here: https://rug-at-hdsi.org/calendar/
We know for a fact that Emil has been up to some great stuff recently (see his recent blogpost on tips for Quarto slide-crafting here: https://emilhvitfeldt.com/post/slidecraft-7-tips-and-tricks/) so we're anticipating this will be a great talk!