PythonHub
2.35K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Investigation of a Workbench UI Latency Issue

Netflix engineers investigated a JupyterLab UI latency issue in their Workbench product, tracing it to an unexpected interaction between a resource usage extension and memory allocation. The root cause was identified as the extension's performance degrading linearly with increased virtual memory usage, despite available physical memory.

https://netflixtechblog.com/investigation-of-a-workbench-ui-latency-issue-faa017b4653d
ClickPy

PyPI analytics powered by ClickHouse.

https://clickpy.clickhouse.com/
Adding keyboard shortcuts to the Python REPL

The article discusses how to enhance the Python REPL (Read-Eval-Print Loop) by adding custom keyboard shortcuts to improve efficiency and user experience. It provides step-by-step instructions for implementing these shortcuts, enabling users to navigate and execute commands more effectively.

https://treyhunner.com/2024/10/adding-keyboard-shortcuts-to-the-python-repl/
Zero Downtime Django Deployments with Multistep Database Changes

Preventing downtime during deployments is crucial for maintaining service availability and ensuring a positive user experience. Blue-green deployments have emerged as a popular strategy to achieve this goal. However, they introduce challenges, especially when dealing with database changes. This article delves into what blue-green deployments are, why database changes can be tricky in thi...

https://johnnymetz.com/posts/multistep-database-changes/
A Comprehensive Guide to Python Project Management and Packaging: Concepts Illustrated with uv – Part I

The goal of this guide is to provide a comprehensive guide to Python project management and packaging. We’ll explore concepts in the standard, like the different tables in pyproject.toml by revisiting the PEPs that led to what we have today. We’ll explain what was used before, why it needed to change, and how the changes provided by the PEPs solved the issues. This walkthrough of the his...

https://reinforcedknowledge.com/a-comprehensive-guide-to-python-project-management-and-packaging-concepts-illustrated-with-uv-part-i/
Tiny GraphRAG (Part 1)

A tiny 1000 line implementation of GraphRAG in Python.

https://www.stephendiehl.com/posts/graphrag1/
Don't return named tuples in new APIs

Named tuples should generally be avoided in new APIs, as they add unnecessary complexity by supporting both index-based and attribute-based data access, leading to potential misuse and added maintenance. Instead, using options like data classes or typed dictionaries can offer clearer, more structured code with similar benefits.

https://snarky.ca/dont-use-named-tuples-in-new-apis/
👎1