PythonHub
2.37K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Visualizing F1 race results using Polars and Great Tables

Programmatically create an F1 race analysis table using the FastF1 API, the Great Tables library, and Polars.

https://jimmieyoo.com/posts/F1_Race_Result_Tables_Using_Python_and_Polars_2024_Australian_GP.html
Design of Everyday APIs

What makes a good API for a library? How can you design an API that is delightful to use? This post walks through the principles of what goes into user-centered design and how best to apply those principles when writing a Python library for fellow developers.

https://roguelynn.com/words/everyday-apis
Creating drum machines, effects, sequencers, samplers, and synths with Python

I created a subreddit where I post scripts showing how to make drum machines, sequencers, samplers, and synths with Python.

https://www.reddit.com/r/supriya_python/s/wFMjENJQ02
Ditching Django Admin for FastHTML with HTMX

Building a Django Admin-like dashboard with automatic refresh using FastHTML and HTMX.

https://simn.fr/posts/dicthing-django-admin-for-fasthtml
🔥1
Building AI Agents for JupyterLab using Notebook Intelligence

This post introduces Notebook Intelligence (NBI), an AI coding assistant framework for JupyterLab, and demonstrates how to build AI Agents using NBI's tool-calling capabilities with examples of tools for geo-coordinate lookup, map generation, notebook creation, and sharing. It provides a guide for developers to integrate custom AI-powered functionalities into JupyterLab's Copilot Chat.

https://blog.jupyter.org/building-ai-agents-for-jupyterlab-using-notebook-intelligence-0515d4c41a61
How to add an object in Django Admin with a bookmarklet

The article explains how to create a Django Admin bookmarklet that pre-fills form fields when adding new items, like bookmarks, using a web page's URL, title, and selected text. It walks through setting up the JavaScript snippet, customizing it for your Django app, and adding it as a browser bookmark for quick data entry.

https://www.gyford.com/phil/writing/2025/02/14/django-admin-bookmarklet
Minions

Minions is a communication protocol that enables small on-device models to collaborate with frontier models in the cloud. By only reading long contexts locally, we can reduce cloud costs with minimal or no quality degradation.

https://github.com/HazyResearch/minions
Craw4LLM

CRAW4LLM is an efficient web crawling method that prioritizes webpages based on their potential influence on LLM pretraining, replacing traditional graph-connectivity-based priorities. By crawling only 21% of URLs, it achieves the same downstream performance as previous methods, significantly reducing data waste and website burden.

https://github.com/cxcscmu/Craw4LLM