News for hackers. Stuff that matters.

ntoll

You mean, collaborative coding a la Google docs?

Nope. :-)

There is no back-end through which one could coordinate such things. It's all done in-browser.

Ever wanted to quickly share and run Python code via a URL? Well, now you can!

PySnippets is JSFiddle or CodePen but for Python in the browser (via PyScript).

It's a static website. All the logic runs in the browser. No back-end or cloud storage is used - instead, code is URL encoded. Share the URL, your code is in there already, and the static target re-hydrates it then runs it. Yeah, yeah, "snippets" because this is for small scripts. ;-)

This is a goofy "fun" project just to see how quickly something like this could be created. The initial version took just 3 hours to build. Here's a sample (SNAKE game) project: https://is.gd/q3209l (click through to see how its done.)

Feedback welcome..! Thank you!

Re:Python performance myths and fairy tales on Wednesday August 06, 2025 @08:24AM (#44811043)
Antonio is a star. He's also a very talented artist.
Re:Mornington Crescent on Tuesday February 13, 2024 @03:00AM (#39355567)
I wonder what old school international grandmasters like Theydon Bois (France), Pim Li Ko (China) and Will Esden-Green (UK) would think of the modern game... We've lost the creativity, bravery and elegance of such players, from a time when taking part was more important than winning.
Re:Sonic Pi – The Live Coding Music Synth for Everyone on Tuesday November 08, 2022 @10:19AM (#33519910)
Thirded... our world is a better place because of Sam and his contributions.
I skim in the morning for "News".

I avoid otherwise because of the "Hacker" (i.e. tech bro) vibes.

Re:The Ecology of Freedom (1982) on Friday January 21, 2022 @02:56AM (#30020501)
https://theanarchistlibrary.org/library/lewis-herber-murray-...

(Lewis Herber is pseudonym of Murray Bookchin)

Re:Pico CSS Framework on Wednesday December 15, 2021 @04:16AM (#29563651)
This is a similar project (by a friend), that recreates the look and feel of the outstanding UK Government design system:

https://gdcss.netlify.app/

Same idea and Pico (classless, simple, small etc).

Re:Algorithmic symphonies from one line of code (2011) on Friday September 17, 2021 @03:50AM (#28562466)
I managed to get MicroPython versions of these working on a micro:bit with the speaker directly plugged into the IO pins. Lots of fun, and MicroPython was definitely quick enough. :-)
... writing a blog can also be life changing.

Putting thoughts into words for others to understand is a creative activity that keeps on giving for all sorts of subtle reasons. (What reasons..? Write a blog and find out for yourself!)

I read this way back when. It deserves its status as a classic. I highly recommend it.
Re:The rinds of the Cheese Shop menu on Tuesday August 03, 2021 @04:08AM (#28046783)
Some fun archaeology and digging around into the dark and weird corners of PyPI. I, for one, didn't realise that "Kenneth Reitz" is a perfectly valid version number! :-)
Re:Teaching other teachers how to teach CS better on Monday July 12, 2021 @04:30AM (#27808241)
The ultimate source of this is Aristotle... the original is (from memory), something like this:

  Those who can, do; those who understand, teach.
Re:Technology Traps (1978) [video] on Sunday July 04, 2021 @06:30AM (#27728604)
Perhaps a more humorous illustration of the same principle:

https://www.youtube.com/watch?v=sAz_UvnUeuU

The only failure of education that I see around here relates to the schooling of HN users who don't have the wherewithal or self awareness to understand that they're pushing ignorant, prejudiced and unkind opinions.
Re:The Grand Unified Theory of Documentation on Friday April 16, 2021 @04:21AM (#26831091)
Eyup Daniele, it's great to see this get some recognition and visibility. It's a very useful framework for documentation.

Best of luck with the job hunt..!

Re:1980: MUD on Thursday March 11, 2021 @09:39AM (#26424437)
Me too
Re:CircuitPython: Programming Hardware in Python on Wednesday January 27, 2021 @06:15AM (#25926832)
I'm an open source contributor. I've worked/collaborated with Adafruit. They support the ecosystem. Perhaps they don't blow their own trumpet in this respect (and should, so you could see how the do give back).

My experience is a counter example of your comment, "...instead of contributing to the greater success of the open source maker movement that enables their existence".

The "bits that are missing" relate to Python's standard library, which is huge. MicroPython has svelte versions of many of Python's standard library modules... Pick and choose what you need, given your specific context. MicroPython is pretty friendly in that respect.

FWIW, MicroPython, as a language, is a complete reimplementation of Python (and an amazing feat of engineering on the part of Damien and his collaborators).

Re:Changes to the pip dependency resolver in 20.3 on Thursday November 19, 2020 @03:17AM (#25147327)
Yup. Kudos to the maintainers and volunteer contributors who continue to work on these tools.

As some of the other comments here show, it's a thankless task.

Re:What is the core of the Python programming language? on Thursday July 02, 2020 @05:46AM (#23711553)
MicroPython is an amazing achievement, and Damien has done fantastic work growing the project.
I know Sam (the creator) and can vouch that he's a good guy and a bit of a legend.

He hasn't had the easiest of rides when it comes to sustainable support for his work. I'd encourage folks to contribute here: https://www.patreon.com/samaaron (he'll certainly do wonderful things with such support).

Re:LambdaMOO takes a new direction (1992) on Wednesday March 25, 2020 @04:53AM (#22682967)
LambdaMoo, BayMoo (and the now defunct ParkMoo) were all favourite haunts of mine in the mid-90s when I was at university. Perhaps I'm feeling nostalgic for those innocent pre-social-media times: I'm in the process of writing a Python "MOO" as a weekend fun project -- a sort of interactive literary world inhabited by other writers / creators / explorers.

If you're interested in this sort of thing, Richard Bartle's "Designing Virtual Worlds" is the classic to read.

Re:Ask HN: How Can I Learn Music Theory? on Wednesday December 18, 2019 @10:38AM (#21825900)
A brief look around their website will reveal a wealth of high quality educational resources.
Re:Ask HN: How Can I Learn Music Theory? on Wednesday December 18, 2019 @05:16AM (#21823503)
Re:Mu: A minimal hobbyist computing stack on Friday October 18, 2019 @11:03AM (#21291967)
Note to self (as the author of the "Mu" editor, https://codewith.mu/) - two letter project names are just asking for name collisions. ;-)
Limor and Adafruit are an inspiration.
Re:QEMU 4.0 adds micro:bit emulation support on Wednesday May 22, 2019 @05:34PM (#19985779)
I was directly involved in this project.

For the record, the micro:bit was originally based upon the CodeBug (http://www.codebug.org.uk/) by Andrew Robinson, who definitely deserves a mention in this story.

I, too, share your hope that it has "Sparked" curious minds (old and young). ;-)

Older »