Centering Headings in IPython notebook

jupyter-notebook

Solution

If you want to center a heading without custom css, you can surround your text with center tags. For example, if you wanted to make a centered h1 title cell:

# <center>Title</center>

Problem

I would like to center heading cells in IPython notebook. I know it is possible to create centered headlines by writing HTML, but then I can't get a reference to the cell when using table of contents (nbtoc ext.) Is there a way to write HTML headings with reference or heading cells with centered text? Thanks!

Original source

Related problems