Reactive Jupyter- reactive execution of Python in VSCode
Hi HN I’ve developed an experimental VSCode extension to keep a Python Kernel in sync with a Python file. (Reactive execution) The extension uses Static Code Analysis to infer dependencies between lines of code. When you modify a line in a file, it will be marked as Stale together with all the lines that depend on it. You can Sync the state with Ctrl+Shift+Enter. In this way, you are always in control. See the Readme for a detailed demo. —------------- The primary limitation of this extension is that it currently relies on Static Code Analysis, which can only do so much. Again, see the…
What it does
In the maker’s words, at launch
Hi HN I’ve developed an experimental VSCode extension to keep a Python Kernel in sync with a Python file. (Reactive execution) The extension uses Static Code Analysis to infer dependencies between lines of code. When you modify a line in a file, it will be marked as Stale together with all the lines that depend on it. You can Sync the state with Ctrl+Shift+Enter. In this way, you are always in control. See the Readme for a detailed demo. —------------- The primary limitation of this extension is that it currently relies on Static Code Analysis, which can only do so much. Again, see the Readme for a discussion. This extension is also in PREVIEW. I’m sure there are bugs around. Both in the Static Code Analysis of more obscure Python idioms (even though it’s pretty robust for the simple ones), and in the interaction with the VsCode APIs (lots of edge cases there). —------------- The intended use cases are machine learning, data analysis, scientific computing or any other application that requires scripting or exploratory coding. The most popular setup for these is Jupyter Notebooks, and this extension could be expanded to work with Notebooks too. On the other hand, right now it is very much built around my personal favourite for these workflows. I’ve used Jupyter Notebooks many times, but I’ve never quite liked them for the following reasons: - For the editing experience, nothing really beats a plain Python file. I want to select, copy, and paste all the code I want anywhere, without Cells getting in my way. - Having an output on every cell produces lots of clutter anyway. For most cells, I want to run them once, keep the code there just in case, but don’t run them again. - And then of course, the Reactivity problem: when you modify a cell, there is usually no way to rerun the affected code only. The VSCode Interactive Window makes for a great setup for 1 and 2. My extension fixes 3. —------------- I’ve wanted to have this extension for years. Only now it became possible thanks to a cool new VsCode Jupyter feature, i.e. the ability to send code from an extension directly to a running Python kernel. Even though I’ve developed this primarily for myself, I’d love to know what you think about it!
Does the same job
all alternatives →

- AVA VS Code extension to quickly add log statements in Python code2022 · github.com · ▲5
I use print() a lot to debug small codebases. Log-booster VS Code extension allows you to insert/comment/uncomment/delete print statements within a Python file. If you happen to use it and like/dislike it, I would love to know. Inspiration: I discovered Turbo Console Log extension (https://github.com/Chakroun-Anas/turbo-console-log) and loved it. I noticed that it doesn't work for Python files. So I tried building one :)
- RPRun Python code on GitHub.dev with zero-setup2022 · marketplace.visualstudio.com · ▲5
We made this extension that lets you run any python code on the web by using Pyodide. You can try it by installing this VSCode extension on GitHub.dev / VSCode.dev. Since it is using pyodide to run python code, there are some limitations which we have listed in the extension’s README page. We made this scrappy extension quickly as a POC for Stanford’s Code in Place program. Let us know if this is interesting and what features should we add next!
- RAReflow – a kanban-style project management software within VSCode2023 · marketplace.visualstudio.com · ▲5
Hi Hacker News I am happy to share my projet: Reflow. Reflow is a VSCode extension that allows you to plan, track, and manage your projects directly within the VSCode editor. With Reflow, you can: - Break down your codebase into customized tasks - Create multiple workspaces, boards and statuses to track projects and sprints - Assign priority, tags, and users directly to the task - Collaborate in real-time with team members within VSCode - Link tasks to code snippets and files Checkout our VSCode Marketplace page to know more about Reflow! Reflow is still in beta and it was developed by a…
- IPInline Python – Rust macro to write Python directly in Rust source code2019 · docs.rs · ▲7
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, March 2024
the whole month →
- 3Y
Life & fun · 2024 · github.com
Microlaunch▲1,116Launch and get feedback on both the idea and product
Dev tools · 2024 · microlaunch.net


