December 2026
Every post published in December 2026, newest first. Pick a day to jump straight to it.
- Posts
- 514
- Topics
- 86
- Reading time
- 56 h
- Active days
- 3
Posts 421–450 of 514 · December 1, 2026
Page 15 of 18
Tuesday, December 1, 2026
30 of 97 posts
How to Keep Apache Airflow® Files Out of Git with .gitignore
Apache Airflow® writes its settings with generated secrets, a database, logs and the admin password into your project folder. Keep them out of Git with a short .gitignore, and check it with git status --ignored. Real output from Airflow 3.4.0.
5 min readHow to Query the USGS Earthquake API with curl
Count and list earthquakes from the free USGS earthquake API with curl: the count and query methods, a date range in UTC, a minimum magnitude, plain-text output, and the quoting your shell needs. Real output, no API key.
6 min readHow to Check the Health of Apache Airflow® with the Health Endpoint
Check whether the Apache Airflow® metadata database, scheduler, triggerer and Dag processor are healthy with one request to /api/v2/monitor/health, and read every field of its answer. Real output from Airflow 3.4.0.
4 min readHow to Get an Access Token for the Apache Airflow® REST API
Get a JWT access token from Apache Airflow® 3 with a POST to /auth/token, see what the REST API answers without it, and call an endpoint with the Authorization: Bearer header. Real output from Airflow 3.4.0 with the simple auth manager.
5 min readHow to Pause and Unpause a Dag in Apache Airflow®
Pause and unpause an Apache Airflow® Dag with the toggle on its page in the UI, know why every new Dag starts paused, and what a paused Dag still does. Screenshots from Airflow 3.4.0.
3 min readHow to Read a Task Log in the Apache Airflow® UI
Open a task's log in the Apache Airflow® 3 UI, read its numbered lines and collapsed groups, find where print() output goes, and filter the log by level. Screenshots from Airflow 3.4.0.
5 min readHow to Trigger a Dag from the Command Line with airflow dags trigger
Start an Apache Airflow® Dag run from the terminal with airflow dags trigger, make sure the Dag is unpaused so the run doesn't wait, and check the result with airflow dags list-runs. Real output from Airflow 3.4.0.
4 min readHow to Trigger a Dag from the Apache Airflow® UI
Run an Apache Airflow® 3 Dag by hand from the UI: the Trigger button, every option of the Trigger Dag dialog, what Unpause, Drain and Keep paused do for a paused Dag, and how to see that the run succeeded. Screenshots from Airflow 3.4.0.
5 min readHow to Write a Dag with the TaskFlow API in Apache Airflow®
Write an Apache Airflow® 3 Dag as plain Python functions with @dag and @task from airflow.sdk, pass one task's return value to the next, and see the graph and the log of the run. Real code and screenshots from Airflow 3.4.0.
7 min readHow to Read an Apache Airflow® Setting with airflow config get-value
Print the value Apache Airflow® actually uses for any setting with airflow config get-value: its syntax, environment variable overrides, and what it does with a name that doesn't exist. Real output from Airflow 3.4.0.
6 min readHow to Turn Off the Example Dags in Apache Airflow®
Hide the 119 example Dags that Apache Airflow® 3.4.0 loads by default: set [core] load_examples to False, restart, and see what happens to examples that were already loaded. Real output and screenshots.
5 min readHow to Change the Port and Host of the Apache Airflow® API Server
Move the Apache Airflow® UI and REST API off port 8080 and limit it to your own computer by changing [api] port and host in airflow.cfg, or with AIRFLOW__API__PORT, and check the result. Real output from Airflow 3.4.0.
5 min readHow to Set AIRFLOW_HOME for Apache Airflow®
Choose the folder where Apache Airflow® keeps its settings, database and logs with the AIRFLOW_HOME environment variable: what happens without it, how to set it, and why every new terminal needs it again. Real output from Airflow 3.4.0.
5 min readHow to Find the Admin Password for Apache Airflow® standalone
Find the generated admin password of Apache Airflow® standalone: where the first start prints it, why later starts don't, and how to read it from simple_auth_manager_passwords.json.generated. Real output from Airflow 3.4.0.
5 min readHow to Start Apache Airflow® on Your Computer with airflow standalone
Start every part of Apache Airflow® 3.4.0 with one command, airflow standalone: what each component in the output does, how to open the UI, what the files it creates are for, and how to stop it. Real output and screenshots.
7 min readHow to Install Apache Airflow® with uv and a Constraints File
Install Apache Airflow® 3.4.0 into a virtual environment with uv and the official constraints file, check the version, and see what happens on a Python version Airflow doesn't support yet. Real output from Python 3.14.10 and uv 0.13.10.
8 min readHugging Face Transformers Tutorial for NLP in Python — Part 1: Install Transformers and Run Your First Pipeline
Start a Hugging Face Transformers project in Python: what Transformers, the Hub and pipelines are, install Transformers 5.24.1 and PyTorch 2.15.0 with uv, run your first pipeline on your GPU, and build the first version of a support-message router with zero-shot classification.
30 min readFixed: "route: bad keyword" When uv run route Runs the System Command
A Python project's command named route answered route: bad keyword when run outside the project, because uv ran the operating system's own route command instead. Renaming the command to a name no system tool uses fixed it. Real output from uv 0.13.10 on macOS.
5 min readFixed: AttributeError: 'code' object has no attribute 'co_lnotab'
On Python 3.15, Hugging Face datasets' Dataset.map with num_proc=2 failed with AttributeError: 'code' object has no attribute 'co_lnotab', raised inside dill. Python 3.15 removed co_lnotab, and datasets pins a dill that still reads it. Moving the project to Python 3.14 fixes it.
8 min readHow to Pin a Hugging Face Model to an Exact Revision
Make your code load exactly the same Hugging Face model every time by pinning it to a commit with revision=, find the commit with hf models info, and see the error for a revision that doesn't exist. Real output from Transformers 5.24.1.
5 min readHow to Choose the Device a Hugging Face Pipeline Runs On
Run a Hugging Face Transformers pipeline on the GPU or the CPU: what it picks when you set nothing, how device="cpu" and device=0 behave, and the AssertionError device="cuda" gives on a Mac. Real output from Transformers 5.24.1 on an Apple M1 Pro.
5 min readFixed: "No model was supplied, defaulted to distilbert/distilbert-base-uncased-finetuned-sst-2-english"
A Hugging Face sentiment-analysis pipeline printed No model was supplied, defaulted to distilbert/distilbert-base-uncased-finetuned-sst-2-english and revision 714eb0f, followed by a warning not to do this in production. Naming the model and its revision fixes it.
6 min readHow to Classify Text into Your Own Labels with Zero-Shot Classification
Sort text into labels you make up on the spot, with no training, using a Hugging Face zero-shot-classification pipeline: candidate labels, multi_label and the hypothesis template, with their real scores. Transformers 5.24.1 and facebook/bart-large-mnli.
8 min readHow to Run Sentiment Analysis with a Hugging Face Pipeline
Tell whether a review is positive or negative in a few lines of Python with a Hugging Face Transformers sentiment-analysis pipeline, a pinned model and its scores. Real output from Transformers 5.24.1 on Python 3.14.
5 min readHow to Install Hugging Face Transformers with uv
Install Hugging Face Transformers and PyTorch in a uv project on Python 3.14, check the installed version, and read the environment report with transformers env. Real output from Transformers 5.24.1 and PyTorch 2.15.0.
6 min readHow to Use Hugging Face Models Offline with HF_HUB_OFFLINE
Run Hugging Face downloads and models without contacting the Hub by setting HF_HUB_OFFLINE=1: cached files load straight from disk, and missing ones fail with a clear error. Real output from huggingface_hub 2.5.0 in bash and PowerShell.
5 min readHow to Turn Off Hugging Face Telemetry with HF_HUB_DISABLE_TELEMETRY
Hugging Face libraries send some usage data by default. Turn it off with HF_HUB_DISABLE_TELEMETRY=1 or DO_NOT_TRACK=1, in bash or PowerShell, and check the setting from Python. Real output from huggingface_hub 2.5.0.
4 min readHow to Check a Model's License on the Hugging Face Hub
Find out whether you may use a Hugging Face model in your project: where the license is on the model page, what its menu links to, and how to read it from the terminal with hf models info. Real screens and output from huggingface_hub 2.5.0.
5 min readHow to Delete a Model from Your Hugging Face Cache with hf cache rm
Free up disk space by deleting a downloaded model from the Hugging Face cache with hf cache rm: preview it with --dry-run, confirm the deletion, and check the result with hf cache ls. Real output from huggingface_hub 2.5.0.
5 min readHow to Change Where Hugging Face Stores Downloaded Models with HF_HOME
Move the Hugging Face cache, where downloaded models and your token live, to another folder or drive by setting the HF_HOME environment variable, in bash, zsh or PowerShell. Real output from huggingface_hub 2.5.0, checked with hf env.
6 min read