Open nhadziosma1 opened 2 months ago
A rather clumsy workaround for DataFrames is to change presentation of the cell to text/plain
(three dots on the left of the cell output). It will render the table using ASCII and scrolling will be possible...
A rather clumsy workaround for DataFrames is to change presentation of the cell to
text/plain
(three dots on the left of the cell output). It will render the table using ASCII and scrolling will be possible...
I know about this workaround, but thanks for sharing. :D
However, I created this issue in hope that it would incentivise the developers of VS Code to think about the solutions which I am suggesting. Also, I am hopeful that the issue will get enough attraction from other developers, and that this will further encourage the development of one of the proposed solutions.
Even when editing the setting of VS Code called
notebook.output.scrolling
totrue
, the output of a code-cell in a notebook (i.e. file with extension.ipynb
) does not get restricted, except when using the functionprint(...)
to create output.If you for example try using either:
display(...)
fromIPython.display
to display apandas.DataFrame
, ormatplotlib.pyplot
and displaying it in the output (or any kind of an image), then the size of the code-cell output is not restricted and scrollable, but stretches all the way until the whole element (either thepandas.DataFrame
, or the plot) is displayed.Is there an option in VS Code which will allow its user to restrict the size of a code-cell output, not matter how the output is created (i.e. no matter if the output is generated using the function
display(...)
, if it is a plot, if it is using the functionprint(...)
)?Note: There was previously a similar issue created: the_issue, but the requestor never wrote a reply to what you had to say. I think that my request is a bit different, because I would not change the fact that each output is independent, but I would only make it possible to make either:
In my opinion, it would be the best if both of these settings were implemented, but having at least one of the two would do the trick for most of the people.