Skip to content

Integration with Jupyter Git plugin? #56

Open
@cboettig

Description

@cboettig

Proposed change

This is a really fantastic plugin, especially for teaching. Would it be possible to integrate this more tightly into the Jupyter environment / Jupyter git extension? Ideally, I'd like to see the gh-scoped-creds run instead of the standard authentication prompt in the plugin (perhaps only for https-type remotes). Or maybe it is possible to register this as a git credential manager?

This would create a more seamless experience, similar to environments such as gitpod, where if a user seems to push a commit using the vscode integrated git menu, they are prompted with the device login.

The current situation for Jupyter + gh-scoped-creds is much less smooth. Students must manually run gh-scoped-creds first -- this looks out-of-place in a reproducible notebook (source code does not generally also include such git auth commands), and can be confusing for students to run from the bash shell. When using the GUI git plugin to push code to github, students will be prompted for user name and password --- their instinct is that they should do what the computer says, not decide that the computer is wrong, quit out of the commit menu, and run gh-scoped-creds first.

Who would use this feature?

I think this would particularly benefit students and instructors, or anyone who does not use git primarily from the command-line already.

(Optional): Suggest a solution

I think you can register custom credential helpers with git? https://git-scm.com/docs/gitcredentials#_custom_helpers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions