[Python-modules-team] Bug#751008:
Julian Taylor
jtaylor.debian at googlemail.com
Tue Jun 10 17:20:27 UTC 2014
this patch should do it for nodejs:
--- a/IPython/nbconvert/filters/marked.js 2014-05-21 21:19:12.000000000
+0200
+++ b/IPython/nbconvert/filters/marked.js 2014-06-10 19:18:55.002514395
+0200
@@ -3,15 +3,15 @@
// that we use in the live notebook.
// IPython static_path dir relative to here:
-var static_path = __dirname + "/../../html/static/";
+var static_path = "/usr/share/ipython/notebook/static/";
var fs = require('fs');
var IPython;
// marked can be loaded with require,
// the others must be execfiled
-var marked = require(static_path + 'components/marked/lib/marked.js');
+var marked =
require("/usr/share/ipython/notebook/static/components/marked/lib/marked.js")
-eval(fs.readFileSync(static_path +
"components/highlight.js/build/highlight.pack.js", 'utf8'));
+eval(fs.readFileSync("/usr/share/javascript/highlight/highlight.min.js", 'utf8'));
eval(fs.readFileSync(static_path + "base/js/namespace.js", 'utf8'));
eval(fs.readFileSync(static_path + "base/js/utils.js", 'utf8'));
More information about the Python-modules-team
mailing list