It turned out that my problem was that two JavaScript libraries that I use, 
poly2tri.js and opentype.js, in their "built" form are somehow incompatible 
with the Jupyter requirejs environment. I made simpler versions of these 
libraries, based on the unbuilt source files, and they now work in the 
Jupyter notebook. So I was basically barking up the wrong tree. Sorry for 
inflicting the confusion on readers.

There remains a puzzle. My JavaScript code needs to read some data files 
(images and fonts). I've succeeded in copying them to nbextensions, but 
what is the path I need to use? The 404 missing file error message shows my 
attempt to read a data file that is a neighbor to the JavaScript file in 
nbextensions, using a relative address within nbextensions, indicates that 
it looked for

http://localhost:8888/notebooks/lib/FilesInAWS/Roboto-Medium.ttf

which is in the directory of my Python notebook,

instead of ../lib/FilesInAWS/Roboto-Medium.ttf

How should I reference a data file in nbextensions/lib?


-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/414bbbcf-56c4-4a9f-9719-b2303cf07842%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to