visual-studio-codejupyter-notebook

Notebook output Word Wrap not wrapping


I'm trying to wrap the output of a Jupyter notebook which prints out like this:

enter image description here

I've checked what I think is the appropriate setting in for word wrapping the output:

enter image description here

But it still gives the same unwrapped output. Am I doing something wrong or is this a bug?

My settings.json:

{
    "telemetry.telemetryLevel": "off",
    "security.workspace.trust.untrustedFiles": "open",
    "workbench.colorTheme": "Visual Studio Light",
    "python.defaultInterpreterPath": "/home/user/anaconda3/envs/myenv/bin/python",
    "editor.semanticHighlighting.enabled": false,
    "editor.occurrencesHighlight": "off",
    "editor.selectionHighlight": false,
    "editor.semanticTokenColorCustomizations": {

    },
    "notebook.output.wordWrap": true,
    "editor.parameterHints.enabled": false,
    "workbench.settings.applyToAllProfiles": [
        
    ]
}

Edit: Others have reported the same issue on Github, which appears to be resolved in the repo but not in any updates: https://github.com/microsoft/vscode-jupyter/issues/15759

Edit2: This bug has since been fixed in a recent update.


Solution

  • This was a bug (#15759) and will be fixed in a coming release.