Git Product home page Git Product logo

jupytainer's Introduction

jupytainer

Scripts for starting a jupyter notebook in a container on a remote docker host.

Install

Checkout this repo repo, go into it, then run

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Server setup

In order to run the commands, you need to setup a remote docker host, which is a linux server (Debian or Ubuntu) in the cloud with the following characteristics:

  • Has docker installed and running (you can run fab install_docker to do this)
  • Has a user allowed to run docker commands (ensure user is in the docker group)
  • Has ports TCP 8888-8900 open (this is where notebooks will run)

Put the relevant info in credentials/prod.env following the example env.

Usage

To start a new coding environment (Jupyter notebook) for user "juslie" run:

fab prod jupytainer:"julie"

This will start the Jupyter container, run the initialization steps and print the URL to share with the user (in this case Julie) so she can can access the environment and participate in the event without needing a google account.

The environment and files within it will persist as long as the container is running.

After the event, you can stop and remove the container using

fab prod dstop:"jupytainer_julie"
fab prod drm:"jupytainer_julie"

jupytainer's People

Contributors

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