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.

Cell Output Width running R kernel

See original GitHub issue

This 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:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rchiodocommented, Apr 27, 2022
1reaction
pehkawncommented, Apr 27, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I increase the cell width of the Jupyter/ipython ...
I have a high-resolution screen, and I would like to expand the cell width/size to make use of this extra space.
Read more >
Outputting Beautiful Jupyter Notebooks (R-Kernel Edition)
works fine for R-kernel notebooks, as no errors are thrown and the output generally looks attractive.
Read more >
Resizing plots in the R kernel for Jupyter notebooks
The default repr settings are for plots to be 7 inches wide and 7 inches high. To set the plot width and height...
Read more >
kernel freeze after loading R object · Issue #571 - GitHub
I am trying to execute R script in Jupyter. However, whenever I try the load("data.rda") function, the kernel seems to freeze (busy all...
Read more >
When using Jupyter (R kernel) and the keras library. When a ...
When using Jupyter (R kernel) and the keras library. When a cell is run there is no output. W/no output, there's no way...
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