Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase cell size for Bokeh figure in Visual Studio Code

the output from a bokeh.models gridplot combined figure is larger than the maximum cell size in Visual Studio Code's Python Interactive window. I use 3 figures and put them together in a column. Unfortunately that means a lot of scrolling in the interactive window, because the resulting figure is of course about 3 times the size of the single figures. When doing the same thing in Jupyter in the browser, the figure is displayed normally.

I can not simply increase plot_height, because that increases each figure's individual size. I was hoping for a maximum-size parameter in VSC, but I could not find any.

Any ideas for a solution?

like image 796
c06n Avatar asked Dec 11 '22 01:12

c06n


2 Answers

For anyone else who comes upon this, in File -> Preferences -> Settings. Under User settings, under Extensions, under Python, way down in the Data Science options there is a setting for "Max Output Size" which controls the cell height before a scroll bar appears.

Or faster, open Settings and type "Max Output Size" into the search bar.

I'm using VS Code 1.45.1 on Ubuntu.

like image 107
MooMooKittyMilk Avatar answered Dec 26 '22 19:12

MooMooKittyMilk


CHange the Max Output Size open Settings and type "Max Output Size" into the search bar.

like image 36
luis fernando yupanqui taco Avatar answered Dec 26 '22 20:12

luis fernando yupanqui taco