PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
The Design Philosophy of Great Tables

The article discusses the importance of well-designed tables for effectively presenting data, drawing inspiration from historical tabular design principles. It highlights the Great Tables library's focus on providing various customization options to help users create visually appealing and structured tables for publications, reports, and other data-driven content

https://posit-dev.github.io/great-tables/blog/design-philosophy
👍1
How to survive coding interviews with a single line of Python code

The article discusses techniques for solving coding interview questions using concise, single-line Python code.

https://ivaniscoding.github.io/posts/codeinterview/
Predicting solar eclipses with Python

The article describes how the author was able to write a Python script to compute the position of the sun and moon and predict the location of total solar eclipses, leveraging the Astropy library and other Python packages, all in around 100 lines of code.

https://erikbern.com/2024/04/07/predicting-solar-eclipses-with-python
Building a streaming ChatGPT clone, with Django, Channels, and HTMX

This video walks you through the process of building a ChatGPT clone step-by-step using Django, websockets, and HTMX. Each piece of functionality is broken down into a single commit, then explained and demonstrated. By the end, a fully functional, streaming chatbot app is ready!

https://www.youtube.com/watch?v=8JSiiPW4S0A
SQLAlchemy: The BEST SQL Database Library in Python

Ever heard of SQLAlchemy and thought it sounded like a medieval potion? Well, it's not! SQLAlchemy combines the robustness of SQL with Python's flexibility, making database management not just easier, but kinda fun too! In this video, I’ll take a closer look at this awesome tool.

https://www.youtube.com/watch?v=aAy-B6KPld8
Cosine Similarity and Text Embeddings In Python with OpenAI

The article discusses how to use cosine similarity to compare text embeddings, which are vector representations of text that capture semantic meaning, in order to determine the similarity between different text inputs. It provides example code for calculating cosine similarity between text embeddings generated using the OpenAI API.

https://earthly.dev/blog/cosine_similarity_text_embeddings/
FreeAskInternet

FreeAskInternet is a completely free, private and locally running search aggregator & answer generate using LLM, without GPU needed. The user can ask a question and the system will make a multi engine search and combine the search result to the ChatGPT3.5 LLM and generate the answer based on search results.

https://github.com/nashsu/FreeAskInternet
Testing with Python (part 1): the basics

SummaryThis intro is about dumb test writing, as it's the necessary foundation to learn what comes ...

https://www.bitecode.dev/p/testing-with-python-part-1-the-basics