How to reference a IPython notebook cell in markdown?

后端 未结 2 887
Happy的楠姐
Happy的楠姐 2020-12-12 19:05

How do I reference a cell in a IPython notebook markdown?

I know how to make a reference to an external link. But is there a way to assign an ID to a cell and then r

2条回答
  •  自闭症患者
    2020-12-12 19:22

    If you want to link directly to a specific section of your notebook, it can be useful to use this code: [section title](#section-title). Note that, for the text in the parentheses, you should replace spaces and special characters with a hyphen.

    As an example, consider this case in which we want to insert a link to the section 'Univariate + One step ahead':

    To do so, we just need to add the code [Univariate + One step ahead](#Univariate-+-One-step-ahead):

    This way we avoid the introduction of an anchor tag, since the section title already acts as one.

提交回复
热议问题