1.0.0 • Published 7 years ago

@nteract/commuter-client v1.0.0

Weekly downloads
11
License
BSD-3-Clause
Repository
github
Last release
7 years ago

Glitch Deployed styled with prettier

com·mut·er

/kəˈmyo͞odər/ a person who travels some distance to work on a regular basis.

As commuters, we rush around from place to place all day. We go to work, school, and stores. We travel to locations near and far. Eventually, we return to our cozy home. :car: :office: :airplane: :tokyo_tower: :bullettrain_side: :department_store: :bus: :school: :bike: :city_sunset: :runner: :house_with_garden:

Like commuters, our data travels around too. Sometimes we need a notebook at work and other times at a client's site. Wherever and whenever you need your notebooks, commuter has you covered.

What is "commuter"?

As an opinionated nteract focused server, commuter reads notebooks from a local directory or Amazon S3, has a directory explorer to find notebooks, and provides a jupyter compatible version of the contents API. You determine where your notebooks should reside and where they should be shared. Flexibility and convenience.

commuter

Try commuter today and take your notebooks wherever you need them.

Installation

You may use whichever package manager (npm or yarn) best suits your workflow. The nteract team internally uses yarn.

npm install @nteract/commuter -g
# OR
yarn global add @nteract/commuter

Usage

Configure and run commuter with environment variables and commuter server.

Example local run (using a network file share!):

COMMUTER_LOCAL_STORAGE_BASEDIRECTORY=/efs/users/ commuter

Example S3 run:

COMMUTER_BUCKET=sweet-notebooks commuter

Environment Variables

General Environment Variables

Environment VariableDescriptionDefault
COMMUTER_STORAGE_BACKENDlocal or s3local
COMMUTER_DISCOVERY_BACKENDeither elasticsearch or none"none"
COMMUTER_PORTPort to run commuter on4000
COMMUTER_LOCAL_STORAGE_BASEDIRECTORYdirectory to serve in local storage modeprocess.cwd()
COMMUTER_ES_HOSTElasticSearch Host""

Environment Variables for S3 Storage

Environment VariableDescriptionDefault
COMMUTER_S3_BASE_PREFIXprefix on the bucket, similar to base directory""
COMMUTER_S3_PATH_DELIMITERseparator for "paths""/"
COMMUTER_BUCKETbucket contents served fromRequired in S3 mode, no default
COMMUTER_S3_KEYAWS KeyOptional, uses IAM roles or ~/.aws/credentials otherwise
COMMUTER_S3_SECRETAWS SecretOptional, uses IAM roles or ~/.aws/credentials otherwise
COMMUTER_S3_ENDPOINTS3 endpointOptional, selected automatically

Roadmap

ROADMAP Document

Development

Quick Start

  1. git clone git@github.com:nteract/commuter.git
  2. cd commuter
  3. yarn
  4. yarn dev
  5. open http://localhost:4000

Tests

  1. yarn test

Deployment

  1. Install commuter cli yarn add @nteract/commuter
  2. exec commuter - the service is typically wrapped inside daemontools