-
Notifications
You must be signed in to change notification settings - Fork 298
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 truncated with no way to view all output in the notebook itself #7096
Comments
@KRiedmiller thanks for the feedback! While it's being discussed on our end, in the meantime you can work around this a bit by adjusting this setting: "notebook.output.textLineLimit": 30 Setting to 0 will cause the truncation to be disabled all together. Also the raw json format of data that is shown in a separate file when clicking on the "show more" link will be fixed in the next release of VS Code. We understand that your desire is to support just showing more in the same cell output. |
The same bug also applies to standard notebooks, not only the interactive window. |
Just to add a bit here, this truncation causes issues when using Specific commonly used object examples: Thanks! |
After some internal discussion here, we came to a general agreement that a good thing to try here is to create a custom renderer for stdout that supports viewing output within a scrollable region.
Pros
Cons
Note that the scenario surrounding using the help() mechanism in Python could potentially be alleviated with a separate help window. This has already been entered as an enhancement (just need to find it). |
Highly related issue: #1543. Closing that one as the resolution for this one should address it. |
I just wanted to add that setting textLineLimit to as I also tried really high numbers (e.g. 5000), but there still seems to be an internal limit. I'm using the pytorch lightning advancer profile which spits out a lot of information and I cannot see the information I'd like to see since it truncates at some point. |
We have added an experimental setting to enable scrolling on notebook outputs. Turn it on with |
It's just an experiment at this point, so it won't appear in the settings UI, it must be manually set in the json. |
@underwoodnoble the "Unknown Configuration Setting" message is just a warning. You can still save it. Does it have the desired effect? If not I suggest you try again after a VS Code reload/restart. |
The scrollbar seems not work for the error messages. (v2023.2.1000481019) |
Issue Type: Bug
Since the 1.59 update the output of cells in an interactive python window is truncated if it is longer than 30 lines. The setting 'jupyter.textOutputLimit' is not respected, and I couldn't find another way to change this behaviour.
This is extremly annoying as the 'show more' option only brings up the output unformatted, which isn't usable for long outputs.
I think previously this was solved with a scroll bar which worked perfectly.
Extension version: 2021.8.1105858891
VS Code version: Code 1.59.0 (379476f0e13988d90fab105c5c19e7abc8b1dea8, 2021-08-04T23:13:20.182Z)
OS version: Linux x64 5.4.0-80-generic
Restricted Mode: No
Remote OS version: Linux x64 5.11.22-100.fc32.x86_64
Remote OS version: Linux x64 5.11.22-100.fc32.x86_64
A/B Experiments
The text was updated successfully, but these errors were encountered: