If you switch the cell to "raw NBConvert", the code will retain its formatting, while all the text will remain in one font (it is important if you have any comments), so it remains readable. "Markdown" interprets the commented sections as headers and resizes and colors accordingly, making the cell rather dirty.
On the side of the note, I use this to interrupt the process, if I want to stop it - it seems a lot more efficient than Kernel โ Interrupt.
source share