GithubHelp home page GithubHelp logo

Some help ref which token to pass for accessing Notebook API running inside JuptyerHub/JupyterLab about jupyterhub-deploy-docker HOT 7 CLOSED

Analect avatar Analect commented on September 7, 2024
Some help ref which token to pass for accessing Notebook API running inside JuptyerHub/JupyterLab

from jupyterhub-deploy-docker.

Comments (7)

jtyberg avatar jtyberg commented on September 7, 2024

So basically, you're trying to access the API of individual notebook servers through JupyterHub, which is authenticating users via Gitlab.

I'm going to have to defer to @minrk on this one.

from jupyterhub-deploy-docker.

Analect avatar Analect commented on September 7, 2024

@jtyberg yes.
The gitlab authentication is akin to the default github one, where I'm also supplying a userlist specifying whether a user has hub admin rights.

For context, as per issue 25, I'm looking to build in some flexibility in terms of what image is used to spin up a server. I would then like to be able to programmatically access (via the Notebook API), a user's given server.

Perhaps this belongs in a separate issue ... but your usage of docker volumes to persist data between different instances of a users' server is novel. I was wondering if you explored a way of pre-seeding these with just the source code from a repo .. which could then be pushed back with git to a VCS ... so a user has benefit of persistence, but also version-control.

from jupyterhub-deploy-docker.

minrk avatar minrk commented on September 7, 2024

JupyterHub replaces the authentication mechanism, so the token-auth introduced in notebook master won't work (yet) with JupyterHub. I'll work on that after we push out the 0.7 release (likely tomorrow).

from jupyterhub-deploy-docker.

Analect avatar Analect commented on September 7, 2024

OK. Thanks @minrk for clarifying. Happy to test as and when you get time to implement.

from jupyterhub-deploy-docker.

jtyberg avatar jtyberg commented on September 7, 2024

Thanks, @minrk.

@Analect regarding pre-seeding the Docker volumes with git repos, there's an example of using a custom entry point script here to clone a git repo at container startup. Pushing back to the git repo will require the notebook user is authorized to do so. I've not tried this.

from jupyterhub-deploy-docker.

Analect avatar Analect commented on September 7, 2024

@jtyberg Thanks for that pointer.
Rather than requiring all users to have knowledge of git ... in order to push some/all changes back to the repo via a terminal, for instance, perhaps some variant of this gist extension from @minrk could present a user with a dialogue box from within jupyterlab for a user to add a commit msg and then push any changed file(s) collectively.

from jupyterhub-deploy-docker.

jtyberg avatar jtyberg commented on September 7, 2024

@Analect Agree with passing the git auth responsibility to the user. Either they enter creds or upload an SSH key.

from jupyterhub-deploy-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.