microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.08k stars 29.25k forks source link

notebook.output.wordWrap does not seem to affect outputs from all Magics #190086

Open starball5 opened 1 year ago

starball5 commented 1 year ago

Does this issue occur when all extensions are disabled?: No, because I need the Jupyter extension to use the Notebook :P

Steps to Reproduce:

  1. Put "notebook.output.wordWrap": true, in settings.json
  2. Create a notebook
  3. Add a cell that just contains %lsmagic
  4. Run the cell and observe that the lines are not wrapped

It doesn't seem to be consistent for all Magics. For example, the %prun magic gets word wrap applied.

I noticed this because it was brought up in a comment to a Stack Overflow answer of mine.

amunger commented 1 year ago

it looks like we just don't apply the css class for json outputs.