All Projects → ReviewNB → Jupyterlab Gitplus

ReviewNB / Jupyterlab Gitplus

Licence: agpl-3.0
JupyterLab extension to create GitHub commits & pull requests

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Jupyterlab Gitplus

Jupyterlab Git
A Git extension for JupyterLab
Stars: ✭ 809 (+964.47%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Variableinspector
Variable Inspector extension for Jupyterlab
Stars: ✭ 747 (+882.89%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Google Drive
Cloud storage for JupyterLab using Google Drive
Stars: ✭ 332 (+336.84%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Vim
Vim notebook cell bindings for JupyterLab
Stars: ✭ 842 (+1007.89%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyter Renderers
Renderers and renderer extensions for JupyterLab
Stars: ✭ 395 (+419.74%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Github
GitHub integration for JupyterLab
Stars: ✭ 273 (+259.21%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Python Bytecode
JupyterLab extension to explore CPython Bytecode
Stars: ✭ 57 (-25%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-python-file
JupyterLab extension to create Python files
Stars: ✭ 50 (-34.21%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Toc
Table of Contents extension for JupyterLab
Stars: ✭ 660 (+768.42%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Latex
JupyterLab extension for live editing of LaTeX documents
Stars: ✭ 349 (+359.21%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupytext
Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
Stars: ✭ 4,969 (+6438.16%)
Mutual labels:  jupyterlab, jupyterlab-extension
Elyra
Elyra extends JupyterLab Notebooks with an AI centric approach.
Stars: ✭ 839 (+1003.95%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-spreadsheet-editor
JupyterLab spreadsheet editor for tabular data (e.g. csv, tsv)
Stars: ✭ 72 (-5.26%)
Mutual labels:  jupyterlab, jupyterlab-extension
Lantern
Data exploration glue
Stars: ✭ 292 (+284.21%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-topbar
JupyterLab Top Bar extension
Stars: ✭ 95 (+25%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Sql
SQL GUI for JupyterLab
Stars: ✭ 336 (+342.11%)
Mutual labels:  jupyterlab, jupyterlab-extension
ipylab
Control JupyterLab from Python Notebooks with Jupyter Widgets 🧪 ☢️ 🐍
Stars: ✭ 101 (+32.89%)
Mutual labels:  jupyterlab, jupyterlab-extension
theme-darcula
A handsome Darcula theme for Jupyterlab. The first jlab theme to include dark scrollbars
Stars: ✭ 136 (+78.95%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Dash
An Extension for the Interactive development of Dash apps in JupyterLab
Stars: ✭ 342 (+350%)
Mutual labels:  jupyterlab, jupyterlab-extension
Jupyterlab Lsp
Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
Stars: ✭ 796 (+947.37%)
Mutual labels:  jupyterlab, jupyterlab-extension

GitPlus

A JupyterLab plugin for version control of Jupyter notebooks. It can,

  • Create & push commits to GitHub from JupyterLab
  • Create GitHub pull request from JupyterLab

Demo

Create GitHub Pull Request from JupyterLab

Create GitHub Pull Request from JupyterLab

Push GitHub Commits from JupyterLab

Push GitHub Commits from JupyterLab

Requirements

  • JupyterLab >= 2.0

Install

pip install --upgrade jupyterlab_gitplus
jupyter labextension install @reviewnb/jupyterlab_gitplus
jupyter serverextension enable --py jupyterlab_gitplus

Setup GitHub token

Here's GitHub's guide to generate personal access token. Briefly speaking,

  • Head over developer settings on GitHub. Click "Generate New Token".
  • Select Repo scope. Click "Generate Token". Copy the generated token.
  • Open you Jupyter config file ~/.jupyter/jupyter_notebook_config.py & paste the token as below
c.GitPlus.github_token = '<your-github-access-token>'

After installation, start JupyterLab normally & you should see "Git-Plus" as a new menu item.

FAQ

Where is pull request (PR) opened in case of forked repositories?

If your repository is forked from another repository (parent) then PR will be created on parent repository.

Which is the base branch used in a pull request?

base branch in a PR is a branch against which your changes are compared and ultimately merged. We use repository's default branch (usually called master) as base branch of PR. We use parent repository's default branch as base in case of forked repo.

Which is the head branch used in a pull request?

head branch in a PR is a branch which contains the latest changes you've made. We create a new branch (e.g. gitplus-xyz123) as head branch. It only contains changes from the files you wish to include in the PR.

How can I edit a pull request opened with GitPlus?

You can head over to GitHub and edit the PR metadata to your liking. For pushing additional file changes to the same PR,

  1. Copy the branch name from GitHub UI (e.g. gitplus-xyz123)
  2. Checkout that branch locally
  3. Make the file changes you want
  4. Use push commit functionality from GitPlus to push new changes
Is GitPlus tied to ReviewNB in any way?

No. GitPlus is it's own open source project. The only connection with ReviewNB is that at the end of PR/Commit creation, GitPlus shows ReviewNB URL along with GitHub URL. You can safely ignore these URLs if you don't want to use ReviewNB.

It's is useful to see visual notebook diffs on ReviewNB instead of hard to read JSON diffs on GitHub. ReviewNB also facilitates discussion on notebooks cells.

What if I don't have a ReviewNB account?

No problem, everything in GitPlus will still work fine. Only the ReviewNB URLs won't work for you.

Can we use GitPlus with Gitlab/BitBucket or any other platforms?

No, currently we only support repositories on GitHub.

Motivation

Our aim is to make notebooks a first class entity in Data science & ML teams. We can achieve this by making notebooks play well with existing tools & processes instead of building expensive proprietary platforms. Other projects in this direction are,

  • ReviewNB - Code review tool for Jupyter notebooks
  • treon - Easy to use test framework for Jupyter notebooks

Roadmap

In future GitPlus will be able to,

  • Pull changes from GitHub
  • Switch/create branches locally
  • Resolve notebook merge conflicts (without messing with underlying JSON)

Development

Install

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# Clone the repo to your local environment & install dependencies

# Link your development version of the extension with JupyterLab
jupyter labextension link .

# Run jupyterlab in watch mode in one terminal tab
jupyter lab --watch

# Watch the GitPlus source directory in another terminal tab
jlpm watch

# If you make any changes to server side extension (.py files) then reinstall it from source
pip install .

Contributing

If you see any problem, open an issue or send a pull request. You can write to [email protected] for any questions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].