Niko Föhr
banner
fohrloop.com
Niko Föhr
@fohrloop.com
pythonista, data scientist, optimizing my keyboard layout
#pypistats has been down for two weeks, but now PSF is working on taking stewardship over the service

github.com/crflynn/pypi...

#python #pythonnews
pypistats.org is down · Issue #82 · crflynn/pypistats.org
Hey @crflynn, I'm not sure if you're already aware of this, but, in case you're not, it looks like pypistats.org is down, unfortunately. This is what I see:
github.com
August 15, 2025 at 7:08 PM
AWS Cloud service users: Be careful with S3 bucket naming

A private empty S3 bucket just caused a 1300 USD bill overnight. Someone knowing your bucket name can generate PUT requests towards it and basically do a "Denial of Wallet" (DoW) attack against you.

youtu.be/OWggTcVgiNg?...
Private EMPTY S3 Bucket COST ME $1300
YouTube video by ThePrimeTime
youtu.be
April 4, 2025 at 6:38 PM
dayplot looks like a great library for getting a yearly/monthly/weekly view on time-series data! 🚀📅

josephbarbierdarnal.github.io/dayplot/tuto...

#python #datascience #datavisualization
March 22, 2025 at 3:56 PM
Faster* static type checking for Python is coming!

#python #redknot #red-knot

(*To be seen, but very, very likely)
We’re building a new static type checker for Python, from scratch, in Rust.

From a technical perspective, it’s probably our most ambitious project yet. We’re about 800 PRs deep!
January 30, 2025 at 8:11 AM
Reposted by Niko Föhr
#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.
January 8, 2025 at 5:41 PM
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
FastHTML
Modern web applications in pure Python
www.fastht.ml
January 16, 2025 at 9:41 AM
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
January 8, 2025 at 11:25 AM
Created a small python package for making monotonically increasing smoothing B-spines: github.com/fohrloop/pen...

#python #datascience #bsplines
January 7, 2025 at 11:56 AM
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
January 3, 2025 at 4:37 PM
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
January 3, 2025 at 12:26 PM
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
The Continuity of Splines
YouTube video by Freya Holmér
www.youtube.com
January 2, 2025 at 7:01 PM
Reposted by Niko Föhr
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
January 1, 2025 at 1:56 PM
Reposted by Niko Föhr
variable names *are* code comments
December 22, 2024 at 8:22 PM
Reposted by Niko Föhr
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 🤗
December 17, 2024 at 6:50 AM
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
December 16, 2024 at 3:50 PM
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
December 15, 2024 at 4:16 AM
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
December 14, 2024 at 10:36 AM
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...
December 14, 2024 at 8:47 AM
Reposted by Niko Föhr
Today I learned about PSQL for DuckDB. It looks like SQL, but with none of the nested bits.

https://buff.ly/3ZV3p8I
December 14, 2024 at 8:00 AM
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
✨ Feature: Thinkpad GoFundMe · Issue #218 · OXY2DEV/markview.nvim
The nature of the feature: Parser(syntax, conceal etc. related) Renderer(style, options etc. related) Support(plugin support, language support etc. related) Other Description: Hi, I've seen you wor...
github.com
December 12, 2024 at 12:15 PM
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...
New In Python 3.12: Type Statement
YouTube video by Indently
www.youtube.com
December 12, 2024 at 9:47 AM
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
GitHub - jorenham/scipy-stubs: Typing Stubs for SciPy
Typing Stubs for SciPy. Contribute to jorenham/scipy-stubs development by creating an account on GitHub.
github.com
December 12, 2024 at 8:51 AM
I have made a few textual apps and all I can do is agree. It's a wonderful piece is software.

#python #pythontextualize #pythontui
December 12, 2024 at 7:00 AM
⏰ 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
GitHub - ariebovenberg/whenever: ⏰ Modern datetime library for Python
⏰ Modern datetime library for Python. Contribute to ariebovenberg/whenever development by creating an account on GitHub.
github.com
December 11, 2024 at 2:03 PM