Notebook锚链接直接从外部引用单元格

Notebook锚链接直接从外部引用单元格

本文介绍了ipython Notebook锚链接直接从外部引用单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为基于笔记本的框架编写文档.在演示笔记本中提到重要的单元格时,我可以使用某种锚点指向特定的单元格吗?

I am writing documentation for a notebook-based framework. When referring to important cells in a demo-notebook, can I point to a particular cell by using some sort of anchor?

例如,如果我的演示笔记本位于127.0.0.1/mydemo,是否可以通过诸如127.0.0.1/mydemo#In10之类的锚标记来引用输入单元格In [10]

For example if I have the demo-notebook at 127.0.0.1/mydemo, is it possible to refer to the input cell In[10] by some anchor tag like 127.0.0.1/mydemo#In10

推荐答案

不稳定,仅在master的Header(1-6)单元上.只需单击标题单元格,它将在网址栏中放置正确的锚点,通常为#header_title_sanitized使用提示号码不是一个好主意,因为它可能会更改. nbviewer也将支持它,我们正在努力.

Not on stable, and only on Header(1-6) cell on master. Just click on the header cell and it will put the right anchor in the url bar, wich is usually #header_title_sanitizedUsing the prompt number is not a good idea as it might change. It will be supported on nbviewer as well, we are working on it.

这篇关于ipython Notebook锚链接直接从外部引用单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 19:23