Skip to main content

A server extension for JupyterLab's pull request extension

Project description

jupyterlab-pullrequests

Stability Experimental Build Status Version Version

A JupyterLab extension for reviewing pull requests

Prerequisites

  • JupyterLab 2.0+

Usage

  • Open the pull request extension from the tab on the left panel

Installation

1. Install the extension with the following steps

jupyter labextension install @jupyterlab/pullrequests
pip install --upgrade jupyterlab-pullrequests
jupyter serverextension enable --py jupyterlab_pullrequests

2. Getting your access token from GitHub

You can get an access token by following these steps:

  1. Verify your email address with GitHub.
  2. Go to your account settings on GitHub and select "Developer Settings" from the left panel.
  3. On the left, select "Personal access tokens"
  4. Click the "Generate new token" button, and enter your password.
  5. Give the token a description, and check the "repo" scope box.
  6. Click "Generate token"
  7. You should be given a string which will be your access token.

Remember that this token is effectively a password for your GitHub account. Do not share it online or check the token into version control, as people can use it to access all of your data on GitHub.

3. Setting your access token in JupyterLab Pull Requests

You now need to add the credentials you got from GitHub to your notebook configuration file. Instructions for generating a configuration file can be found here. Once you have identified this file, add the following lines to it:

c.GitHubConfig.access_token = '<YOUR_ACCESS_TOKEN>'

where "<YOUR_ACCESS_TOKEN>" is the string value you obtained above.

Congrats, you did it! Launch JupyterLab and look for the Pull Request tab on the left! 🎉

Development

Contributing

If you would like to contribute to the project, please read our contributor documentation.

JupyterLab follows the official Jupyter Code of Conduct.

Install

For a development install, do the following in the repository directory:

# Install dependencies
jlpm install
# Build Typescript source
jlpm run build
# Link your development version of the extension with JupyterLab
jupyter labextension link .
# Rebuild Typescript source after making changes
jlpm run build
pip install .
jupyter serverextension enable --py jupyterlab_pullrequests

To rebuild the package and the JupyterLab app:

jlpm run build
jupyter lab build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_pullrequests-0.3.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

jupyterlab_pullrequests-0.3.0-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file jupyterlab_pullrequests-0.3.0.tar.gz.

File metadata

  • Download URL: jupyterlab_pullrequests-0.3.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

File hashes

Hashes for jupyterlab_pullrequests-0.3.0.tar.gz
Algorithm Hash digest
SHA256 876b952d9cd3ee12e9d912fbf8800d8945621cccac5b99e04a5585dc7a71cce9
MD5 a1bca5dfec8d6d272cb7b1e2f9d361b1
BLAKE2b-256 38bc4b096063b508132e50de28c0c4c77bfd8c2dbc57aa25ab472c7c53378b26

See more details on using hashes here.

File details

Details for the file jupyterlab_pullrequests-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: jupyterlab_pullrequests-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

File hashes

Hashes for jupyterlab_pullrequests-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2734cd77c5987b84eebaf5d19fa5e4efd2ad0ee04a54e67c3428f1508f2247dd
MD5 f201210970fc5d6636dc6b2e7ded002b
BLAKE2b-256 5852a1fc8544f33261fae0b2f6276eef8860161223ac6b22ca0f572d6e1788d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page