Giter Site home page Giter Site logo

davidkabenavraham / jupyterlab-google-drive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jupyterlab/jupyterlab-google-drive

0.0 0.0 0.0 3.05 MB

Cloud storage for JupyterLab using Google Drive

License: BSD 3-Clause "New" or "Revised" License

Shell 0.92% JavaScript 1.80% TypeScript 95.42% CSS 1.86%

jupyterlab-google-drive's Introduction

jupyterlab-google-drive

Build Status

Cloud storage for JupyterLab through Google Drive.

NOTE: this is beta software and is rapidly changing.

This extension adds a Google Drive file browser to the left sidebar of JupyterLab. When you are logged into your Google account, you will have the files stored in your GDrive available to JupyterLab.

If you run into trouble, see if the troubleshooting guide has a solution for you.

Prerequisites

  • JupyterLab 1.x / 2.x
  • A Google Drive account

Setting up credentials with Google

To run this extension you need to authenticate your JupyterLab deployment (whether institutional or individual) with Google. In order to identify yourself to Google, you will need to register a web application with their Developers Console. Detailed instructions for setting up your application credentials can be found in setup.md.

Installation

To install this extension into JupyterLab (requires node 6 or later), do the following:

jupyter labextension install @jupyterlab/google-drive

Development

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

jlpm install
jlpm run build
jupyter labextension install .

You can then run JupyterLab in watch mode to automatically pick up changes to @jupyterlab/google-drive. Open a terminal in the @jupyterlab/google-drive repository directory and enter

jlpm run watch

Then launch JupyterLab using

jupyter lab --watch

This will automatically recompile @jupyterlab/google-drive upon changes, and JupyterLab will rebuild itself. You should then be able to refresh the page and see your changes.

Getting Started from Scratch

  • Install JupyterLab

    pip install jupyterlab
    
  • Install the jupyterlab-google-drive extension

    jupyter labextension install @jupyterlab/google-drive
    
  • Set up your application credentials according to this guide.

  • Start JupyterLab

    jupyter lab
    
  • Click on the Google Drive tab in the left sidebar in the JupyterLab interface and log in to your Google Drive account.

  • Have someone share a notebook or markdown file with you.

  • You should now see the file in the Shared with Me folder in the file browser. Double-click to open the file and begin editing!

Using Zero to JupyterHub (Z2JH)

When using Zero to JupyterHub to deploy a containerized environment, you can minimize the need to sign into JupyterHub and Google Drive. If you are using Google OAuth to autenticate users for JupyterHub, you can simply add the additional scopes to to the auth block:

auth:
    type: google
    google:
      callbackUrl: "<your-url>/hub/oauth_callback"
    scopes:
      - "openid"
      - "email"
      - "https://www.googleapis.com/auth/drive"

jupyterlab-google-drive's People

Contributors

ian-r-rose avatar bmshouse avatar andrelfpinto avatar jzf2101 avatar blink1073 avatar vidartf avatar analect avatar dependabot[bot] avatar willingc avatar cforelle avatar mirestrepo avatar sebacea avatar timkpaine avatar westurner avatar ktongsc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.