Python Weekly (Issue 638 February 15 2024)

Python Weekly - Issue 638

Python Weekly

Welcome to issue 638 of Python Weekly. Let's get straight to the links this week.

From Our Sponsor 

Take control of your software supply chain with Docker Scout! Enhance security, ensure compliance, and boost productivity. Seamlessly integrate with your developer tooling ecosystem for more reliable and secure development.

Articles, Tutorials and Talks

Artificial Intelligence (AI) has propelled Python to unprecedented popularity, making it the go-to language for developers and researchers worldwide. Yet, beneath the surface, a significant challenge looms. Let's get into the specific difficulties Python poses for AI's evolution, backed by real-world examples and technical insights.

Meta engineers discuss their contributions to Python 3.12, including new features such as custom JIT hooks, Immortal Objects, type system improvements, and faster comprehensions, highlighting their collaboration with the Python community and the company's support for open source

Did you know it takes about 17,000 CPU instructions to print("Hello") in Python? And that it takes ~2 billion of them to import seaborn?

If you want to run GPU programs in CI, on Macs, and more, wgu-py is a good option.

There are many ways to deploy models and perform inference. Here, we share our decision rubric for model deployments using LLM inference as an example.

Why is Adam the most popular optimizer in Deep Learning? Let’s understand it by diving into its math, and recreating the algorithm.

Visualizing some of the internals of a neural network during training and inference.

LLM engineering involves much more than just prompt design or prompt engineering. In this article, we share a set of engineering practices that helped us deliver a prototype LLM application rapidly and reliably in a recent project. We'll share techniques for automated testing and adversarial testing of LLM applications, refactoring, as well as considerations for architecting LLM applications and responsible AI.

Python has many options for formatting strings and text, including f-strings, format() function, templates and more. There's however one module that few people know about and it's called textwrap. This module is specifically built to help you with line-wrapping, indentation, trimming and more, and in this article we will look at all the things you can use it for.

Interesting Projects, Tools and Libraries

A Python tool to enforce a modular, decoupled package architecture.

Foundational model for human-like, expressive TTS.

Test whether your code is logging correctly.

The OTP framework for Python Trio.

A terminal application to view, tail, merge, and search log files (plus JSONL).

Hunt down the lines of your Django application code which are responsible for executing the most queries.

Towards Foundation Models for Probabilistic Time Series Forecasting.

Open source smart fuzzing for Python's best testing workflow.

An open source, non-profit search engine implemented in Python.

The simplest package management.

Upcoming Events and Webinars

There will be a talk, Where Cybersecurity meets Python.

There will be a talk, how to integrate Rust into your Python workflow by creating Rust bindings using PyO3.

There will be following talks

  • Pytest, a short hike.

  • Analysis of the use and the discourse of "Queering The Map"

There will be following talks

  • Combine geospatial data in 3D & beyond with TileDB arrays

  • Searching for gamma-ray sources in Space with GPU computing

There will be following talks

  • Exploiting Data Structure and Geometry with a Diffusion-based Graph Neural Network

  • Example Sampling Strategies for Large Language Models

There will be following talks

  • Scraping 1.3 million home prices - and getting away with it

  • BYOSC Build Your Own Scalable Chatbots

  • Transitmap

  • DeLight - The Delay Flight Predictor

  • Where was this image taken? - Visual Geolocalization in the era of Deep Learning.

Our Other Newsletters

 - A free weekly newsletter for programmers.

- A free weekly newsletter for entrepreneurs featuring best curated content, must read articles, how to guides, tips and tricks, resources, events and more.