Python Weekly (Issue 554 June 16 2022)

Python Weekly - Issue 554

Python Weekly

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

Articles, Tutorials and Talks

When are two Python objects the same? What does that even mean?

Concurrency is not very intuitive - you need to train your brain to consider what happens when multiple processes execute a certain code block at the same time. In this article I present common concurrency challenges and how to overcome them with minimal locking.

In this video tutorial you will learn how to work with video data in python and openCV. Video processing and data analysis has many applications in machine learning, including object detection, pose estimation, and object tracking. Before you can run machine learning on videos you first need a good understanding of how to read and write video files using python and openCV. This tutorial walks through the basics, step by step, with some examples.

Design patterns are not just a way to structure code. They also communicate the problem addressed and how the code or component is intended to be used. Here are some patterns I’ve observed in machine learning code and systems.

The Transformer has been on a lot of people’s minds over the last five years. This post presents an annotated version of the paper in the form of a line-by-line implementation. 

Retool is the fast way for developers to build and share internal tools. Teams at thousands of companies like Amazon, DoorDash, Peloton, and Brex collaborate around custom-built Retool apps to solve internal workflows.

SPONSORcompatlib or: what not to do in PythonJust because we can, doesn't mean we should.Taking Datasets, DataLoaders, and PyTorch’s New DataPipes for a SpinThe PyTorch team recently announced TorchData, a prototype library focused on implementing composable and reusable data loading utilities for PyTorch. In particular, the TorchData library is centered around DataPipes, which are meant to be a DataLoader-compatible replacement for the existing Dataset class. This article provides some concise examples along with some thoughts after taking the new DataPipe API for a spin.Python TensorFlow for Machine Learning – Neural Network Text Classification Tutorial This course will give you an introduction to machine learning concepts and neural network implementation using Python and TensorFlow. Kylie Ying explains basic concepts, such as classification, regression, training/validation/test datasets, loss functions, neural networks, and model training. She then demonstrates how to implement a feedforward neural network to predict whether someone has diabetes, as well as two different neural net architectures to classify wine reviews.Pandas vectorization: faster code, slower code, bloated memoryWhen you’re processing data with Pandas, so-called “vectorized” operations can significantly speed up your code. Or at least, that’s the theory. In practice, in some situations Pandas vectorized operations can actually make your code slower, or at least no faster. And they can also significantly increase memory usage. Let’s dig in and see what vectorization means in Pandas, when and why it helps, and when it’s harmful.Interesting Projects, Tools and LibrariesoncallDeveloper-friendly incident response with brilliant Slack integration.makemoreThe most accessible way of tinkering with a GPT - one hackable script.svg.pyType-safe and powerful Python library to generate SVG files.HumanNeRFHumanNeRF turns a monocular video of moving people into a 360 free-viewpoint video.dalle-flowA Human-in-the-Loop workflow for creating HD images from text.flexmeasuresThe intelligent & developer-friendly EMS to support real-time energy flexibility apps, rapidly and scalable.PySRHigh-Performance Symbolic Regression in Python.friendly_idleVersion of friendly-traceback designed to work with Python's IDLE.VisualkerasVisualkeras is a Python package to help visualize Keras (either standalone or included in tensorflow) neural network architecture.New ReleasesPython in Visual Studio Code – June 2022 ReleaseThis release includes improvements to: 

  • Localization support

  • Python interpreter discovery 

  • Jupyter extension support on vscode.dev/github.dev  

  • Insiders program for Pylance  

Upcoming Events and WebinarsPyAmsterdam Meetup June 2022There will be following talks

  • Creating Python Code with Copilot

  • Writing bug-free Python code: a journey from tests to formal verification

Virtual: PyLadies Dublin The workshop topic is Image search with DocArray. 

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.