Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change default so Jupyter Notebook doesn't show heading prompt

Does anyone know how to make it so that Jupyter Notebook doesn't show me this prompt every time I select Heading option? I've created a jupyter_notebook_config.py file, but I didn't see an option to turn it off. I like to use headings often to break up my code and keep better documentation, but I find it annoying to constantly click OK every time.

enter image description here

like image 451
CurtLH Avatar asked Dec 20 '25 22:12

CurtLH


2 Answers

The warning is not that headings are gone, it is that heading cells don't exist anymore. All text cells are markdown now, and you create headings by prefixing the line with a number of # symbols to indicate the heading level. When you see this dialog, it is not creating a heading cell; it is creating a markdown cell with the right number of # characters.

The way to avoid the warning is to create markdown cells and add the # characters yourself.

like image 175
minrk Avatar answered Dec 22 '25 10:12

minrk


To not get a prompt you can just:

  1. enter your text in the cell
  2. hit esc to enter command mode
  3. press 1,2,3,4,5 or 6 keys for getting a heading(1-6) respectively
  4. simultaneously press (shift + return/enter)
like image 30
harthik Avatar answered Dec 22 '25 10:12

harthik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!