[IPython-User] named anchors, predictable URLs for a table-of-contents %toc magic

Paul Ivanov pi@berkeley....
Fri Mar 22 20:35:03 CDT 2013

Hi Catherine,

Catherine Devlin, on 2013-03-22 20:18,  wrote:
> I guess a second question would be - to make links to other notebooks in
> the directory - I could search through the .ipynb files in the directory to
> make links, but if I find headers in MyNiftyNotebook.ipynb and make links
> like <a href="MyNiftyNotebook#AboutBacon">, they'll 404 because the pages
> actually have URLs like "
>".  How can I
> make a link to a notebook?

You currently can't, but I also want this feature, and so does
Greg Wilson, and probably many others, so I opened an issue about
it earlier today: https://github.com/ipython/ipython/issues/3056

> This StackOverflow answer don't seem promising:
> http://stackoverflow.com/questions/12590611/links-between-ipython-notebooks
> If it is currently impossible, would it be bad (or impossible) to hack the
> server so that it could respond to /NotebookName URLs as well as to UUIDs?
>  Presumably a running server keeps track of the relationship between its
> .ipynb filenames and the assigned UUIDs somewhere.
> Anyway, even a TOC that can't cross boundaries between notebooks would be a
> great start.

TOC, too, is an open issue: https://github.com/ipython/ipython/issues/1692
> If anybody wants to grab this and run with it, feel free to seize the
> glory.  I'm happy to use it as a simple user if someone else wants to write
> the code.

Paul Ivanov
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7

More information about the IPython-User mailing list