Skip to content

nbconvert -Number Headings when exporting from jupyter ipython to html #1586

@oracle1987

Description

@oracle1987

Im trying to export a ipynb notebook to html while maintaining the headers numbered with # in markdown cells, however, when i export using the following terminal command, the numbering of the sections is ignored.

Note: Headings auto-generated using toc nbextension.

terminal command:
jupyter nbconvert --TemplateExporter.exclude_input=True --no-prompt --to html sample.ipynb

To generate the numbered headings content of notebook is as follows(please ignore brackets below):

(#) SectionA

(##) SubsectionA1

(##) SubsectionA2

Please advise how can the numbering be maintained as per the defined hashtags when exporting to html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions