/qpod-hub

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

QPod Hub Package

License TravisCI Pipeline Status PyPI version PyPI format PyPI download month GitHub Starts

Notice: If you are looking for the out-of-box QPod docker images, please goto: https://github.com/QPod/docker-images

Introduction

The qpod-hub package provides a hub portal user interface and proxy service for QPod.

As a hub service, qpod-hub detect if specific service are installed and provides a homepage GUI for users. Currently, the following services are supported:

  • Jupyter Notebook
  • JupyterLab
  • Code-server
  • Tensorboard
  • RStudio Server
  • Shiny Server

Screen shot of QPod

Development

Under Linux/macOS

docker run -it --rm \
    --name=dev_QPod \
    --hostname="docker-develop@" \
    -v `pwd`/:/root/ \
    -p 8800-8888:8800-8888 \
    qpod /bin/bash

Under Windows

docker run -it --rm ^
    --name=dev_QPod  ^
    --hostname="docker-develop@" ^
    -v %cd%/:/root/ ^
    -p 8800-8888:8800-8888 ^
    qpod /bin/bash

Enter into the container and Debug/Install

docker exec -it dev_QPod /bin/bash

PYLIB_DIR="/opt/conda/lib/python3.9/site-packages/"
ln -s `pwd`/qpod $PYLIB_DIR/
ln -s `pwd`/qpod/base/etc/qpod_hub-jpserverextension.json /opt/conda/etc/jupyter/jupyter_server_config.d/
ln -s `pwd`/qpod/base/etc/qpod_hub-nbserverextension.json /opt/conda/etc/jupyter/jupyter_notebook_config.d/
ln -s `pwd`/qpod/base/etc/qpod_hub-nbextension.json       /opt/conda/etc/jupyter/nbconfig/tree.d/


yarn --cwd `pwd`/qpod/base/static/
python -m qpod

python setup.py sdist bdist_wheel
pip install -U dist/*.whl
jupyter notebook