• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

jupyterlab/jupyterlab-google-drive: Cloud storage for JupyterLab using Google Dr ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

jupyterlab/jupyterlab-google-drive

开源软件地址(OpenSource Url):

https://github.com/jupyterlab/jupyterlab-google-drive

开源编程语言(OpenSource Language):

TypeScript 95.4%

开源软件介绍(OpenSource 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"



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap