Skip to content

cchayden/xframes-docker

Repository files navigation

Run XFrames Docker

These commands run Spark and XFrames in a docker, that you can access using a Jupyter notebook.

Run

Make sure there is a notebooks directory and data directory. Then run:

docker run -d --rm --name xframes \
-p 8888:8888 \
-v $PWD/notebooks:/home/jovyan/work \
-v $PWD/data /data \
cchayden/xframes

Then browse to localhost:8888 to enter the notebook.

If you want, you can replace $PWD/notebooks and $PWD/data with other directories on your machine. You must pass an absolute pathname. These directories store the notebooks and data that you access through the Jupyter notebook.

Stop

To stop the docker:

docker stop xframes

Using XFrames Docker

Run notebook

Browse to localhost:8888.

You can test by creatng an (python2) notebook, and then entering the test program in the first cell.

from xframes import XFrame

xf = XFrame({'id': [1, 2, 3], 'val': ['a', 'b', 'c']})
print xf

From within the notebook, access the data via /data/<file> For example:

xf = XFrame('/data/some-file.csv')
print xf

About

Docker with Jupyter and XFrames

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published