List numbering Jupyter notebook markdown

Viewed 48784

I try to create a tutorial for students. I want to number the questions I ask them, but in between I'd like to add information to introduce the questions. How can I make an automatically numbered list that does not reset the numbering each time I put text. For instance:

This is some info.
1. This is question one.

This is more info.
2. This is question two.

Gives output:

This is some info.

  1. This is question one.

This is more info.

  1. This is question two.
3 Answers

There are multiple ways we can create lists in Jupyter notebook in markdown mode. The easiest way that I recommend myself is simple: just append * (make sure to include the space after the asterisk) before the item in the list. For example:

* one
* two
* three

Output:

  • one
  • two
  • three

Another way you just type any number and dot like 1. and then type item of the list.

1. one
2. two
3. three

so will see the output as:

  1. one
  2. two
  3. three

and if you want to change the list format like convert dot to number or number to dot just simple change one element in the appropriate format and the whole list will convert.

e.g.

 1. one
 * two
 * three

output will

  1. one
  2. two
  3. three

and

* one
2. two
3. three

output :

  • one
  • two
  • three

Not identical to the desired, but jupyter stopped renumbering when I wrote 1) 2) 3) etc.

The ')' seems to disable the renumbering done by Jupyter's markdown. At lease for jupyter version 5.0.0 running python 3.5.2.

Related