December 2026
Every post published in December 2026, newest first. Pick a day to jump straight to it.
- Posts
- 612
- Topics
- 89
- Reading time
- 68 h
- Active days
- 4
Posts 541–570 of 612 · December 1, 2026
Page 19 of 21
Tuesday, December 1, 2026
30 of 97 posts
How 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.
6 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 readHow to List the Models in Your Hugging Face Cache with hf cache ls
See every model and dataset Hugging Face has downloaded to your computer, with its size and when you last used it, with hf cache ls, and every saved revision with --revisions. Real output from huggingface_hub 2.5.0.
6 min readHow to Check Whether PyTorch Can Use a GPU (CUDA or Apple MPS)
Find out whether PyTorch can run on your computer's GPU: torch.cuda.is_available() for NVIDIA, torch.backends.mps.is_available() for Apple silicon, and torch.accelerator to pick whichever you have. Real output from PyTorch 2.15.0 on an Apple M1 Pro.
5 min readFixed: UserWarning: Failed to initialize NumPy: No module named 'numpy'
A fresh PyTorch 2.15 project printed UserWarning: Failed to initialize NumPy: No module named 'numpy' on import, and tensor.numpy() then failed with RuntimeError: Numpy is not available. PyTorch doesn't install NumPy itself; adding it fixes both.
6 min readHow to Add a Command to a Python Project with [project.scripts]
Give your Python project its own terminal command by pointing a name at a function in [project.scripts] of pyproject.toml, then run it with uv run. Real output from uv 0.13.10 and Python 3.15.2, including the two errors a typo causes.
4 min readHow to Change a uv Project's Python Version with uv python pin
Move a uv project to another Python version with uv python pin: why uv refuses when requires-python doesn't allow it, the one-line fix in pyproject.toml, and how uv rebuilds the environment. Real output from uv 0.13.10, from Python 3.15.2 to 3.14.10.
5 min readHow to Import a Module Inside a Function in Python
Put an import statement inside a Python function so the module loads only when the function runs, and see it with sys.modules. Real output from Python 3.15.2, plus the NameError when you use the name outside.
4 min readHow to Make a Folder into a Python Package with __init__.py
Group Python files into a package by adding an __init__.py file to their folder, then import from it with from package.module import name. Real output from Python 3.15.2, including when __init__.py runs.
4 min readHow to Loop over a Dictionary's Keys and Values in Python with items()
Get each key and its value together in a Python for loop with dict.items(). Real output from Python 3.15.2, plus the ValueError you get without items() and the RuntimeError for changing a dictionary while looping.
3 min readHow to Turn a Tuple into a List in Python with list()
Convert a Python tuple into a list with list(), so you can add, remove or change items, while the original tuple stays as it was. Real output from Python 3.15.2, plus the AttributeError for append on a tuple.
3 min readHow to Show a Number with Two Decimal Places in a Python f-string
Print a Python number with exactly two digits after the decimal point using :.2f inside an f-string, so 3.14159 shows as 3.14 and 2.5 as 2.50. Real output from Python 3.15.2.
3 min readHow to Make zip Raise an Error for Lists of Different Lengths with strict=True
By default Python's zip() drops the extra items of a longer list without a word. Pass strict=True and it raises a ValueError instead. Real output from Python 3.15.2, side by side.
3 min readHow to Make a Dictionary from Two Lists in Python with dict and zip
Turn a list of keys and a list of values into one Python dictionary with dict(zip(keys, values)), then look a value up by its key. Real output from Python 3.15.2, plus what happens with repeated keys.
3 min readHow to Pad Text to a Fixed Width in a Python f-string
Line up text in columns by padding it to a fixed width in a Python f-string: :<8 to the left, :>8 to the right and :^8 in the centre. Real output from Python 3.15.2.
3 min readHow to Make a Python Data Class Read-Only with frozen=True
Stop a Python data class from being changed after it's created with @dataclass(frozen=True), see the FrozenInstanceError it raises, and make a changed copy with dataclasses.replace. Real output from Python 3.15.2.
4 min readHow to Loop over Two Lists Together in Python with zip
Walk through two Python lists side by side with zip(): each turn of the loop gets one item from each list. Real output from Python 3.15.2, and what zip does when the lists have different lengths.
3 min readHow to Create a Data Class in Python with @dataclass
Create a Python class that holds data in four lines with @dataclass: Python writes __init__, a readable print-out and == for you. Real output from Python 3.15.2, including the TypeError for a missing field.
4 min readBuild an Overtime Timesheet App in Power Apps — Part 21: Install the App in a New Environment
Install the Overtime Timesheet app from its release zips into a new trial environment and a new SharePoint site: environment, group team, users, setup flow, template and script, the app import, the payroll script picked again, sharing, and a first entry, approval and payroll workbook.
36 min readHow to Set Connection References in a Deployment Settings File
Install a solution from the command line with its connections already chosen: create a deployment settings file with pac solution create-settings, find each ConnectionId with pac connection list, fill it in, and import with --settings-file.
7 min readHow to List Connections with pac connection list
List the connections in a Power Platform environment from the terminal with pac connection list: its syntax, what the Id, Name, API Id and Status columns mean, and how to find one connector's connection ID.
6 min readHow to Add an Existing Cloud Flow to a Solution in Power Apps
Put a cloud flow that already exists into a solution with Add existing: the From Dataverse and Outside Dataverse tabs, why a flow made in My flows can be on the first one, selecting it, and checking it in the solution.
6 min readFixed: Power Apps Downloads an Old Solution Zip After "Exported Successfully"
Two identical messages said Solution exported successfully, and the first Download gave yesterday's zip of a solution with the same name and version. Wait for Currently exporting to finish, use the newest message, and check what's inside the zip.
6 min readHow to See Ignored Files in Git with git status --ignored
List the files and folders Git is ignoring with git status --ignored, read the !! marks in its short format, and check that a .gitignore really works before your first commit. Real output from Git 2.56.1.
3 min read