Resources for notebooks (Jupyter & Zeppelin)
On this page are instructions to help you get started.
Apache Zeppelin officially supports and is tested on the following environments:
Name | Value |
---|---|
OpenJDK or Oracle JDK | 1.8 |
OS | MacOSX & Ubuntu 16.x |
Two binary packages are available on the download page. Only difference between these two binaries is interpreters are included in the package file.
- all interpreter package: unpack it in a directory of your choice and you're ready to go.
- net-install interpreter package: unpack and follow install additional interpreters to install interpreters. If you're unsure, just run ./bin/install-interpreter.sh --all and install all interpreters.
Follow the instructions How to Build , If you want to build from source instead of using binary package.
On all unix like platforms:
bin/zeppelin-daemon.sh start
After Zeppelin has started successfully, go to http://localhost:8080 with your web browser.
bin/zeppelin-daemon.sh stop
Start by creating the needed voulumes:
docker volume create zeppelin-notebook
docker volume create zeppelin-logs
docker volume create zeppelin-interpreter
Then start the docker container:
docker run -d --restart always -p 8080:8080 -v zeppelin-notebook:/opt/zeppelin/notebook -v zeppelin-logs:/opt/zeppelin/logs -v zeppelin-interpreter:/opt/zeppelin/interpreter apache/zeppelin:0.9.0
Note: the official image of zeppelin uses anaconda (miniconda) as virtual environment for R and Python. To build an image that does not use anaconda use the Dockerfile found in this repository
To install pyhton 3 in your environment OS please follow the instruction found in this page: https://www.python.org/downloads/
After python has been installed you can isntall jupyter-lab
pip install jupyterlab
Just execue this code in powershell or terminal inside your workspace folder
jupyter-lab
To add R kernel into the python notebook you have to install R-base on your machine Install IRKernel package in R using this command inside r shell:
install.packages('IRkernel')
IRkernel::installspec() # to register the kernel in the current R installation
There are planty of official docker https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html to choose from. The below example shows how to start jupyter with r kernel: Create the volume
docker volume create jupyter-notebook
Run the container:
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes -v jupyter-notebook:/home/jovyan/work jupyter/r-notebook
Visiting http://localhost:8888/?token=<token>
in a browser loads JupyterLab, where token is the secret token printed in the console.
Docker destroys the container after notebook server exit, but any files written to ~/work in the container remain intact on the host.