nbclassic
nbclassic copied to clipboard
Whitespace in overly long output
One of my Python intro students had this (to them frustrating) problem this week: When the output of a cell is very long, it's split up into different output_area divs, with output_subareas inside. The bottom and top padding around these output_subarea divs make it look like there is an empty line printed in the middle of the long output, making the student search for an extra print() in their code. See screenshot for an example:

Version as per "About":
Server Information:
You are using Jupyter notebook.
The version of the notebook server is: 6.4.11
The server is running on this version of Python:
Python 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0]
Current Kernel Information:
Python 3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.31.1 -- An enhanced Interactive Python. Type '?' for help.
I am trying to reproduce this but can only get one output_subarea.