Code Monkey home page Code Monkey logo

pyspark-nb's Introduction

PySpark Notebook

This extends the jupyter/pyspark-notebook Docker container and adds some additional Python packages, image processing support (in the form of system libraries and headers as well as Python packages), and example notebooks.

Running the Notebook

Basic Usage

For normal execution, simply start the container and expose the http port:

bash> docker run -d -p 8888:8888 brillozon/pyspark-nb

Then point your browser to the location:

bash> chrome http://localhost:8888/

Advanced Usage

If you want to experiment with adding additional packages and capabilities, this is easily done by opening a terminal window from the home page and performing:

bash> pip install <packagename>

If you need to install system packages to experiment with, you can do this, but will need to start the notebook with sufficient priveledges:

bash> docker run -d -p 8888:8888 -e GRANT_SUDO=yes --user root brillozon/pyspark-nb

This will allow you to install system packages from the terminal by using 'sudo'. For example, to insall the GDAL libraries and Python bindings:

bash> sudo apt-get update ; sudo apt-get install libgdal1-dev libgdal1h python-gdal

Once you have these working as expected, you may want to extend the Dockerfile and add this installation to the image rather than performing these steps each time you start the container.

Included Notebooks

  • introduction - basics of importing and configuring the PySpark module.
  • simple-tree - reads a dataset from the web, trains a decision tree model, and evaluates the results.

pyspark-nb's People

Contributors

brillozon avatar

Watchers

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