News for hackers. Stuff that matters.

paulshen

Show HN: Natto.dev – live spatial JavaScript environment

https://natto.dev

Hi HN, I've been working on natto.dev for almost two years and it's ready for you to use!natto combines ideas from spreadsheets, design tools, and REPLs to create a live JavaScript environment. You can import NPM libraries, create and render React components, and more in a multiplayer (or local account-less) environment. If you login and create a synced canvas, you can invite other users to...

( Read More... | no comments | on HN )
Re:Show HN: A Spatial Environment for Python on Tuesday May 10, 2022 @11:36AM (#31328378)
Thanks! I'm curious why you want to install it. All the Python runs in your browser and never leaves it. Do you want to use it offline? Or is it a matter of trust? (I understand!)
Re:Show HN: A Spatial Environment for Python on Tuesday May 10, 2022 @11:33AM (#31328354)
Sorry! I meant "spacial interface" referring to how panes are laid out on a 2D canvas.
Re:Show HN: A Spatial Environment for Python on Tuesday May 10, 2022 @01:21AM (#31323738)
good ol' React and TypeScript! The Python magic here is Pyodide.
Re:Show HN: A Spatial Environment for Python on Monday May 09, 2022 @10:34PM (#31322747)
I love that phrase "drag in X". It's closer to how we interact with objects in the real world. Coding should feel more like that!
Re:Show HN: A Spatial Environment for Python on Monday May 09, 2022 @10:31PM (#31322726)
Thanks! Visual programming tools are a big inspiration.

For art browser, I assume you're referring to the JavaScript example https://natto.dev/example/f33b7f5924634fb687a90d85ed03f289

Show HN: A Spatial Environment for Python

https://python.natto.dev/

Hi all! A little background: I've been working on natto.dev, a spatial environment for JavaScript. I'm really excited about new interfaces for code (leveraging metaphors we're good at, spatial reasoning, making state visible, design tools, etc). With all the buzz around PyScript, I discovered Pyodide and got it working inside natto. This Python version is a stripped down version of...

( Read More... | 30 comments | 169 points | on HN )
Re:Show HN: A Spatial Environment for Python on Tuesday May 03, 2022 @10:20AM (#31248628)
Hi all! I've been working on natto.dev, a spatial environment for JavaScript. With all the buzz around PyScript, I found Pyodide and got it working inside natto! It's a beautiful piece of software.

This is a tech demo of what a Python spatial notebook could look like. It's a stripped down version of natto (eg interactive outputs, multiplayer) so please check that out if this interests you!

Thanks! Check out https://natto.dev and go through the tutorial and examples. I'm happy to answer questions or give you a tour as well. Reach out @_paulshen on twitter!
Re:Infinite Mac – Mac OS 8 emulator on Friday April 01, 2022 @12:46PM (#30880303)
I'm not a big "note-taker" but Dendron has stuck with me mainly because of vscode. I spend so much time in vscode already and the familiar UI is a big plus. I also use the vscode vim extension which works just as well with Dendron.
Re:Egui: An easy-to-use immediate mode GUI on Friday August 13, 2021 @02:37PM (#28172620)
Here's the main file of the tictactoe implementation.

https://gist.github.com/paulshen/b04db68c754f73e693cd29a481c...

`update` is similar to React's render function except here it's being called on every interaction (eg mousemove tick) and redrawing the entire screen from scratch! The code runs so fast that this is fine from a perf standpoint. Note that egui has a reactive or continuous mode. You can rerender everything from scratch 60fps (continuous mode) and it'd be fine in most cases.

Older »