Put one of the following in a Jupyter notebook cell and run. If you make changes, clear cell contents, save, and refresh the browser.
All cells:
import IPython.core.display as di di.display_html(""" $('<style>.cell { margin-bottom: 100px !important;}</style>').appendTo('head'); """, raw=True)
To add padding just after code cells:
import IPython.core.display as di di.display_html(""" $('<style>.code_cell { margin-bottom: 100px !important;}</style>').appendTo('head'); """, raw=True)
To add padding just between code cells:
import IPython.core.display as di di.display_html(""" $('<style>.code_cell+.code_cell { margin-top: 100px !important;}</style>').appendTo('head'); """, raw=True)
🌟 Was this page helpful? Please let me know with this quick, 3 question survey.