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
Only show the head of the outputs and ensure iopub outputs are correctly displayed #11457
Only show the head of the outputs and ensure iopub outputs are correctly displayed #11457
Conversation
Thanks for making a pull request to jupyterlab! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @echarles I let some minor suggestions otherwise it works as expected.
Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
…n outputs is clickable Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
Co-authored-by: Frédéric Collonval <fcollonval@users.noreply.github.com>
Thx a lot @fcollonval for the review. I have committed your suggestions. |
This needs a quick lint pass. |
@fcollonval @jtpio The code in now linted and CI is green. This is ready for merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All green for me. Thanks @echarles
Benchmark reportThe execution time (in milliseconds) are grouped by test file, test type and browser. The mean relative comparison is computed with 95% confidence. Results table
Changes are computed with expected as reference. |
Thx for the review and approval @fcollonval Will you merge this? |
Doing it now... |
@meeseeksdev please backport to 3.2.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
…nsure iopub outputs are correctly displayed
Thx for the merge @fcollonval I have seen a need for a manual backport to 3.2.x and a branch in your repo. I have seen tags removed by @krassowski To avoid confusion, I have opened #11509 which backport this fix to 3.2.x branch. |
I removed the tag because the backport PR was already opened by @fcollonval here: #11502 so your PR is a duplicate ;) |
Yeah, I was suspecting that, but for some reasons, I have not found @fcollonval PR... I will close mine. Better 2 than zero :) |
…n-3.2.x Backport PR #11457 on branch 3.2.x (Only show the head of the outputs and ensure iopub outputs are correctly displayed)
References
Fixes #10045
Code changes
We need to take into account the iopub messages when stripping the output to only show the defined max number of outputs.
This PR takes those messages into account. To achieve this, we also had to remove the display of the tail.
User-facing changes
The outputs are correctly displayed when running e.g.
the tail is not more displayed (all outputs can still be seen if the user clicks on the message
Click on this message to get the complete output.
)Backwards-incompatible changes
None