git-nb

Python package to execute git command in notebook


Keywords
git, python, repo, repository, pull, clone, notebook, nb
License
MIT
Install
pip install git-nb==0.1.4

Documentation

git_nb

Python package to execute basic git command in notebook.

Installation

Using pip :

pip install git_nb

Example

Set your config

from git_nb import cfg

cfg.username = "yourusername"
cfg.email = "youremail"

Clone a repository

If the repository is private, you will be invited to write your password.

import git_nb
from git_nb import cfg

cfg.repo_name = "yourrepo"
git_nb.git_clone()

Pull

import git_nb

git_nb.git_pull()