Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table of content issue: 404 warning #17

Closed
perrette opened this issue Feb 2, 2014 · 2 comments
Closed

Table of content issue: 404 warning #17

perrette opened this issue Feb 2, 2014 · 2 comments

Comments

@perrette
Copy link

perrette commented Feb 2, 2014

Hi, I have followed your indications and tried the promising toc extension but it does not seem to work for me. The following messages appear:

WARNING:root:404 GET /static/nbextensions/toc.js (127.0.0.1)

and no toc button appear in my notebook. Any idea what I did wrong?

my ipython version: 1.7.1

What I did:
create the directory: /home/perrette/.ipython/profile_default/static/custom
and create a custom.js containing:

require(["nbextensions/toc"], function (toc) {
    console.log('Table of Contents extension loaded');
    toc.load_extension();
});

create nbextensions under ~/.ipython, and download toc.css and toc.js in there.
create symbolic link toward my directory (NOTE: the target and origin are inverted in the readme)

Full log below:

2014-02-02 18:27:20.417 [NotebookApp] Using existing profile dir: u'/home/perrette/.ipython/profile_default'
2014-02-02 18:27:20.423 [NotebookApp] Using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js
2014-02-02 18:27:20.442 [NotebookApp] Serving notebooks from local directory: /media/PIK/Projects/dimarray
2014-02-02 18:27:20.442 [NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
2014-02-02 18:27:20.442 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Created new window in existing browser session.
WARNING:root:404 GET /static/nbextensions/toc.js (127.0.0.1) 0.39ms
WARNING:root:404 GET /static/nbextensions/toc.js (127.0.0.1) 0.40ms
2014-02-02 18:28:00.249 [NotebookApp] Connecting to: tcp://127.0.0.1:41923
2014-02-02 18:28:00.251 [NotebookApp] Kernel started: f37ce302-7c21-48b6-8c0d-4bdce231c724
2014-02-02 18:28:00.638 [NotebookApp] Connecting to: tcp://127.0.0.1:38255
2014-02-02 18:28:00.801 [NotebookApp] Connecting to: tcp://127.0.0.1:39238
2014-02-02 18:28:00.853 [NotebookApp] Connecting to: tcp://127.0.0.1:48957

Thanks for the good work !

@minrk
Copy link
Owner

minrk commented Feb 2, 2014

my ipython version: 1.7.1

There is no 1.7.1 version of IPython, do you mean 1.1.0? This extension only works with current IPython master (soon to be 2.0).

@minrk minrk closed this as completed Feb 2, 2014
@perrette
Copy link
Author

perrette commented Feb 3, 2014

Oh, sorry, it must have been numpy version (mixed up because of --pylab). 1.1.0 indeed. I ended up parsing the notebook myself, but I will try with the newer version soon. This is not too bad: http://nbviewer.ipython.org/github/perrette/dimarray/blob/master/dimarray.ipynb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants