PythonHub
2.44K subscribers
2.35K photos
49.3K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
GPT in 60 Lines of NumPy

In this post, we'll implement a GPT from scratch in just 60 lines of numpy. We'll then load the trained GPT-2 model weights released by OpenAI into our implementation and generate some text.

https://jaykmody.com/blog/gpt-from-scratch/
Python’s multiprocessing performance problem

While multiprocessing allows Python to scale to multiple CPUs, it has some performance overhead compared to threading.

https://pythonspeed.com/articles/faster-multiprocessing-pickle/
Attrs, Pydantic, or Python Data Classes: Which One Is The Best?

Data classes are a valuable tool in the Python programmer's toolkit. Despite their usefulness (I do like them a lot!), they do have limitations. In this video, I compare dataclasses with two alternative options, attrs and Pydantic, to help you decide which one to use in your code.

https://www.youtube.com/watch?v=zN4VCb0LbQI
Fly through Jupyter with keyboard shortcuts

Learn the 25 most useful keyboard shortcuts for Jupyter Notebook or Lab (including hidden gems) so that you can speed up your workflow!

https://www.dataschool.io/jupyter-notebook-keyboard-shortcuts/
devdata - Improving developer velocity and experience

Developers are the largest expense with software. Improving their productivity doesn't just make sense to the company's bottom line, but it improves morale as they no longer have to wade through a bunch of crap to get started on the job at hand. This data generation technique helps improve your developer experience and testing.

https://www.revsys.com/tidbits/devdata-improving-developer-velocity-and-experience/
Show HN: QuestDB with Python, Pandas and SQL in a Jupyter notebook – no install

https://play.questdb.io/