1

If I merge multiple cells in a Jupyter notebook, there is a blank line between the code from each cell.

enter image description here

Can I merge cells without this blank line?

Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158

1 Answers1

0
  • No, this is the expected behavior.
  • Here is the source for mergeCells
  • Here is the line that joins the contents toMerge
    • newModel.value.text = toMerge.join('\n\n');
      • const toMerge: string[] = [];
    • Note, there are 2 new lines, '\n' in the .join(), therefore the answer to Can I merge cells without this blank line? is no, unless you do a PR for the project, change the desired line, compile and run it on your system.
Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158