-
Notifications
You must be signed in to change notification settings - Fork 294
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 in jupyter cells gets truncated #2475
Comments
Hey @ARF1 . Looking into this now. Currently with your repro I'm getting the same results in both VSCode and in Jupyter. But my results are a bit shorter. 181 lines long
However I also tried with just a random big string (the text of a novel) and I am seeing truncation here that I'm not seeing in Jupyter. We'll look into this. Thanks for reporting. |
@IanMatthewHuff Thanks for taking the time to let me know. Not sure if it is related but the output in the vscode integrated shell (cmd) also gets truncated, though at the end if I remember correctly. (Have not tried with powershell.) I have been meaning to file a separate report but have not gotten around to it yet. Thought I would let you know just in case it helps... |
Quick notes for triage: Jupyter output with big_string = text of novel Moby Dick VSCode Notebook editor (Interactive Window with same issue). Massive horz scrollbar on raw variable + truncation. Truncation on print of raw variable Looks like 384 lines in this case, close to the amount @ARF1 also reported. |
@ARF1 . My apologies. I totally forgot that we did have a setting to limit text output to help with performance issues. In the VS Code settings can you change Python->Data Science->Text Output Limit to 0? Does that work for you? |
@IanMatthewHuff Sorry it took a while. I was hit with the bug in the new version of the python extension where jupyter was refusing to connect. The setting Python->Data Science->Text Output Limit to 0 fixes the issue. That said, I think it is bad form to drop output without any warning to the user. It took me ages to figure out what the problem was: I was studying assembler code that I could not figure out how it could possibly work. - Turns out, it could not work as it was displayed. Let's say it was a painful experience. ;-) Would it be possible to print a warning to the user that some output was dropped? E.g. as a line in the text output cell at the beginning where the text is actually missing? That way, those users that do scroll back are never bothered but those that are searching for something at the beginning are warned. |
@ARF1 Yeah I'll leave this issue open and we will discuss in triage. Honestly I had forgotten the setting myself and was initially confused as well. This was to work with some specific performance issues so we might not be able to fix full output right away, but as you mentioned it we could tweak our messaging some. |
@IanMatthewHuff |
@IanMatthewHuff , please file a bug for the horizontal scrollbar issue in your image above. |
@greazer microsoft/vscode-jupyter#1548 |
Validated |
Issue Type: Bug
Python environment set up with: `conda -n numba47 -c numba python=3 numba jupyter
The output of very long jupyter output cells gets truncated at the beginning.
Code to reproduce, run the following in "Python Interactive":
The output should have 695 lines with 40279 characters:
Output has "only" 371 lines with 20368 characters:
Note that it gets truncated at the beginning.
Also: I verified that jupyter used without vscode DOES show the complete output.
Extension version: 2019.11.50794
VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z)
OS version: Windows_NT x64 10.0.17763
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: