Skip to main content

jupyterlab-pullrequests

Build Status NPM Version Pypi Version Conda Version

A JupyterLab extension for reviewing pull requests.

demo

For now, it supports GitHub and GitLab providers.

Prerequisites

For GitLab, you will need also diff-match-patch

Usage

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

Installation

1. Install the extension with the following steps

With pip:

pip install jupyterlab-pullrequests

Or with conda:

conda install -c conda-forge jupyterlab-pullrequests

For GitLab, in addition, you will need to

pip install diff-match-patch

Or with conda:

conda install -c conda-forge diff-match-patch

2. Getting your access token

For GitHub, the documentation is there. The token scope must be repo.

For GitLab, the documentation is there. The token scope must be api.

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

3. Setting your access token in JupyterLab Pull Requests

You now need to add the credentials you got from the provider to your server 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.PRConfig.access_token = '<YOUR_ACCESS_TOKEN>'

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

If you are using GitLab instead of GitHub, you also need to set the provider:

c.PRConfig.provider = 'gitlab'

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

If you are not using GitHub.com or GitLab.com, you can set the API base URL of your provider with the configurable parameter PRConfig.api_base_url.

Settings

This extension as server settings.

  • PRConfig.access_token: Access token to be authenticated by the provider
  • PRConfig.provider: github (default) or gitlab
  • PRConfig.api_base_url: Provider API base url (default to https://api.github.com except if provider is gitlab then it defaults to https://gitlab.com/api/v4/)

Troubleshooting

  • If you are seeing the following error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain and the certificates are installed on your machine, you will need to set the SSL_CERT_FILE environment variable to point to your system certificates bundle. For example:
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt

Development

Contributing

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

JupyterLab follows the official Jupyter Code of Conduct.

Release files for jupyterlab-pullrequests 3.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyterlab-pullrequests 3.0.2
File Size Uploaded
jupyterlab_pullrequests-3.0.2.tar.gz 234.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jupyterlab-pullrequests 3.0.2
File Interpreter ABI Platform
jupyterlab_pullrequests-3.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 688.2 kB

Release files / jupyterlab_pullrequests-3.0.2.tar.gz

Download URL jupyterlab_pullrequests-3.0.2.tar.gz
Size 234.6 kB
Tags Source
SHA-256 checksum
How to use checksums
45515c46203525706579656c318fa416946731578d6489173dc1ed082a02b558
BLAKE2b-256 checksum
How to use checksums
aac4c8b2dff18e463e2872bb9aa6ae6025f66b4becbcc66e0a9b56ba8b99864c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Release files / jupyterlab_pullrequests-3.0.2-py3-none-any.whl

Download URL jupyterlab_pullrequests-3.0.2-py3-none-any.whl
Size 453.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f83a202bfd25a5471366b77ac4c91de0072c0eb67546312695ef575225ce134b
BLAKE2b-256 checksum
How to use checksums
c9a8a194b1824dd28c4c84ed26f45b277d8d51fbb4deae80ec6d472e28b782f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

3.0.2 This release

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.1.0

2 release files

2.0.1

2 release files

2.0.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page