
The Real Python Podcast· Folge 284
Running Local LLMs With Ollama and Connecting With Python
Freitag, 13. Februar 2026 · 45 min
Kapitelklicken springt direkt hin
Shownotes
<p>Would you like to learn how to work with LLMs locally on your own computer? How do you integrate your Python projects with a local model? Christopher Trudeau is back on the show this week with another batch of PyCoder’s Weekly articles and projects.</p>
<p>We cover a recent Real Python step-by-step tutorial on installing local LLMs with Ollama and connecting them to Python. It begins by outlining the advantages this strategy offers, including reducing costs, improving privacy, and enabling offline-capable AI-powered apps. We talk through the steps of setting things up, generating text and code, and calling tools.</p>
<p>We also share other articles and projects from the Python community, including the 2026 Python Developers Survey, creating callable instances with Python’s <code>.__call__()</code>, creating maps and projections with GeoPandas, ending 15 years of <code>subprocess</code> polling, discussing backseat software, a retry library that classifies errors, and a peer-to-peer encrypted CLI chat project.</p>
<p>This episode is sponsored by Honeybadger.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="realpython.com/courses/tips-using-ai-coding-ed… for Using the AI Coding Editor Cursor</a></p>
<p>Learn Cursor fast: Use AI-powered coding with agents, project-aware chat, and inline edits to supercharge your VS Code workflow.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:37 – Take the Python Developers Survey 2026</li>
<li>00:03:07 – How to Integrate Local LLMs With Ollama and Python</li>
<li>00:08:15 – Sponsor: Honeybadger</li>
<li>00:09:01 – Create Callable Instances With Python’s <code>.__call__()</code></li>
<li>00:12:13 – GeoPandas Basics: Maps, Projections, and Spatial Joins</li>
<li>00:16:03 – Ending 15 Years of <code>subprocess</code> Polling</li>
<li>00:18:57 – Video Course Spotlight</li>
<li>00:20:23 – Backseat Software – Mike Swanson</li>
<li>00:39:06 – cmd-chat: Peer-to-Peer Encrypted CLI Chat</li>
<li>00:41:58 – redress: A Retry Library That Classifies Errors</li>
<li>00:43:56 – Thanks and goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="pyfound.blogspot.com/2026/01/your-python-your-… the Python Developers Survey 2026</a></li>
<li><a href="blog.jetbrains.com/pycharm/2025/08/the-state-o… State of Python 2025: Trends and Survey Insights - The PyCharm Blog</a></li>
</ul>
<p>Topics:</p>
<ul>
<li><a href="realpython.com/ollama-python/">How to Integrate Local LLMs With Ollama and Python</a> – Learn how to integrate your Python projects with local models (LLMs) using Ollama for enhanced privacy and cost efficiency.</li>
<li><a href="realpython.com/courses/create-callable-instanc… Callable Instances With Python’s <code>.__call__()</code></a> – Learn about Python callables, including what “callable” means, how to use dunder call, and how to build callable objects with step-by-step examples.</li>
<li><a href="realpython.com/geopandas/">GeoPandas Basics: Maps, Projections, and Spatial Joins</a> – Dive into GeoPandas with this tutorial covering data loading, mapping, CRS concepts, projections, and spatial joins for intuitive analysis.</li>
<li><a href="gmpy.dev/blog/2026/event-driven-process-waitin… 15 Years of <code>subprocess</code> Polling</a> – Python’s standard library <code>subprocess</code> module relies on busy-loop polling to determine whether a process has completed yet. Modern operating systems have callback mechanisms to do this, and Python 3.15 will now take advantage of these.</li>
</ul>
<p>Discussion:</p>
<ul>
<li><a href="blog.mikeswanson.com/backseat-software/"&… Software – Mike Swanson’s Blog</a></li>
<li><a href="news.ycombinator.com/item?id=46817452">… Software – Hacker News</a></li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="github.com/diorwave/cmd-chat">cmd-chat: Peer-to-Peer Encrypted CLI Chat</a></li>
<li><a href="github.com/aponysus/redress">redress: A Retry Library That Classifies Errors</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="ollama.com/">Ollama</a></li>
<li><a href="realpython.com/python-callable-instances/"… .<strong>call</strong>() Method: Creating Callable Instances – Real Python</a></li>
<li><a href="realpython.com/quizzes/geopandas/">Quiz: GeoPandas Basics: Maps, Projections, and Spatial Joins</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="realpython.com/courses/customize-vscode-settin… VS Code Settings</a></li>
<li><a href="realpython.com/courses/tips-using-ai-coding-ed… for Using the AI Coding Editor Cursor</a></li>
<li><a href="realpython.com/courses/getting-started-google-… Started With Google Gemini CLI</a></li>
</ul> <p><a rel="payment" href="realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>