ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.22k stars 806 forks source link

Display headers from display(HTML('<h2>...</h2>')) in Table of Content(2) #1495

Open evyasonov opened 4 years ago

evyasonov commented 4 years ago

Hey

A part of my script generates and outputs html code this way

from IPython.display import display, HTML
display(HTML('<h2>Another Header</h2>'))

I use in Table of Content(2). But 'Another Header' is not included in the table of content.

Is it possible to include a header from displayed html code?

Thanks in advance for your answer

cspeltz commented 4 years ago

I have this same issue.