question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output truncated with no way to view all output in the notebook itself

See original GitHub issue

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
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805:30301674
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30329788
pythonvssor306:30344512
bridge0708:30335490
pygetstartedc2:30351386
vstre464cf:30350173

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
greazercommented, Aug 12, 2021

@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.

4reactions
fschifferscommented, Nov 17, 2021

I just wanted to add that setting textLineLimit to as “notebook.output.textLineLimit”: 0 doesn’t have the expected effect.

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas - Jupyter Notebook Truncates Python Output
Because you are changing Pandas pretty print, not how Python itself is truncating output. For example: display.max_rows and ...
Read more >
Question about "WARNING: Output truncated!" - Google Groups
I am doing a long but not difficult computation in the notebook (v3.0.2) which yields the usual 'WARNING: Output truncated!' while it is...
Read more >
Spark Dataframe - Show Full Column Contents?
Problem: In Spark or PySpark, when you do DataFrame show, it truncates column content that exceeds longer than 20 characters, wondering how ......
Read more >
1437155 – [RFE] hammer- allow user to specify column widths ...
QA Contact: Katello QA List ... Actual results: Table output is truncated Expected results: Ability to set a higher ... There's currently no...
Read more >
Notebook API | Visual Studio Code Extension API
Application-specific output formats and interactive applet outputs are rendered by a NotebookRenderer . Visually: Overview of 3 components of notebooks: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found