All Projects → jupyterlab → Jupyterlab Github

jupyterlab / Jupyterlab Github

Licence: bsd-3-clause
GitHub integration for JupyterLab

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Jupyterlab Github

ipydagred3
ipywidgets library for drawing directed acyclic graphs in jupyterlab using dagre-d3
Stars: ✭ 38 (-86.08%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-topbar
JupyterLab Top Bar extension
Stars: ✭ 95 (-65.2%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-flake8
Jupyterlab python linter for notebooks and text files using flake8
Stars: ✭ 105 (-61.54%)
Mutual labels:  jupyterlab, jupyterlab-extension
ipyp5
p5.js Jupyter Widget
Stars: ✭ 33 (-87.91%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyter-project
Handle project folder, template and file templates in JupyterLab
Stars: ✭ 13 (-95.24%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-sparkmonitor
JupyterLab extension that enables monitoring launched Apache Spark jobs from within a notebook
Stars: ✭ 78 (-71.43%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-credentialstore
A secure way of storing credentials within JupyterLab
Stars: ✭ 19 (-93.04%)
Mutual labels:  jupyterlab, jupyterlab-extension
nbcelltests
Cell-by-cell testing for production Jupyter notebooks in JupyterLab
Stars: ✭ 66 (-75.82%)
Mutual labels:  jupyterlab, jupyterlab-extension
ipylab
Control JupyterLab from Python Notebooks with Jupyter Widgets 🧪 ☢️ 🐍
Stars: ✭ 101 (-63%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-python-file
JupyterLab extension to create Python files
Stars: ✭ 50 (-81.68%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyter-archive
A Jupyter/Jupyterlab extension to make, download and extract archive files.
Stars: ✭ 57 (-79.12%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-theme-solarized-dark
JupyterLab 2/3 Solarized Dark extension
Stars: ✭ 61 (-77.66%)
Mutual labels:  jupyterlab, jupyterlab-extension
spellchecker
Spellchecker for JupyterLab notebook markdown cells and file editor.
Stars: ✭ 162 (-40.66%)
Mutual labels:  jupyterlab, jupyterlab-extension
jlab-enhanced-cell-toolbar
A cell toolbar for JupyterLab.
Stars: ✭ 28 (-89.74%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-h5web
A JupyterLab extension to explore and visualize HDF5 file contents. Based on https://github.com/silx-kit/h5web.
Stars: ✭ 41 (-84.98%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-heroku
JupyterLab extension to deploy applications to Heroku
Stars: ✭ 20 (-92.67%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab discovery
A JupyterLab extension to facilitate the discovery and installation of other extensions
Stars: ✭ 47 (-82.78%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlite
Wasm powered Jupyter running in the browser 💡
Stars: ✭ 3,039 (+1013.19%)
Mutual labels:  jupyterlab, jupyterlab-extension
pull-requests
A JupyterLab extension for reviewing GitHub pull requests
Stars: ✭ 33 (-87.91%)
Mutual labels:  jupyterlab, jupyterlab-extension
jupyterlab-spreadsheet-editor
JupyterLab spreadsheet editor for tabular data (e.g. csv, tsv)
Stars: ✭ 72 (-73.63%)
Mutual labels:  jupyterlab, jupyterlab-extension

JupyterLab GitHub

A JupyterLab extension for accessing GitHub repositories.

What this extension is

When you install this extension, an additional filebrowser tab will be added to the left area of JupyterLab. This filebrowser allows you to select GitHub organizations and users, browse their repositories, and open the files in those repositories. If those files are notebooks, you can run them just as you would any other notebook. You can also attach a kernel to text files and run those. Basically, you should be able to open any file in a repository that JupyterLab can handle.

Here is a screenshot of the plugin opening this very file on GitHub: gitception

What this extension is not

This is not an extension that provides full GitHub access, such as saving files, making commits, forking repositories, etc. For it to be so, it would need to more-or-less reinvent the GitHub website, which represents a huge increase in complexity for the extension.

A note on rate-limiting

This extension has both a client-side component (that is, Javascript that is bundled with JupyterLab), and a server-side component (that is, Python code that is added to the Jupyter notebook server). This extension will work with out the server extension, with a major caveat: when making unauthenticated requests to GitHub (as we must do to get repository data), GitHub imposes fairly strict rate-limits on how many requests we can make. As such, you are likely to hit that limit within a few minutes of work. You will then have to wait up to an hour to regain access.

For that reason, we recommend that you take the time and effort to set up the server extension as well as the lab extension, which will allow you to access higher rate-limits. This process is described in the installation section.

Prerequisites

  • JupyterLab 1.0
  • A GitHub account for the serverextension

Installation

As discussed above, this extension has both a serverextension and a labextension. We recommend installing both so as to not be rate-limited. The purpose of the serverextension is to add GitHub credentials that you will need to acquire from https://github.com/settings/developers, and then to proxy your request to GitHub.

1. Installing the labextension

To install the labextension, enter the following in your terminal:

jupyter labextension install @jupyterlab/github

With only this installed, the extension should work, and you can experience the joys of being rate-limited first-hand!

2. Getting your credentials from GitHub

There are two approaches to getting credentials from GitHub: (1) you can get an access token, (2) you can register an OAuth app. The second approach is not recommended, and will be removed in a future release.

Getting an access token (recommended)

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.

Setting up an OAuth application (deprecated)

This approach to authenticating with GitHub is deprecated, and will be removed in a future release. New users should use the access token approach. You can register an OAuth application with GitHub by following these steps:

  1. Log into your GitHub account.
  2. Go to https://github.com/settings/developers and select the "OAuth Apps" tab on the left.
  3. Click the "New OAuth App" button.
  4. Fill out a name, homepage URL, description, and callback URL in the form. This extension does not actually use OAuth, so these values actually do not matter much, you just need to enter them to register the application.
  5. Click the "Register application" button.
  6. You should be taken to a new page with the new application information. If you see fields showing "Client ID" and "Client Secret", congratulations! These are the strings we need, and you have successfuly set up the application.

It is important to note that the "Client Secret" string is, as the name suggests, a secret. Do not share this value online, as people may be able to use it to impersonate you on GitHub.

3. Installing the serverextension

Install the serverextension using pip, and then enable it:

pip install jupyterlab_github

If you are running Notebook 5.2 or earlier, enable the server extension by running

jupyter serverextension enable --sys-prefix jupyterlab_github

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. If you generated an OAuth app, instead enter the following:

c.GitHubConfig.client_id = '< YOUR_CLIENT_ID >'
c.GitHubConfig.client_secret = '< YOUR_CLIENT_SECRET >'

where "< YOUR_CLIENT_ID >" and "< YOUR_CLIENT_SECRET >" are the app values you obtained above.

With this, you should be done! Launch JupyterLab and look for the GitHub tab on the left!

Customization

You can set the plugin to start showing a particular repository at launch time. Open the "Advanced Settings" editor in the Settings menu, and under the GitHub settings add

{
  "defaultRepo": "owner/repository"
}

where owner is the GitHub user/org, and repository is the name of the repository you want to open.

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].