11

Is there a way to enable numbered headings and table of contents in Google Colab?

Similar question: markdown - Numbered headers in jupyter notebooks - Stack Overflow for Jupyter Notebook (which requires an nbextension).

Need solution for Google Colab.

ihightower
  • 3,093
  • 6
  • 34
  • 49
Shreck Ye
  • 1,591
  • 2
  • 16
  • 32

2 Answers2

1

Check this answer for a workaround by writing the numbers manually. https://stackoverflow.com/a/69541262/8691571

Use # 1. Heading

Paloha
  • 558
  • 6
  • 14
-1

Its very simple Here are the steps :

  1. Create a new section.
  2. add "#" before the heading you want to write
  3. the heading appears in the "Table Of contents"

link : https://colab.research.google.com/notebooks/markdown_guide.ipynb this link shd solve your doubt.

Nikhil Kumar
  • 73
  • 1
  • 5