{"by":"paulshen","descendants":30,"id":31320335,"kids":[31321620,31323812,31325016,31325765,31322580,31325523,31325685,31324737,31335139,31324985,31321924,31322463,31323716,31322638,31322041,31320352,31320922],"score":169,"text":"Hi all! A little background: I&#x27;ve been working on natto.dev, a spatial environment for JavaScript. I&#x27;m really excited about new interfaces for code (leveraging metaphors we&#x27;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 <a href=\"https:&#x2F;&#x2F;natto.dev\" rel=\"nofollow\">https:&#x2F;&#x2F;natto.dev</a> (eg interactive outputs, multiplayer) so please check that out if this interests you.<p>I&#x27;m excited to share this spatial environment for Python. Imagine Jupyter cells arranged on a 2D canvas.<p>Some key differences from traditional Python notebooks:<p>- By default, cells rerun whenever its code changes or an input reruns, like a spreadsheet!<p>- Dependencies are explicit. There is no parsing or global scope.<p>- Duplicate panes by option-dragging. This is a core interaction in design tools for exploring ideas.<p>- State panes add interactive elements. Check out this scikit demo <a href=\"https:&#x2F;&#x2F;python.natto.dev&#x2F;example&#x2F;de5cae3dfbcb43919981cc1420309756\" rel=\"nofollow\">https:&#x2F;&#x2F;python.natto.dev&#x2F;example&#x2F;de5cae3dfbcb43919981cc14203...</a><p>- Python execution happens in your browser as WASM via Pyodide (implementation detail, not design choice). This is currently a demo, not meant to replace your production ML notebooks.<p>I would love to hear your feedback on any of this and your thoughts on new programming interfaces!","time":1652133444,"title":"Show HN: A Spatial Environment for Python","type":"story","url":"https://python.natto.dev/"}