Dealing with nbextensions
gabrielelanaro opened this issue · 2 comments
Hi, I'm the author of a notebook extension, one of my users is trying to use mybinder to launch a notebook using this extensions, but I see that the installation procedure doesn't work.
The function being called is:
https://github.com/gabrielelanaro/chemview/blob/master/chemview/install.py#L14
The installation procedure is executed at runtime and all it does is copying js extension files, however, despite the files being correctly copied, the items are not being served:
copying /home/main/src/chemview/chemview/static/scales.js -> /home/main/.local/share/jupyter/nbextensions/scales.js
How to correctly perform the installation of a nbextension?
Hi, I was able to get chemview working in mybinder.org. I used one of the older versions (chemview 0.3 I belive) that I deployed somewhere else. I believe the problem with the latest version is related to handling the baseUrl. I am not an experienced JS guy but I saw a couple of 404s and realized that it was looking for the extension files without including the base url. Does the latest version of chemview work when the notebooks have a base Url?
Feel free to checkout the repo for the working copy.
https://github.com/yalcinozhabes/binder
I just recently rebuild the binder notebook for nglview and my notebook widget is not displayed either.
all of the js files were not copied although it works fine in my computer.
main@notebook-server:~/.local/share/jupyter/nbextensions/nglview$ ls
__init__.py __pycache__
This is output from my local computer
~/.local/share/jupyter/nbextensions/nglview $ ls
chroma.min.js __init__.pyc msgpack-decode.js pako_inflate.min.js __pycache__ sprintf.min.js three.custom.min.js widget_ngl.js
__init__.py mmtf-decode.js ngl.js promise.min.js signals.min.js svd.min.js TypedFastBitSet.js