How to insert sections and subsections?

asked 2017-12-24 12:11:31 -0600

danielvolinski gravatar image

How to insert sections and subsections in the Jupyter Notebook that will be updated automatically? That is, if I insert the first section, it will be named 1, but if I insert a section above it in the notebook, the second one will be named 1 and the old one should be renamed 2 so that the numbering in the notebook progress automatically from the beginning of the notebook to the end. If I delete a section, all the subsequent sections should be subtracted by 1 so as to remain consistent. The same for subsections inside a section.

edit retag flag offensive close merge delete

Comments

Are you alluding to header cells ? I am afraid that this is an extension of the "basic" Jupyter notebook, that, as far as I know, does not come with Sagemath's Jupyter.

It would be a nice question for DSage's developpers, though...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2017-12-26 10:15:54 -0600 )edit

Exactly, "Automatic Section Numbering" as pointed at by your link. It is a pity this does not exist in Sagemath's Jupyter

danielvolinski gravatar imagedanielvolinski ( 2017-12-26 14:47:43 -0600 )edit

Your question has suscited an interesting discussion, to which your input may be welcome...

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 2018-01-06 17:16:37 -0600 )edit