Profile avatar
fohrloop.com
pythonista, data scientist, optimizing my keyboard layout
46 posts 58 followers 397 following
Regular Contributor
Active Commenter

Faster* static type checking for Python is coming! #python #redknot #red-knot (*To be seen, but very, very likely)

#FreeJavaScript update: Oracle has informed us they won’t voluntarily withdraw their trademark on "JavaScript". Next: they’ll file their Answer and we’ll start discovery to show how "JavaScript" is widely recognized as a generic term and not controlled by Oracle.

Just bumped up to FastHTML. It's a new python web framework for creating HTML apps with HTMX and ASGI. www.fastht.ml As a side note. Interesting that they chose to use package name "python-fasthtml" and not "fasthtml" (which is still available on PyPI). #python #htmx #FastHTML

Spicy food leads to road fatalities! /s Few other interesting ones at www.tylervigen.com/spurious-cor... Image source: @cremieuxrecueil (X) #datascience #datascientist #science #data #graphs #causation #correlation

Created a small python package for making monotonically increasing smoothing B-spines: github.com/fohrloop/pen... #python #datascience #bsplines

Panel Graphic Walker A new way for creating Tableau like data exploration interfaces with #python and just a few lines of code! It's a basically a Panel (Holoviz) widget which brings the JS project graphic-walker into python. github.com/panel-extens... #datascience #dataanalysis #eda

Filtering data with few peaks, like a spectrum? Weighted Whittaker Smoother seems like a good alternative: - Filters noise out effectively - Can be adjusted on peak wavelengths to filter less - Quite simple eigenvector.com/wp-content/u... #datascience #filtering #datafiltering

Just watched an astonishing video explaining splines both visually and at some level mathematically. The video covers Bezier curves, Hermite Splines, Catmull-Rom Spline, Linear Spline and B-Spline. No wonder it has 1.5M views! www.youtube.com/watch?v=jvPP... #math #splines #scientist #datascience

For Maths fans, 2025 is a square. 45² = 45 x 45 = 2025 Also, 9² x 5² = 2025 40² + 20² + 5² = 2025 My favourite? 1³+2³+3³+4³+5³+6³+7³+8³+9³ = 2025 #Mathematics #teaching #education

variable names *are* code comments

The slides for my lectures on (Bayesian) Active Learning, Information Theory, and Uncertainty are online now 🥳 They cover quite a bit from basic information theory to some recent papers: blackhc.github.io/balitu/ and I'll try to add proper course notes over time 🤗

matplotlib tip: It's possible to move back and forward zoom levels in the GUI with left and right arrow keys (and C and V for left hand use). That makes looking around data much faster (no need to hit the home button and start over) #python #datascience #matplotlib #plots

Monte Carlo methods use random sampling to solve tough problems (optimization, integration, ...) @13:55 When your simulations are expensive, you want to be clever about sampling (Quasi Monte Carlo) -> less samples, same info @32:00 cleverness of different sampling methods compared #datascience

Looks like a library that could be useful when writing unit tests! It's for creating and updating inline snapshots in tests. #python #pytest #pythontesting #unittests

Just learned about ClickPy: an alternative to pypistats.org & pepy.tech — #python package download stats 🐍📊 Highlights: - 📊 FULL history of the package - 🔍 Filter by time range and see widgets updating (YES!😍) - ⭐ GitHub star history - 📦 Dependents Example: clickpy.clickhouse.com/dashboard/wa...

Today I learned about PSQL for DuckDB. It looks like SQL, but with none of the nested bits. https://buff.ly/3ZV3p8I

A Bangladeshian guy has been developing a 2k GitHub star neovim extension with his smart phone. Now the community is getting him a laptop. github.com/OXY2DEV/mark... #opensource #gofundme #neovim

I've somehow completely missed that #Python 3.12 has now type statements: type Foo = int | str type Point[T] = tuple[T, T] are now correct syntax (note: No need for TypeVar or defining T). www.youtube.com/watch?v=y8UU...

scipy-stubs just added an AI generated "podcast" to their README. A new way to familiarize yourself with a new project? And I'm not a genAI advocate, so please don't mute me just based on this 🤣 github.com/jorenham/sci... #python #pythonprojects #opensource

I have made a few textual apps and all I can do is agree. It's a wonderful piece is software. #python #pythontextualize #pythontui

⏰ whenever - a #python datetime library written in Rust. It's targeted to be a replacement for datetime and/or #pendulum Seems it just had it's first birthday last month and has been starting to gain some traction. github.com/ariebovenber... #pythonlibrary #pythontips #pythonnews #pythondev

this is what i mean when i said that a lot of normies seem to think chatgpt is an actual agent as opposed to a machine that is trying to predict the token the latter behavior is useful but not always optimizing for truth

Have you used "raise ... from None" in #Python? If so, what was your use case for "from None"? What was the original exception that you were suppressing from the traceback and do you feel that suppression was helpful for users of your code (or were you just trying out a new thing you learned)?

Splitting a string once in #Python: .split() has maxsplit=, but .partition() can be better:

rtoml: A fast toml library for #python written in rust!