PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Serializing package requirements in marimo notebooks

Marimo now allows notebooks to serialize their package requirements as top-level comments, enabling users to run notebooks in isolated virtual environments with a single command. This feature, powered by the uv package manager, enhances reproducibility and sharing of notebooks by eliminating the need for separate requirements files and preventing environment pollution.

https://marimo.io/blog/sandboxed-notebooks
Ask HN: Kotlin SpringBoot vs. Python Django for Min Viable Product

https://news.ycombinator.com/item?id=41584157
Deploying a Django app with Kamal, AWS ECR, and Github Actions

The article provides a comprehensive guide on deploying a Django app using Kamal, AWS ECR, and GitHub Actions, offering a streamlined approach to containerized deployment. It covers setting up a VPS, creating a Dockerfile, configuring AWS ECR, setting up Kamal, and automating the deployment process with GitHub Actions, aiming to simplify the deployment workflow for developers.

https://dylancastillo.co/posts/deploy-a-django-app-with-kamal-aws-ecr-and-github-actions.html
13 Python Quirks That Will Surprise You

This video presents 13 peculiar aspects of Python programming, with the final example being particularly confusing for newcomers to the language. Each quirk is demonstrated through code examples, accompanied by explanations for their existence and behavior.

https://www.youtube.com/watch?v=eufjIfVOm8s
rerankers: A Lightweight Python Library to Unify Ranking Methods

Re-ranking is an integral component of many retrieval pipelines; however, there exist numerous approaches to it, all with different implementation methods. To mitigate this, we propose rerankers, a Python library which provides a simple, easy-to-use interface to all commonly used re-ranking approaches.

https://www.answer.ai/posts/2024-09-16-rerankers.html
An In-Depth Guide to Contrastive Learning: Techniques, Models, and Applications

Discover the fundamentals of contrastive learning, including key techniques like SimCLR, MoCo, and CLIP. Learn how contrastive learning improves unsupervised learning and its practical applications.

https://myscale.com/blog/what-is-contrastive-learning