Code Monkey home page Code Monkey logo

s3contents's Introduction

GFContents

A HDFS, S3 and GS backed Jupyter ContentsManager implementation via tensorflow.gfile.

It aims to a be a transparent, drop-in replacement for Jupyter standard filesystem-backed storage system.

Features

Supports local directories, HDFS, S3 and GS filesystems. Supports multiple large file download and upload.

Prerequisites

Write access (valid credentials) to an S3/GCS bucket, this could be on AWS/GCP or a self hosted S3 . Tensorflow

Installation

$ pip install gfcontents

Jupyter config

Edit ~/.jupyter/jupyter_notebook_config.py by filling the missing values:

S3, HDFS and local directory

from s3contents import GFContentsManager, HybridContentsManager
from IPython.html.services.contents.largefilemanager import LargeFileManager

c.NotebookApp.contents_manager_class = HybridContentsManager
c.HybridContentsManager.manager_classes = {
    "S3": GFContentsManager,
    "HDFS": GFContentsManager,
    "": LargeFileManager,
}
c.HybridContentsManager.manager_kwargs = {
    "S3": {
        "prefix": "s3://bucket_name/notebooks",
    },
    "HDFS": {
        "prefix": "hdfs://hdfsip:8020/user/logname",
    },
    "": {
        "root_dir": "/home/logname/",
    },
}

s3contents's People

Contributors

danielfrg avatar cailiang9 avatar charleso avatar corni avatar elsonrodriguez avatar aryeguy avatar jeff-cyft avatar kelaban avatar kpfleming avatar rgbkrk avatar philrhinehart avatar dmnpignaud avatar missionu-engineering avatar

Watchers

James Cloos avatar  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.