ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.22k stars 806 forks source link

zenmode: incorrect file references #31

Closed khughitt closed 10 years ago

khughitt commented 10 years ago

Zenmode is looking in the wrong place for included files:

main.css /files/static/custom/zenmode GET 404 Not Found text/html http://127.0.0.1:8888/notebooks/static/custom/zenmode/main.css Redirect 306 B 0 B Pending

http://127.0.0.1:8888/notebooks/static/custom/zenmode/main.css redirects to http://127.0.0.1:8888/files/static/custom/zenmode/main.css which does not exist. Removing the 'files' results in the proper location.

Ipython 2.0-git (2013/11/26).

damianavila commented 10 years ago

Yes, I have to make some changes because the multidirectory support in IPython master changes these url... adding to my todo list. Thanks for the report.

tyleha commented 10 years ago

I think same issues for codefolding:

GET http://127.0.0.1:8888/static/components/codemirror/addon/fold/foldgutter.js 404 (Not Found) require.js:1872
req.load require.js:1872
context.load require.js:1624
Module.load require.js:825
Module.fetch require.js:815
Module.check require.js:845
Module.enable require.js:1142
context.enable require.js:1496
(anonymous function) require.js:1127
(anonymous function) require.js:129
each require.js:57
Module.enable require.js:1089
Module.init require.js:779
(anonymous function) require.js:1412

Uncaught Error: Script error for: /static/components/codemirror/addon/fold/foldgutter.js
http://requirejs.org/docs/errors.html#scripterror require.js:163
makeError require.js:163
context.onScriptError
juhasch commented 10 years ago

The Codemirror version supplied with IPython ist too old and is missing the requested file foldgutter.js . For now, you need to copy the current master version from Github to your IPython installation.

I guess this requirement is too well hidden in the documentation, feel free to improve: https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/Codefolding

tyleha commented 10 years ago

Alas - my responsibility to read the docs more closely. Carry on

damianavila commented 10 years ago

Fixed in #69... closing.