How Python Asyncio Works, From 0 to Senior in Python and more
Fine Tuning LLM Models – Generative AI Course, My First Billion (of Rows) in DuckDB with some more interesting articles, packages and projects
News
Django 5.1 alpha 1 released
Interesting features are going to come like query_string template tag, PostgreSQL Connection Pools, Middleware to require authentication by default, etc. Check full details at release notes.
JupyterLab 4.2 and Notebook 7.2 are available!
This new minor release of JupyterLab includes 3 new features, 20 enhancements, 33 bug fixes and 29 maintenance tasks.
Articles
freecodecamp.org came up with another great tutorial about how to fine-tune LLM models. This tutorial by Krish Naik covers fine tuning using QLORA and LORA, as well as Quantization using LLama2, Gradient and the Google Gemma model.
# Krish Naik
My First Billion (of Rows) in DuckDB
When you want to process 450Gb/1billion rows of data we think in all the directions like PySpark, Bigquery and etc. If someone says it can be processed with one Python package(DuckDB) without using/installing any fancy tools can you believe it? That’s what João Pedro did and explained in this article.
# João Pedro
How Python Asyncio Works: Recreating it from Scratch
Do you understand how asyncio works behind the scenes? Read this article by Jacob Padilla you will get a fair understanding of it. He explained the whole picture of it - generators, event loop, yield, yield from, await.
# Jacob Padilla
If you like ASCII art then you should check this video. Al Sweigart took it to the next level. He named it Scroll Art. There are great examples at scrollart.org check it out.
# Al Sweigart
From 0 to Senior in Python: Python under the hood — the interpreter and memory managing
Olof Baage took simple examples and explained about 3 concepts: How Python gets interpreted, How Python uses memory & Immutable vs. Mutable Data Types. Especially “How Python uses memory” will surprise you if you don’t know this part well.
# Olof Baage
101 Advanced Everyday Python for Data Scientists (Part 1)
Another amazing & long article by Tushar Aggarwal. This time he covered 101 Python scripts with explanations for data scientists which we use often.
# Tushar Aggarwal
Beyond Basics: Python Dictionary Tricks for Professionals
Dictionaries are one of the most used data structures. People sometimes overuse it also. If you want to add some more functionality to it then you should check this article by Rahul Beniwal. He covered some interesting examples like Creating a case-insensitive Dict, a Clean Default Dict, Accessing keys as object attributes, Creating an Immutable Dict & Creating a nested default Dict.
# Rahul Beniwal
Interesting Packages and Projects to explore
Bleach - It is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes.
wagtail - A Django content management system focused on flexibility and user experience.
Xee - An Xarray extension for Google Earth Engine.
About Upcoming Python Events
Building Python Communities Yaounde
Jun 1 – 2, 2024
DjangoCon Europe 2024
Jun 5 – 9, 2024
Canberra Python meetup
Jun 6, 2024
DFW Pythoneers 2nd Saturday Teaching Meeting
Jun 6, 2024
PyCon Colombia 2024
Jun 7 – 9, 2024