Python
Articles covering Python.
-

[Python Environments 06] Structure OCR Tools, Language Data, APIs and Workers
Separate OCR executables, language packs, Python dependencies and worker processes when building an OCR application.
-

[Python Environments 05] Plan pandas, Jupyter, CPU and GPU Environments
Separate data analysis, notebooks and GPU workloads into reproducible environments with explicit system and Python dependencies.
-

[Python Environments 04] Structure a Web Project with src, uv and Tests
Organize a Python web project, manage its environment and tests, and distinguish development settings from deployment requirements.
-

[Python Environments 03] Use conda, Miniforge and Jupyter Kernels
Create a Miniforge environment, install analysis tools and connect the correct Python environment to a Jupyter kernel.
-

[Python Environments 02] Use uv for Python, Dependencies and Lockfiles
Select Python with uv, manage project dependencies and use a lockfile to recreate the environment.
-

[Python Environments 01] Choose venv, uv or conda on Linux
Prepare a Python development environment on Ubuntu or Rocky Linux and choose venv, uv or conda for the project’s requirements.
-

[Local LLM 08] Install Python and Create Project Environments
Install Python, create a virtual environment per project and verify which interpreter and package installer are active.
-

[Local LLM 13] Call the Ollama API from Python
Send a request to the local Ollama API from Python, handle the response, and distinguish connection errors from model errors.
-

[Local LLM 21] Build an Agent Loop with an Inventory Lookup Tool
Define an inventory lookup tool, validate its inputs and results, and follow the model-tool-response loop step by step.