jadeynryan, to python

talks are up on YouTube!

Want to learn about parameterized reporting with and ? Check out my talk that explains what parameters are and how to use them to increase your efficiency and reproducibility with multi-format reports: https://youtu.be/lbE5uOqfT70?si=8b3Dc6iViEN54oVG.

Side note: this works with too!

Side, side note: I'm leading a virtual 2-hour hands-on workshop on this topic January 18th. Register at https://www.meetup.com/rladies-dc/events/297344107/.

Posit, to python
@Posit@fosstodon.org avatar

Introducing Great Tables, a package for creating great-looking display tables in !

Include them in a notebook, a 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.

Learn more in the blog post: https://posit.co/blog/introducing-great-tables-for-python-v0-1-0/

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

OK, mates…

What's the seekrit incantation to use it to generate gfm files for PyPI that will inline SVG images from matplotlib.

$DEITY help me, I can't believe I just typed that sentence.

MickaelCanouil, to typst
@MickaelCanouil@fosstodon.org avatar

Here is a small Quarto extension using Typst to generate invoices as PDF.

It's pretty simple to use and configure. (You need Quarto 1.4 https://quarto.org/docs/prerelease/1.4/typst.html)

https://github.com/mcanouil/quarto-invoice

Side note: if you do not know Typst (https://typst.app/), you should really take a look. It's a bit like LaTeX but without headaches.

pglpm, to emacs
@pglpm@emacs.ch avatar

Quarto+web or LaTeX+pdf?

I recently experimented preparing with 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 or . 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 + , 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.]

coatless, to python
@coatless@mastodon.social avatar

Interested in allowing 🐍 code to run seamlessly in the browser via ? The {quarto-pyodide} proof of concept unveiled at is under active development with an initial release at the end of December. In the meantime, delve into our proof of concept demo:

🚀🎥 Watch: https://www.youtube.com/watch?v=PZx9d21HnTo

📄 Explore the demo document: https://rd.thecoatlessprofessor.com/pyodide-quarto-demo/

Stay tuned for updates and get ready for more interactive coding experiences in 2024!

Posit, to python
@Posit@fosstodon.org avatar

Our friends at @holoviz_org migrated their blog to . They wanted something easy to use that seamlessly renders notebooks into blog posts, and does just that! Read more about their thought process here:

https://blog.holoviz.org/posts/quarto_migration/

DataAngler, to random
@DataAngler@vis.social avatar

I think I learned today that your parameters in 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

params:  
 org:  
hrbrmstr, to javascript
@hrbrmstr@mastodon.social avatar

Day 4 of combo + in are up.

I deserve to be on 🧑🏼‍🎄's naughty list for the R solutions, tho.

Also finally got the notebook collection permissions right.

https://observablehq.com/@hrbrmstr/2023-day-4-scratchcards?collection=@hrbrmstr/2023-advent-of-code

hrbrmstr,
@hrbrmstr@mastodon.social avatar
DataAngler, to random
@DataAngler@vis.social avatar

I really love the parameterized reporting that is possible in in , 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?

DataAngler,
@DataAngler@vis.social avatar

@mschmidty

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.

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

So, there's no way I'm gonna get a WPE Drop in today, which means the Bonus Drop will be for all subscribers.

What I can Drop today is a fully working example of a single- doc {sf} entry into the for Day 14 (Europe).

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.

View source or tap the GitLab icon for code.

First visit is slower than re-visits.

alexpghayes, to random
@alexpghayes@mastodon.social avatar

can i use for a responsive two-column layout on desktops and a single column layout on mobile?

ethanwhite, to random
@ethanwhite@hachyderm.io avatar

If you're into & 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.

Now the dplyr and ggplot pages on my demo site install and load the packages in ~5 seconds! https://interactive-lessons.weecology.org/dplyr

Thanks @coatless & @gws !!

hrbrmstr, to typst
@hrbrmstr@mastodon.social avatar

Thanks to some incredible toil+creativity by one of our equally incredible designers at work, I should have a decent example of using + + Plot + (ofc) to generate data-driven PDF reports with a fairly complex multi-page layout ready to blog and git sometime next week.

kbelisari0, to random
@kbelisari0@fediscience.org avatar

Does 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?

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

Day 4 of the is "A bad map".

I went with the well-worn “places starting with 'bad' in the U.S.’ theme, and explain why in the post.

Uses in (I hacked in an update to v6.0.0 of the OJS parser to avoid having to embed a notebook, again).

Also uses to make a from the US names TSV.

You can select which place points to display via the Observable Inputs table / search bar.

https://30dmc.hrbrmstr.dev/2023/day-04.html

DataAngler, to random
@DataAngler@vis.social avatar

Is it possible to set a code chunk in 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.

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

Today’s WPE Drop focuses on the new dashboard feature (tho there's a side-project if you aren't into 📈).

The post introduces this modern take on good ol' {flexdashboard} & has a link to the src for a sample Quarto + dashboard you can 👀 here: https://rud.is/wpe/2023-10-27/#

Includes real (summary) data from my 🌏-scale honeypot sensor fleet at work, so lots to riff from.

Drop (2023-10-27)

Aren't You The Dash[board]ing One?!

Read/sub: https://dailyfinds.hrbrmstr.dev/p/drop-362-2023-10-27-weekend-project

smach,
@smach@masto.machlis.com avatar

@hrbrmstr I can run multiple versions of Quarto on the same machine with Quarto Version Manager qvm???? 🤯

https://github.com/dpastoor/qvm

Guess it's time to install Go. . . .

carl, to random
@carl@hci.social avatar

@andrew I've been working on updating my website to use 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.

Posit, to llm
@Posit@fosstodon.org avatar

Are you assessing different tools for data annotation/curation?

In this blog post by @hamel, he reviews several options and discusses how for is a great front-end framework for annotating and curating LLM data.

Some of the reasons include:

• Native integration with .
• A powerful reactive model that is snappy.
• A small API that is easy to learn and keep in your head.
• Amazing support

Check out the embedded version of the app!

https://hamel.dev/notes/llm/04_data_cleaning.html

MikeMahoney218, to random
@MikeMahoney218@fosstodon.org avatar

Apropos of nothing, if you've ever used from the command line, you owe it to yourself to check out qvm for installing new releases (and downgrading to older versions when necessary):

https://github.com/dpastoor/qvm

hrbrmstr, to random
@hrbrmstr@mastodon.social avatar

for folks ( or otherwise) who are playing with the bleeding edge features like Typst and dashboards…

There's a Qmd YAML header option:

quarto-required  

which you can set to a relative semver… i.e.,

quarto-required: ">=1.4.446"  

that will cause Quarto to not render the document if the version constraint is not met.

Super useful to help folks who may stumble across your work but are stuck on the "boring" releases due to IT workstation/server constraints.

ctesta, to datascience

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."

Register at rug-at-hdsi.org/calendar

@rstats

RUGatHDSI,
@RUGatHDSI@fosstodon.org avatar

@ctesta @emilhvitfeldt @rstats

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!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • ngwrru68w68
  • cisconetworking
  • magazineikmin
  • Youngstown
  • InstantRegret
  • rosin
  • slotface
  • khanakhh
  • mdbf
  • Durango
  • megavids
  • modclub
  • tacticalgear
  • GTA5RPClips
  • normalnudes
  • osvaldo12
  • everett
  • anitta
  • ethstaker
  • tester
  • Leos
  • cubers
  • provamag3
  • lostlight
  • All magazines