-
Notifications
You must be signed in to change notification settings - Fork 295
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
Output from functions running out of the standard execution path are captured and displayed in VS Code but not in Jupyter Notebook #15996
Comments
Thank you for filing this issue and sorry you are running into this.
This would seem to be a regression in Jupyter Notebook 7, I know plenty of users have relied on this working in the past. Closing as this is by design. |
Hi. Thanks for the response and sorry to bring it up again but I have dug further into this issue by creating many different environments in Anaconda to test versions and made some discoveries. I noticed as I was testing this in JupyterLab (4.2.5) that it looks like the output from a source such as a widget button click is directed to the Log rather than to the cell output. Apparently, it has been working this way in JupyterLab for several years and with Jupyter Notebook v7 seemingly now being based on a JupyterLab code foundation rather than a continuation of the legacy v6 and older Notebook code v7 has now too taken on this behavior. I do not believe it is a bug in v7. From all I am reading this is intended behavior and the VS Code extension is not reflecting the change. See this comment: Other posts with similar issues: Obviously I need to adjust my code to use the output widget for my original output to be replicated in modern Notebook and JupyterLab but VS Code should mirror this behavior to prevent people like me developing exclusively in VS Code and then finding key output is not displayed in Jupyter Notebook/JupyterLab |
History: This was deliberately added here #9503 |
See also jupyter-widgets/ipywidgets#3949 |
Expected behaviour
I'm not sure what is the correct behavior, but I would expect VS Code and Jupyter Notebook to display output from background processes and functions called outside of the standard execution flow in a similar manner.
Actual behaviour
VS Code displays any kind of output (stdout, stderr, rich content/HTML) from background processes or functions running out of the standard execution path whereas Jupyter Notebook v7 does not. Version 6 of Jupyter Notebook does appear capture, and display output the same as VS Code.
Steps to reproduce:
I developed an entire notebook in VS Code that worked perfectly only to fund that as I tested it in Jupyter Notebook little of my output was displayed for users running Jupyter Notebook v7 (v6 appears to behave as VS Code does). I don't know which behavior of the two is correct but whatever it is they should work similarly.
The text was updated successfully, but these errors were encountered: