Show more

By the way for various reasons I happen to have a bunch of Google Open Source swag to give away and nowhere to give it away, so if you are at and want a flashlight, let me know.

@pganssle giving a talk walking those familiar with unittest on the basics (and some advanced items) on #pytest at #PyConUS

I use pytest daily, but still found this talk pretty helpful. (Note to self: '--stepwise')

#PyCon

Pro tip for #pyconus #pycon speakers, presenters, tutorial hosts - dark text on white background is more legible than vice versa. The projector does a better job at projecting white light and the dark text shows off in a better contrast. As a member of the audience it’s more legible on a projector screen than white text on dark background - especially from far.

I have a very specific question about Matplotlib usage at NASA in the Science Mission Directorate:

Does anyone know of usage of Matplotlib specifically in the Biological and Physical Sciences Division?

#pycon2024 #PyCon #PyConUS2024

If you are coming in person to #PyConUS in Pittsburgh this weekend, and are comfortable playing the guitar in public, let me know? I may be preparing a surprise for the 20th anniversary of Beautiful Soup harihareswara.net/posts/2024/c .

I’m thinking small, clearly labeled Tupperware containers and a few scoops will maybe put customs inspectors in a less suspicious frame of mind?

Show thread

Ok, I am traveling to Spain soon, and when I travel I usually bring a bit of protein powder (I put it in cottage cheese or yogurt to add some flavor and texture).

However, I suspect that my usual approach — Ziploc baggies in a freezer bag — might invite, uh… extra scrutiny… at customs (see photo).

Anyone have alternative ideas about how to transport this stuff without creating suspicion? The original packaging won’t work because it is very bulky.

I've just released cibuildwheel 2.18.0, with prerelease support for CPython 3.13 - set CIBW_PRERELEASE_PYTHONS to test building 3.13 wheels! (No free-threading yet, waiting on binaries & pip) github.com/pypa/cibuildwheel/r #python #release

> "#Python 3.13 just hit feature freeze with the first beta release today. Just before the feature freeze, a shiny new feature was added: a brand new Python REPL."

> My favorite Python 3.13 feature. treyhunner.com/2024/05/my-favo

They finally fixed the 'exit' thing! Yay! 🎉 🥳 🎈

#programming

Next month, @the_compiler is organising a pytest sprint in Austria, next to the Swiss border.

There's also a possibility for paid travel/accommodation.

See github.com/pytest-dev/sprint for more info and signup.
#Python #pytest #sprint

What better way to spend Friday afternoon than watching me talk about Chapter 7 of Probably Overthinking It?

"Causation, Collision, and Confusion"

youtube.com/watch?v=8rUm46mk0Y

I was at Google today to give a talk about Chapter 7 of Probably Overthinking It: Causation, Collision, and Confusion.

I'll post the video when it's available, but in the meantime, the slides are here: docs.google.com/presentation/d

I have set up Mixtral 8x7B to generate Spanish example sentences for my Anki deck and I came across one that seems to randomly be in Catalan. Fun times.

Any folks know of a library for drawing pretty-looking, clean boxes arranged in various patterns?

I am looking to make some simple images like this to demonstrate addition, subtraction, multiplication, etc.

Bonus points if it has support for some existing pedagogical framework (e.g. “ten frames”).

Of course, a countervailing force here is that they are also stupidly good at translation, so the utility of actually learning another language is reduced.

They can explain nuances in a way that automatic sentence-to-sentence translation can’t, and you can give them enough context to let them know how to select the right way to translate what you want to say into idiomatic speech.

Of course, you will sound like an obsequious PR person if you don’t take steps to avoid that. 😛

Show thread

As I’ve been learning Spanish these past months, I am almost compelled to create an LLM-powered language learning application. It is really hard to do spaced repetition without it turning into a grind, and the ability to create (and parse!) custom, idiomatic text programmatically could be an absolute game changer here.

They are also really good at answering questions about how language use and I haven’t noticed much (anything?) in the way of hallucination with frontier models.

@hugovk As stated at the end of this blog post, PyCon US official hashtag is #PyConUS 😅 I guess we need to make that even more obvious and repeat that statement many times. pycon.blogspot.com/2023/10/pyc

Happy Friday Python Friends (and non-Python Friends too)!

I'll be attending my first-ever PyCon US this year, so if we haven't seen each other in a while, let's meet up!

🎲 Do you like Python's little CLIs? For example:

$ python -m http.server
$ python -m webbrowser python.org
$ python -m uuid
$ python -m calendar

What about adding one to `random`?

$ python -m random curry "fish n chips" tacos
curry

$ python -m random 6
6

$ python -m random 2.5
1.6423361547011504

Give your feedback on my proposal at
discuss.python.org/t/command-l

If there's support we *might* be able to get it into 3.13 before May's beta cutoff! 🤞

#Python #Python313 #CLI #random

Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.