-
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
Calls to input()
should flush stdout when executing cells
#13039
Comments
@MiguelGuthridge please could you try this in Jupyter Notebook (outside vscode) |
@MiguelGuthridge
Also based on the logs, you seem to be interrupting the cells, is that deliberate. |
Here's a screen recording: 2023-03-31.16-57-51.mp4The repo with the code is available here: https://github.com/MiguelGuthridge/testJupyter It doesn't happen immediately in this case, but the issue is present after a few inputs. This was done in a brand new environment with the latest versions of all dependencies. Here's my
|
Also here's the output for Note that at the top, the dependencies aren't installed - I installed them when prompted by VS Code.
|
Thanks for the logs, I was able to repro this issue once. |
Glad to hear it's not just me :) If there's anything else I can do to help, I'd love to do as much as I can |
Thanks, at this stage, there's nothing else we need, |
@MaddyGuthridge Please can you test this in the latest version of VS Code and Jupyter extension. |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Hello, @DonJayamanne ! Sorry for the delayed reply. I can confirm that this is still an issue. Occasionally, lines are not printed before calls to |
Environment data
Expected behaviour
When I run a code block containing
input
andprint
functions, stdout is flushed whenever theinput
function is called, so that I can see the full output before typing my input.Actual behaviour
The buffer only flushes once every 2 inputs on average, meaning that I often can't see the outputs of cells that I need to interact with.
Steps to reproduce:
Run a cell such as this:
Observe that the print-out happens inconsistently.
This can be fixed by adding a hack such as the following, but it is extremely inconvenient for me to do this to all of the notebooks I need to work with.
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)The text was updated successfully, but these errors were encountered: