#PyScript

Łukasz Langaambv
2025-05-13

Stoked for my WebGL tutorial on Thursday morning at @pycon. 3:30h to show all the basic components of 3D graphics? Might be ambitious! But I'll do my best.

Hopefully the conference wi-fi won't betray us 🤞🏻🤞🏻

2025-04-27

Because I do a fair amount of frontend work but think most frontend frameworks are overkill, I use #HTMX and #alpinejs a lot. And @glyph's #NBPy talk made me think about what a #PyScript package that combines both and provides #python handles to both would look like.

What could I build if I had a drop-in #django package that gave me all the interaction I wanted while writing python code?

File formats as Emoji: 0xffae


by @beet_keeper

tldr: https://emoji.exponentialdecay.co.uk

File Formats As Emoji (0xFFAE or 0xffae) might be my most random file format hack yet. Indeed, it is a random page generator! But it generates random pages of file formats represented as Emoji.

The idea came in 2016 with radare releasing a new version that supported an emoji hexdump. I wondered whether I could do something fun combining file formats and the radare output to create a web-page.

Along came a spare moment one weekend, some pyscript, and bit of sqlite, et voilà. File Formats as Emoji (0xFFAE) was made a reality.

Continue reading “File formats as Emoji: 0xffae”

#0xffae #Code #Coding #digipres #digitalLiteracy #DigitalPreservation #emoji #FileFormat #FileFormatIdentification #FileFormats #learning #PRONOM #pyscript #Python #SkeletonTestCorpus #teaching

A screenshot of a file format (fmt/983) in 0xffae. The title 0xffae sits over the top of the original image.An image of the skeleton suite in Linux. The file extensions trigger display of the correct application icon for each of the files and so it looks like you have a lot of different file types around.
Łukasz Langaambv
2025-03-31

I took part in 39 over the weekend and made a game in . It's a single-tap rhythm game. Should work on any desktop browser and most new phones. It was a fun challenge to make a game where the realtime music sync is so important. You want to let people tap a little too late and still have the game allow it. You want it to be playable with Bluetooth headphones and keyboards that add a lot of latency.

Play at ambv.pyscriptapps.com/streamli

The logo screen of the game. STREAMLINE is written in the middle. A single three-dimensional multisegment line spans into the horizon in the background. The aesthetic vaguely resembles the "cyberspace" from TRON or Hackers, with blue-ish green-ish colors dominating.
Alexandre B A Villares 🐍villares@ciberlandia.pt
2025-02-20
2025-02-08

@christyheaton kicks us off at #pycascades2025 by talking about how to make hiking maps with #pyscript, #geopandas, and #streamlit 🥾🚶⛰️
#pycascades #python

Stage with a large white screen in the background with a brown haired woman standing at a podium presenting a talk. The slide has a venn diagram showing the similarities of pyscript, streamlit, and geopandas
2025-02-05

🐍✨ Ever wondered how to bring image recognition to the web? Come join us tomorrow (Thursday) at 7pm at Michigan Python!

I'll be sharing how to build a mobile image recognition app using OpenCV and PyScript using a fun Pokémon example. We'll cover:
- Building mobile-friendly computer vision apps
- Running Python in the browser with PyScript
- Real-world applications of OpenCV
- Live demo and code examples

#Python #OpenCV #PyScript #Pokemon

See you there! 🎯📱

meetup.com/michigan-python/eve

Łukasz Langaambv
2025-02-05
2025-01-28

The PyScript team released the first community newsletter today! 📰🐍 You can sign up at pyscript.net #Python #PyScript

Łukasz Langaambv
2025-01-28

prompt: symmetry.
prompt: something interesting with no randomness or noise.

If there's gotta be no randomness, you need to introduce control. I made this cute discontinued device called the Arc work with . This is usually driven by a UDP server, but turns out browsers can't use UDP, so I wrote a WebSocket bridge. Looks like it works 😎

ambv.pyscriptapps.com/genuary-

Łukasz Langaambv
2025-01-26

prompt: a collision detection system.
prompt: one line that doesn't intersect itself.

The line segments really don't intersect. The first few seconds don't explain it, but things get more obvious later. Sound on.

Made with :
ambv.pyscriptapps.com/genuary-

Łukasz Langaambv
2025-01-23

prompt: What does wind look like?
prompt: Gradients only.

Looks more like a plant or urchin than wind, but this is where I ended up 🤷🏻‍♂️

This is a breakneck pace. I'm falling behind the submissions, but hopefully things will get smoother from now on.

Made with :
ambv.pyscriptapps.com/genuary-

Łukasz Langaambv
2025-01-21

prompt: What if pi=4?
prompt: Op art.

I couldn't come up with anything impressive for just pi=4 so I combined it with op art, then it came to life, especially if you have a comparison right away. This is why the video contains the Python prompt on the top and you can see the drastic change when pi becomes 4 for a while.

Made with :
ambv.pyscriptapps.com/genuary-

Łukasz Langaambv
2025-01-18

prompt: Generative palette.

A kaleidoscope with LUTs, colored spotlights, and colored textures, synchronized to music.

Made with :
ambv.pyscriptapps.com/genuary-

Mr. Lance E Sloan (IRL) 👤sloanlance
2025-01-15

@ambv
Your post is the first I've heard of . Coincidentally, for years I've been telling colleagues that code are programs, not scripts. 😆

Łukasz Langaambv
2025-01-14

prompt: Pure black and white. No gray.

An animated GIF demonstrating realtime webcam processing with and Three.js. Should work with your webcam, too:
ambv.pyscriptapps.com/genuary-

Yeah, there are 4 colors in the resulting animated GIF, but that's only because it was scaled down from 1080p.

Łukasz Langaambv
2025-01-13

prompt: Triangles Only.

A grid of 6,400 triangles being gently scaled, displaced, and discolored in 3D.

Made with :
ambv.pyscriptapps.com/genuary-

Łukasz Langaambv
2025-01-12

prompt: Impossible day.
prompt: Subdivision.

I combined the prompts since what I wanted to do for ages now is frequency-aware realtime audio visualization. This is the result. Makes most sense with the volume up.

As you can confirm in the source code, the lighting action is all driven by the music.

Made with :
ambv.pyscriptapps.com/genuary-

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst