-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Run block and move down in Python text file without selecting block manually #12176
Comments
We currently have the Interactive Window for running sections of python files against a running kernel, and the "cells" are marked with One big difference with your video is that the output is sent to a separate editor rather than inline, and we don't currently attempt to find implicit code blocks. Could you give that a try and let us know what you think? |
That is what this feature request is for 🙂.
This is the big difference between Atom + Hydrogen and vscode + Jupyter IMO. My point is I don't want to have to use cells. For me as a Python library author and not a data scientist wanting the notebook experience, Hydrogen provides an amazing, seamless development experience because it's so easy to interactively debug a normal Python script (while still getting rich data output by relying on IPython). Inferring code blocks automatically is a big factor in Hydrogen's expressiveness, because I don't have to manually select each region of text every time I run shift + enter.
I do have this set. |
alright, thanks for the feedback - I just wanted to make sure you knew about the functionality since it was related to what you were describing |
I got frustrated enough that I just wrote my own extension (I also figured you likely wouldn't accept/implement python-specific functionality in this repo). I.e. here's a screencast of it in vscode Screen.Recording.2022-11-28.at.10.27.28.PM.movThe code for that extension is super hacky and not tested, but helps me keep my sanity and usual dev workflow now that Atom is mostly dead. |
@kylebarron Wow, this is fantastic! I started using it today. Thank you very much for making it! You may want to share this at this similar issue: #1471. I had just started working on something similar but I will be very happily using yours instead! |
Welcome! With the caveat that it was a quick hack and I can't promise there are no bugs and that I'll spend a lot of time maintaining it going forward 😄
Ah I assumed there had to be an existing issue for this, but couldn't find one after a few minutes of searching. |
I figure I'll close this in favor of #1471 |
(I have tried to search through issues and have not found any relevant results)
Here's the behavior I'm used to in Atom's Hydrogen (with the added hydrogen-python extension). The only thing I'm pressing is Shift + Enter
Screen.Recording.2022-11-26.at.12.15.00.PM.mov
Key points
The text was updated successfully, but these errors were encountered: