Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates not loading jupyterhub #56

Closed
AndersonReyes opened this issue Nov 6, 2019 · 8 comments
Closed

Templates not loading jupyterhub #56

AndersonReyes opened this issue Nov 6, 2019 · 8 comments

Comments

@AndersonReyes
Copy link

So in my setup we run jupyterhub on kubernetes with custom docker images.

Before we had the GitHub repos embedded onto the docker image and templates would fine. Since then we moved the templates to a read only volume mount and adjusted the path on template_dirs.

The extension picks up the path but it says no notebooks available besides example one

Screen Shot 2019-11-05 at 3 54 56 PM

As you can see the search path is the first one in modelbuilding/templates.

Anyone know why might that be?

@timkpaine
Copy link
Member

@AndersonReyes "top level" templates are not allowed right now as we move to a folder-oriented system. What are the contents of that first directory?

@AndersonReyes
Copy link
Author

Ahht

@AndersonReyes "top level" templates are not allowed right now as we move to a folder-oriented system. What are the contents of that first directory?

That right explain it, it's just the notebooks at top level of templates, like below, showed GitHub view because, I'm on mobile

Screenshot_20191106-094729~2

Weird thing is that it worked before? Was top level stuff recently not supported?

@timkpaine
Copy link
Member

judging by the names of your templates, it looks like you want to make a folder in there called TEMPLATE and then put them in there eg. TEMPLATE/FastTEMPLATEwithRFE.ipynb

@AndersonReyes
Copy link
Author

judging by the names of your templates, it looks like you want to make a folder in there called TEMPLATE and then put them in there eg. TEMPLATE/FastTEMPLATEwithRFE.ipynb

Dope that's a quick fix. Thanks man!

@AndersonReyes
Copy link
Author

Yup that worked, closing as resolved

@timkpaine
Copy link
Member

@AndersonReyes cool thanks! The motivation here is to allow library owners to install templates as part of their package installation, here is an example https://github.com/timkpaine/jupyterlab_templates/issues/33#issuecomment-506980558

@AndersonReyes
Copy link
Author

@AndersonReyes cool thanks! The motivation here is to allow library owners to install templates as part of their package installation, here is an example #33 (comment)

@timkpaine actually yeah that will make creating a template repo super easy in the future since we can divide them by category and they show up like that in the launcher, nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants