Show HN: Scripton – Python IDE with built-in realtime visualizations (opens in a new tab)scripton.dev
449 pointsWhy another Python IDE? Scripton hopes to fill a gap in the Python development ecosystem by being an IDE that:
1. Focuses on easy, fast, and interactive visualizations (and exposes rich JS plotting libraries like Observable Plot and Plotly directly to Python)
2. Provides a tightly integrated REPL for rapid prototyping and exploration
3. Is script-centric (as opposed to, say, notebook-style)
A historical detour for why these 3 features: Not so long ago (ok, well, maybe over a decade ago...), the go-to environment for many researchers in scientific fields would have been something like MATLAB. Generating multiple simultaneous visualizations (potentially dynamic) directly from your scripts, rapidly prototyping in the REPL, all without giving up on writing regular scripts. Over time, many switched over to Python but there wasn't an equivalent environment offering similar capabilities. IPython/Jupyter notebooks eventually became the de facto replacement. And while notebooks are great for many things (indeed, it wasn't uncommon for folks to switch between MATLAB and Mathematica Notebooks), they do make certain trade-offs that prevent them from being a full substitute.
Inner workings:
- Implemented in C++ (IDE <-> Python IPC), Python, TypeScript (UI), WGSL (WebGPU-based visualizations)
- While the editor component is based off Monaco, the IDE is not a vscode fork and was written from scratch. Happy to chat about the trade-offs if anyone's interested
- Uses a custom Python debugger written from scratch (which enables features like visualizing intermediate outputs while paused in the debugger)
Scripton's under active development (currently only available for macOS but Linux and Windows support is planned). Would love for you to try it out and share your thoughts! Since this is HN, I’m also happy to chat about its internals.
Comments (139) 52 threads
Earlier commentsFor me personally, though, it's a hard sell. Since I just paid my JetBrains renewal, I am currently very aware that I'm paying $173/year for *all* of their IDEs, and PyCharm Pro is very good.
Just from looking through the site for this one, while it does some *SUPER* nice things, it doesn't replace everything I use from just PyCharm Pro, let alone from the other JetBrains tools that I also use and get in that subscription.
So it costs more than my current subscription, and wouldn't let me replace it even if the Linux version suddenly shipped today.
I love the competition in this space and wish you good luck. But, as someone who's obviously willing to pay for tools in this space, the only ways I could suggest that you could get my business would be:
1. Grow your feature set to the point that I could replace my JetBrains subscription with yours.
2. Become a JetBrains add-on, and reduce your price to something less than $10/mo.
Both of those look like tough roads... I hope you succeed wildly, even so.
While the initial focus is on visualization capabilities, the missing IDE features are actively under development. Beyond cross-platform support, which PyCharm features would you consider essential and would like to see the most?
* uv/poetry detection and environment use
* refactoring
* unittest/pytest support
* docker compose service support (e.g. if I have a docker-compose.yml file in my project directory with redis and postgres services, pycharm lists the services in a UI and lets me start/stop/restart them easily from the IDE.)
* django app/model detection and completion from those models as I'm building things that query them
* "compound" runners, so I can start a npm watcher and a python watcher at the same time, and bounce them together as I iterate
* The debugger is really, really good. And it's practically automatic to jump from the PyCharm debugger to the Clion debugger when I'm dealing with a python package that has C++ modules.
* django and jinja template support as I build out things that present my results.
* ability to connect it to a data source and query/explore using sql directly against that, and see tabular results to help guide my other explorations
* Vim emulation in the editor... IdeaVim is a really good vim implementation, and I find I hate working without vim movements and commands.
Don't mind the subscription pricing -- keeps all parties aligned.
The UI toolkit is especially exciting, been looking for something to replace streamlit.
Interesting! What are the trade-offs here?
For certain projects, forking/extending may be the right call. However, for the degree of customization required for Scripton, writing from scratch turned out to be the more viable path (vs attempting to workaround/rewrite yet another component in vscode). The trade off here, of course, is that you lose out on the familiarity and ecosystem that VSCode has built over nearly a decade. The hope is that Scripton remains sufficiently familiar (eg: Search / CMD+P / etc work similar to vscode) while being compelling enough in its own right.
All comments shown.
Couldn't load more comments. Check your connection and try again.