Sunday, June 17, 2018

Adjust the height of individual jupyter notebook cells

Leave a Comment

The custom.css works very well for adjusting the width of a jupyter notebook (and the font size while we are at it..):

.container { width:100% !important; height: 200px; } .CodeMirror pre {font-family: Monaco; font-size: 9pt;} 

The cell height is trickier however since we do not want all cells to be made overly tall.

Here is an example of a cell "wanting" more vertical headroom:

enter image description here

Is there a per-cell approach to achieve this? There are actually two parts to this question:

  • How to do this for python kernels (probably the easiest):

  • How to change the cell height for other kernels: specifically we are interested in R and Spark

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment