July meeting
Date: Monday, July 10th @ 7pm
Princeton Python Monthly: July 2023
Happy summer! Our next meeting is a week from Monday.
As usual we will start with a beginner-friendly review of recent tutorials,
then everyone's introductions/updates;
Chris Curvey will demo Bulk Loading Postgres from Python
and finally Mike's links, Python news, simulations, teaching python, and the usual mix of the latest tools, testing, and tutorials.
And as always, your questions/ideas/doings are welcome--so join us!
Ask us about what we've been doing lately:
Mark just finished the second rendition of his Python for Beginners series at Princeton Public Library.
Note our unchanging meeting url--use the Jitsi meeting link on our home page.
But first, check out AI Study Group this Sunday, which will be broadcast from Ideal Farms, focusing on Visual Q&A for animals vs traditional CNNs.
Meanwhile, we have a chat room that folks can use to ask questions or float ideas: link at bottom of our home page.
events:
02jul 2p AI Study Group [first sundays]
10jul 7p princetonpy meeting [second mondays]
links:
July links: https://www.princetonpy.org/next-meeting/
AI Study Group: https://fubarlabs.org/schedule/
postgres open source relational database: https://www.postgresql.org/
Tutorials:
- Why Are Membership Tests So Fast for range() in Python?
https://realpython.com/python-range-membership-test/ - CLI Tools Hidden in the Python Standard Library / Simon Willison
https://til.simonwillison.net/python/stdlib-cli-tools - How to Flatten a List of Lists in Python
https://realpython.com/python-flatten-list/ - Counting Occurrences in Python With collections.Counter
https://www.pythonmorsels.com/using-counter/ - How to Round Numbers in Python
https://realpython.com/python-rounding/
round() rounds 1.5 up to 2, and 2.5 down to 2!
limits the growth of the error due to rounding
Links:
- Inside python dict — an explorable explanation
- Hash Functions
- Hashing
- make python devex: Towards Clone to Red-Green-Refactor in One Command w/ a ~45y/o Tool
- ngrok for the wicked, or expose your ports comfortably
- Put an io_uring on it - Exploiting the Linux Kernel
- The Online Books Page : Listing over 3 million free books on the Web
- Marginalia Search
- Why hackits are the first thing I teach new classes
- could we fit a hackit into a meeting? any interest?
- in a similar vein: pytudes
- Food for thought:
-
"When information about the capabilities of resources is described with hypermedia, the developer doesn't have to do that work. The just have to simulate a person sitting at their web browser, looking at the web page and deciding what link to click and how to fill out the forms. This is still a difficult task, in fact it's the most difficult part of the task, but it's less difficult than simulating the person and also simulating part of the web browser."
— Leonard Richardson
-
"A Hypermedia Type is a media type that contains native hyperlinking elements that can be used to control application flow"
— Mike Admundsen
-
- new version: JupyterLab 4.0
By rendering only the parts of a notebook that fit in the web browser viewport, JupyterLab 4 is much more efficient than JupyterLab 3 was when working with large notebooks. - new lib: Streamlit Login/ Sign Up Library
- PyCon US 2023 Recap and Recording Release
- How to Make Engaging Programming Videos at realpython
- Python JIT Compilers – Just in time compilation
- Who killed Google Reader?
- "Python can make 3M+ WebSocket keys per second"
- Meta's Threads platform backend is built on Python!
- "Did you know that the backend of Threads is built with Python 3.10? It's running on Instagram's Cinder fork that includes a JIT, lazy-loaded modules, pre-compiled static modules, and a bunch of other interesting tweaks against vanilla Python 3.10."
- My Kind of REPL
- a testing "read-eval-patch" loop
- https://github.com/tophat/syrupy
- bark: Text-Prompted Generative Audio Model
https://github.com/suno-ai/bark - Generating Image Scribbles with Stable Diffusion and ControlNet
https://www.nbshare.io/notebook/604536902/Generating-Image-Scribbles-with-Stable-Diffusion-and-ControlNet/ - Sustainability in Cloud Computing
http://edcrewe.blogspot.com/2023/07/sustainable-coding-and-how-do-i-apply.html
Microsoft Azure was carbon neutral in 2012. It is aiming for 2030 for its whole business (then for 2050 to removing all its carbon debt since it was founded in 1975) - Estimating Wagtail Websites’ Emissions
https://wagtail.org/blog/estimating-wagtail-websites-emissions/
quantifying the carbon footprint of websites built with Wagtail, the Python CMS, based on a dataset of 4,000 websites. Wagtail is looking at potential improvements - Guide to Fine-Tuning Open Source LLM Models on Custom Data
https://stackabuse.com/guide-to-fine-tuning-open-source-llms-on-custom-data/
Choosing an Open-Source LLM Model - symbex Find the Python code for specified symbols https://github.com/simonw/symbex
Similar tools
pyastgrep by Luke Plant offers advanced capabilities for viewing and searching through Python ASTs using XPath.
cq is a tool thet lets you "extract code snippets using CSS-like selectors", built using Tree-sitter and primarily targetting JavaScript and TypeScript. - LlamaIndex (GPT Index) is a data framework for your LLM applications
https://github.com/jerryjliu/llama_index
A key technique that has emerged to exploit non-public or specialized data is “In-Context Learning,” in which the user provides the model sufficient context using the prompt
... rather than spending time and money to fine tune/retrain the LLM - Python FAQ