patrickfuller / imolecule

An embeddable webGL molecule viewer and file format converter.
http://patrickfuller.github.io/imolecule/
MIT License
86 stars 18 forks source link

404 on local nbextensions #12

Closed roliveira closed 9 years ago

roliveira commented 9 years ago

I'm getting a 404 when running the imolecule nbextension:

[W 10:47:15.960 NotebookApp] 404 GET /nbextensionsimolecule.min.js?v=20150729104512 (127.0.0.1) 
0.00ms referer=http://localhost:8888/notebooks/Untitled.ipynb?kernel_name=python2

I believe this has to do with the following line in the notebook.py file:

local_path = os.path.join("nbextensions", filename)

While running it on windows, the local_path is joined using \\ instead of / and that might be causing the message and actually never loading the local imolecule.min.js library.

patrickfuller commented 9 years ago

I was able to replicate on my windows VM, and you're correct as to the reason. I'll push a quick change and update the version.