Re

Reactive Jupyter- reactive execution of Python in VSCode

Hacker News

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 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!

Share card

Actual performance

8points
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
92%92% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, new, activity · Missing: agents, macos, agent
86%86% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
45%45% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: personal, way · Missing: mobile apps, ios, entrepreneurs
45%45% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
37%37% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Pr
Preview Python Execution from VSCode23%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Preview Python Execution from VSCode

Hacker News3
Vi
Visualize your Python code execution in VSCode32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Visualize your Python code execution in VSCode

Hacker News2
Py
Python live coding extension for vscode32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python live coding extension for vscode

Hacker News3
Ac
Acmeish for Vscode28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Acmeish for Vscode

Hacker News1
Co
CodeSandbox for VSCode28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CodeSandbox for VSCode

Hacker News2
Ed
Edamagit – Magit for VSCode28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Edamagit – Magit for VSCode

Hacker News93
Sy
Syntax Highlighting for Markdoc in VSCode51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Syntax Highlighting for Markdoc in VSCode

Hacker News1
Ta
Tawazi – A Python library for parallel execution of functions in DAGs82%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tawazi – A Python library for parallel execution of functions in DAGs

Hacker News4
DB
DBOS transact – Ultra-lightweight durable execution in Python81%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DBOS transact – Ultra-lightweight durable execution in Python

Hacker News89
Se
Serverless Asynchronous Task Execution in Python47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Serverless Asynchronous Task Execution in Python

Hacker News4