PythonHub
2.39K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Understanding GPU Memory 1: Visualizing All Allocations over Time

The part 1 shows how to use the memory snapshot tool.

https://pytorch.org/blog/understanding-gpu-memory-1/
A settings pattern for reusable Django apps

The article presents a new settings pattern for reusable Django apps, addressing the challenge of overriding app default settings with project settings. The author discusses the need for a clear and consistent pattern, and the article outlines the proposed solution, which involves inspecting the prefix of the settings to avoid returning random properties of the Django settings.

https://overtag.dk/v2/blog/a-settings-pattern-for-reusable-django-apps
A simple OpenID connect tutorial

Introduction
OpenID Connect is a simple identity layer on top of the OAuth 2.0 protocol. It allows ...

https://spapas.github.io/2023/11/29/openid-connect-tutorial/
Pythonistas, Happy New Year!
Python Gotcha: List Copy Problems

Copying a Python list (or any mutable object) isn't as simple as setting one equal to another. Let's discuss a better way to do this.

https://andrewwegner.com/python-gotcha-list-copy.html
How I Built an Okta Documentation Chatbot in Python

The article describes the development of Oktanaut, a Python chatbot that simplifies access to information on Okta's Developer Documentation. The chatbot was created using OpenAI and Jupyter Notebook, and two versions were developed to offer specific approaches and general knowledge. The first version used LlamaIndex and was trained on Okta's Developer Documentation, generating accurate r...

https://developer.okta.com/blog/2023/12/20/okta-documentation-chatbot