Using GitHub Codespaces for Quarto Development

It turns out, when I am working on say a reveal.js slide deck and I need a lot of instant feedback, quarto preview renders pretty slowly on my machine. To speed up the process, and also allow me to tweak slides and blog articles from any machine, I started using GitHub Codespaces. To set it up correctly, I settled on this devcontainer.json for now: devcontainer.json { "name": "R + Quarto Codespace", "image": "ghcr....

January 17, 2024 · Lennart Klein

GitHub Commit Difference Badge

TL;DR Create a Shields.io badge for your GitHub README.md to track the number of commits since a specific commit In my case, I set the base/reference point to the last commit to the repo of my blog’s theme which I added as a git submodule1 to the themes/ folder of my blog2 Using R Markdown, I have my badge automatically update to the current status of my submodule and rendered out to my README....

January 11, 2024 · Lennart Klein

In Search for the Perfect Palette

Three types of palettes: discriminate qualitative smooth Okabe mpg %>% ggplot(aes(x = displ, y = hwy)) + geom_point(aes(color = class)) + geom_smooth() mpg %>% ggplot(aes(x = displ, y = hwy)) + geom_point(aes(color = class)) + geom_smooth() + paletteer::scale_color_paletteer_d("colorblindr::OkabeIto_black")

August 4, 2023 · Lennart Klein

Europe Knowledge Graph - Part 1: Scraping & Wrangling

cat("hi") library(tidyverse) <copyright acknowledgement!!> Idea I’m currently taking a class on EU politics and while studying for my exam, I stumbled upon an online Europe Dictionary by the bpb. Since I’m a big fan of ontologies, knowledge graphs and graph-based TfTs (e.g., Roam Research) . Rvest Wrangling tidygraph neo4j https://neo4j.com/developer/graph-data-science/build-knowledge-graph-nlp-ontologies/

September 15, 2020 · Lennart Klein

Hello, Quarto

Workflow ✨ https://quarto.org/docs/output-formats/hugo.html#workflow The basic concept of using Quarto with Hugo is that you take computational markdown documents (.qmd) or Jupyter notebooks (.ipynb) and use them to generate plain markdown files (.md) that are rendered to HTML by Hugo. https://mermaid.js.org/syntax/flowchart.html#node-shapes https://quarto.org/docs/authoring/diagrams.html#mermaid-formats The quarto render and quarto preview commands are used to transform .qmd or .ipynb files to Hugo compatible markdown (.md). Polar Axis in Python apparently, the python3 kernel uses the conda base env (or rather the currently active env, of course since I am running quarto preview from my interactive session)...

April 6, 2012 · Lennart Klein