plot(1:10, rnorm(10))Quarto is amazing, for reproducable reports, quick dashboards, websites and blogging sites like mine. Quarto has an extension ecosystem as well, so I started playing with these extensions, thus, this post will document some of example works around these extensions.
Quarto Badges
Qyarto Badges are small visual improvement but looks cool and has option of becoming a link.
First install the extions using quarto add mcanouil/quarto-badge command. Second, defind badge style either in the post under extension heading (see code section below) or in _quarto.yml file.
.
.
extensions:
badge:
- key: current
colour: springgreen
href: https://github.com/mcanouil/quarto-badge/releases/tag/{{value}}
Some examples, current badge 1.0.0, future badge 2.0.0, old badge 0.1.0, hmm old page is not appearing .
Lightbox
Allow photos to appear in separate popup (and a bit of zoom-in on photos), no need of installation as this extension is now part of deafult installation. You can read more about at Light box repo
An example below
The best part is that it can be used with code block as well, see the code block below. Note you also need R extension to run R code in VSCode. Of course, you need to install R on your machine + rmarkdown and languageserver package in R by using install.packages("rmarkdown").
#| fig-cap: Simple demo R plot
#| lightbox:
#| group: r-graph
#| description: This is 1 to 10 plot
plot(1:10, rnorm(10))
Python require jupyter extension (working on it as it is a bit complicated, require jupyter package)
import matplotlib.pyplot as plt
# 1. Prepare data (if only one list is provided, it is used for the y-axis,
# and the x-axis defaults to the index starting at 0)
y_values = [1, 4, 2, 3]
# 2. Create and customize the plot
plt.plot(y_values) # Plots the data on the Axes
plt.xlabel('X-axis Label') # Adds a label to the x-axis
plt.ylabel('Y-axis Label') # Adds a label to the y-axis
plt.title('My Simple Matplotlib Plot') # Adds a title
plt.grid(True) # Adds a grid for better visualization
# 3. Display the plot
plt.show() # Shows the figure window
quarto-quizdown
This extension deserves a post of its own,github repo for Quiz down.

