URL path for extensions on a jupyterhub

204 views
Skip to first unread message

Ted Liefeld

unread,
Aug 16, 2016, 6:14:50 PM8/16/16
to Project Jupyter
Hi again folks,

I have a jupyterhub that I am setting up and have custom authentication and css on it.  I am also trying to get a custom extension installed on the single-user docker containers launched by the hub and that is where the problem is.  The extension appears to be installed based on this returning true
       import notebook
       notebook.nbextensions.check_nbextension('genomespace', user=True)

However in the notebook page it cannot load the js or css for the extension widgets.  What seems to be the issue is the path to the js/css based on the 404's in the console.  The issue seems to be that the page is looking for


while I can actually access it in the spawned single user at

     https://jupyterhubtest.genomespace.org/user/<username>/nbextensions/<EXTENSTION_NAME>/js/<PATH>

which is actually passed on to the spawned container.  

Is this something that can be controlled via config or do I need to install the extension on the hub as well/instead of in the container?

Thanks 

MinRK

unread,
Aug 23, 2016, 5:41:48 AM8/23/16
to Project Jupyter
Installing and enabling extensions on single-user servers should be all that is needed. That looks like there's an inappropriate absolute URL somewhere. Can you share some more information about your extension? Does it have any explicit URLs, perhaps with `/nbextensions` anywhere?

-MinRK

--
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 jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/402a47a7-7efb-406c-8fa1-f144207396d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luc Renambot

unread,
Sep 6, 2016, 3:24:48 PM9/6/16
to Project Jupyter
I have the same issue, loading an extension that needs to load other CSS and JS files.

Did you find a solution Ted ?

luc
Reply all
Reply to author
Forward
0 new messages