nteract / hydrogen

:atom: Run code interactively, inspect data, and plot. All the power of Jupyter kernels, inside your favorite text editor.
https://nteract.gitbooks.io/hydrogen/
MIT License
3.91k stars 335 forks source link

Interactive input in output area #2154

Open WithoutTheBS opened 2 years ago

WithoutTheBS commented 2 years ago

:memo: Summary

Currently, .py programs with input prompt the creation of an awkward immovable and uncloseable input box at the top center of the window. Input text prompts aren't logged in the hydrogen output dock, and inputs aren't tracked either. It would be cool if the Output Area included those things.

:checkered_flag: Motivation

Well, basically it would allow you to run short, interactive programs while keeping track of the inputs and when they were prompted. It would allow you to have two tabs open in atom, one with the source code and one with the running script, while retaining full visibility of what's happening. Imagine python IDLE; but scripts execute in the same window, just in a different tab that you can view side by side.

:runner: Approach

Well, it would basically mean making the Output area I/O. Not sure how this would be accomplished in atom, I'm just a newb.

:anchor: Drawbacks

I can't really think of a solid reason not to have the option at least for the Output area to be I/O.

:thinking: Alternatives

I mean, just running idle or visual studio or the python file through any CLI in a separate window, but where's the coolness in that?

:question: Unresolved questions