Code Monkey home page Code Monkey logo

pragmatic-polyglot-data-analysis's Introduction

pragmatic-polyglot-data-analysis

Base Docker container to perform data analysis using:

  • SQL (able to run locally using SQLite)
  • Python
    • accelaration using LLVM
  • R
  • Spark (able to run a local spark session)

The container is based on rpy2's container: it can run standalone on a single machine, making it well-suited for teaching, learning, or experimenting with the jupyter notebook work off-the-shelf.

Minimal examples of jupyter notebooks are in the directory notebooks. The container is used in workshops about polyglot approaches to the analysis of data (https://github.com/lgautier/odsc-ppda-slides or https://github.com/lgautier/jpd-pdapr-slides), or as an off-the-shelf solution to reproduce an analysis of data in a jupyter notebook (https://github.com/lgautier/project-tycho-utilities/blob/master/notebook/measles_and_diphteria.ipynb).

To have a Jupyter notebook on port 8888:

To start a Jupyter notebook:

docker run -p 8888:8888 --rm lgautier/pragmatic-polyglot-data-analysis
  1. Point a web browser to the URL

When running the Docker command a jupyter notebook will be started in the container. At the time of writing a token-based security setting is activated by default and the URL to use will be found in the output printed in the terminal (it will look like http://localhost:8888?token=<sequence of digits>).

Note: Our docker container is running with a non-root user jupyteruser.

Persistance of the work is highly desirable in many situations, and we can achieve it by mapping the host's user and group IDs with the IDs in the container. The following will start a jupyter notebook server that has access to the current working directory on the host. Note: check the jupyter notebook and docker security models, as well as where you are running your notebook (for example private or shared machine, private or public network) before deciding on doing this or choosing to use a particular working directory.

docker run -p 8888:8888 \
           --rm \
           -u $(id -u):$(id -g) \
           -v `pwd`:/home/jupyteruser/work \
           lgautier/pragmatic-polyglot-data-analysis

pragmatic-polyglot-data-analysis's People

Contributors

lgautier avatar

Stargazers

Sourav Singh avatar Matt Shirley avatar  avatar

Watchers

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