Cell Output Width running R kernel
See original GitHub issueThis issue relates to issue #7221, regarding how to adjust cell output width in order to avoid that table columns are being wrapped to the next line past 80 characters. The following solution was posted by @joyceerhl in https://github.com/microsoft/vscode-jupyter/issues/7221#issuecomment-903891697_ :
It sounds like you want to ensure that tables with a large number of columns don’t get broken onto a new row? Does configuring
pd.options.display.max_columns
achieve what you want?
Similar to this, I am trying to prevent columns from wrapping in my output in the Jupyter extension. However, I am running an R kernel, and I can’t find a matching setting for Jupyter, R, or Markdown (pd.
is a Pandas setting I believe), however, I do find similar settings for text editor: diffEditor.wordWrap
, editor.wordWrap
, and editor.wordWrapColumn
. I tried to increase wrapping column size from 80 to 120, and, subsequently, set Word Wrap to off
for Diff Editor and Editor, without any luck. I can only assume Text Editor settings do not apply to Jupyter notebooks? If it is supposed to apply to notebooks, the setting seem not to be working according to its intention. If not, is there a way I can turn off or increase wrapping limit for a Jupyter notebook running an R kernel?
Version info:
- VS Code version: 1.66.2
- Jupyter Extension version: v2022.3.1000901801
- Python Extension version: v2022.4.1
- R Extension version: v2.4.0
- OS and version: Ubuntu 20.04.4 LTS
- Python and/or Anaconda version: conda 4.11.0
- R version: 4.1.3
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): Not sure
- Jupyter server running: Local
_Originally posted by @pehkawn in https://github.com/microsoft/vscode-jupyter/discussions/9747_
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
This might work? (I’m not familiar enough with R to test it) https://stackoverflow.com/questions/66727621/how-can-i-adjust-printed-summary-width-with-long-variable-names-in-r-markdown
Yes! It worked! I went to Stack Overflow myself once I realised it’s an R setting not an issue with Jupyter. I found a similar problem/answer to your link.