Collapsed View

Introduction

This document demonstrates the Sorting Hat extension. By default, it’s configured to show only Python code blocks, e.g. keep: python. You can modify the YAML header to change which languages are displayed.

Code Examples

Python

print("Loading data...")
Loading data...

R

R code (click to expand)
cat("Loading data...\n")
Loading data...

Bash

BASH code (click to expand)
echo "Loading data..."
Loading data...

Plain Text

This is a regular code block without a language specification. It will always be shown:

No language specified here
This will always appear regardless of filters