Skip to main content

Jupyter Server Proxy for Apache Zeppelin

Project description

Apache Zeppelin Integration for Jupyter


The Apache Zeppelin Integration for Jupyter enables you to access Apache Zeppelin in a web browser from your Jupyter environment.

jupyter-apache-zeppelin-proxy is a Python® package based on the following packages.

Package Description
jupyter-server-proxy Extends Jupyter environments to launch Apache Zeppelin as an external process alongside the notebook server. For more information see GUI Launchers.

NOTE: This package currently, does not provide a kernel level integration with Jupyter.

To report any issues or suggestions, see the Feedback section.


Requirements

This package has the same requirements as its dependencies:

After downloading Apache Zeppelin, make sure to create a symbolic link in PATH that points to the Apache Zeppelin daemon.

# if the downloaded Apache Zeppelin package resides at /opt/apache-zeppelin
# As root or superuser
ln -s /opt/apache-zeppelin/bin/zeppelin-daemon.sh /usr/bin/zeppelin-daemon

Installation

PyPI

This repository can be installed directly from the Python Package Index.

python -m pip install jupyter-apache-zeppelin-proxy

If you want to use this integration with JupyterLab®, ensure that you have JupyterLab installed on your machine by running the following command:

python -m pip install jupyterlab

You should then install jupyterlab-server-proxy JupyterLab extension. To install the extension, use the following command:

jupyter labextension install @jupyterlab/server-proxy

Building From Sources

git clone https://github.com/tiaden/jupyter-apache-zeppelin-proxy.git

cd jupyter-apache-zeppelin-proxy

python -m pip install .

Usage

Upon successful installation of jupyter-apache-zeppelin-proxy, your Jupyter environment should present options to launch Apache Zeppelin.

  • Open your Jupyter environment by starting jupyter notebook or lab

    # For Jupyter Notebook
    jupyter notebook
    
    # For Jupyter Lab
    jupyter lab 
    
  • If you are using Jupyter Notebook, on the New menu, select Zeppelin. If you are using JupyterLab, select the Zeppelin icon on the launcher.

image

Integration with JupyterHub

To use this integration with JupyterHub®, you must install the jupyter-apache-zeppelin-proxy python package in the Jupyter environment launched by your JupyterHub platform.

For example, if your JupyterHub platform launches Docker containers, then install this package in the Docker image used to launch them.

Troubleshooting

In the environment that you have installed the package:

  • Verify if java in installed (i.e. if it is in the PATH). Java (version 8 or later ) installation is required by apache zeppelin

    $ which java
    /usr/bin/java
    
  • Verify if the Apache Zeppelin daemon is discoverable (i.e. if it is in the PATH)

    $ which zeppelin-daemon
    /usr/bin/zeppelin-daemon
    
  • Check if their Python version is 3.8 or higher

    $ python --version
    Python 3.8.10
    
  • Ensure that jupyter-apache-zeppelin-proxy and the jupyter executables are in the same environment as the python executable. For example if you are using VENV to manage your python environments:

    $ which python
    /home/user/my-project/packages/.venv/bin/python
    
    $ which jupyter-apache-zeppelin-proxy
    /home/user/my-project/packages/.venv/bin/jupyter-apache-zeppelin-proxy
    
    $ which jupyter
    /home/user/my-project/packages/.venv/bin/jupyter
    

    Notice that jupyter-apache-zeppelin-proxy, jupyter and the python executable are in the same parent directory, in this case it is: /home/user/my-project/packages/.venv/bin

  • Ensure that you are launching jupyter notebook using the same executable as listed above.

  • Ensure that all three packages are installed in the same python environment

    # Pipe the output of pip freeze and grep for jupyter and jupyter-apache-zeppelin-proxy.
    # All two packages should be highlighted in the output.
    # If you don't see anyone of them, then either the packages missing in the output have been installed
    # in a different python environment or not installed at all.
    $ pip freeze | grep -E "jupyter|jupyter-apache-zeppelin-proxy"
    
  • If the integration is not showing up as an option to the dropdown box in the Jupyter notebook:

    #Run the following commands and verify that you are able to see similar output:
    
    $ jupyter serverextension list
    config dir: /home/user/anaconda3/etc/jupyter
        jupyter_server_proxy  enabled
        - Validating...
        jupyter_server_proxy  OK
        jupyterlab  enabled
        - Validating...
        jupyterlab 2.2.6 OK
    
    $ jupyter nbextension list
    Known nbextensions:
    config dir: /home/user/anaconda3/etc/jupyter/nbconfig
        notebook section
        jupyter-js-widgets/extension  enabled
        - Validating: OK
        tree section
        jupyter_server_proxy/tree  enabled
        - Validating: OK  $ pip freeze | grep -E "jupyter|jupyter-apache-zeppelin-proxy"
    
    # IF the server does not show up in the commands above, install:
    $ pip install jupyter_contrib_nbextensions
    

Feedback

We encourage you to try this repository with your environment and provide feedback. If you encounter a technical issue or have an enhancement request, create an issue here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-apache-zeppelin-proxy-1.0.5.tar.gz (104.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file jupyter-apache-zeppelin-proxy-1.0.5.tar.gz.

File metadata

File hashes

Hashes for jupyter-apache-zeppelin-proxy-1.0.5.tar.gz
Algorithm Hash digest
SHA256 754dfbd78011c68ddac4a309dc185a2ffff6a69e8a9cd1d24de49dca4e090fb3
MD5 749d500d4c937cffab396fe5523c3e91
BLAKE2b-256 bbc09a56c717e608e0b49aa9515619deada4bc8ca1f905773a8a1114de1c0ef6

See more details on using hashes here.

File details

Details for the file jupyter_apache_zeppelin_proxy-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_apache_zeppelin_proxy-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5d1ca2fbebf996db90b0012c481506b3007e4b366259cdad7b68b448b14d5dd6
MD5 996dc087c3cade46e187e48611e45412
BLAKE2b-256 d98015bcb7ad7f88a43219693d27263377264002e60d92f01e57781d66dd161f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page