QHub 101#

QHub is an open source framework that allows data science teams to initialize and maintain their data science stack on the cloud. QHub makes use of Terraform to deploy JupyterHub, JupyterLab, Dask, and Conda environments on Kubernetes clusters across all major cloud providers.

Through QHub, the deployment is managed using a single configuration file and is powered by GitHub Actions. This allows teams to build and maintain cost-effective and scalable infrastructure for compute/data science on cloud or on-premises. QHub is designed to be used and deployed by anyone, requiring minimal DevOps experience.


With QHub, you can:

  • Install and manage a shared compute environment on cloud using a single configuration file.

  • Choose compute instance types and storage sizes flexibly as per your needs.

  • Auto scale your JupyterHub installation and Dask compute clusters based on your cloud provider and instance type.

  • Get remote editing access through KubeSSH with full shell access.

  • Monitor your cluster health and usage using Grafana.

  • Access compute environments that handles both pre-built and ad-hoc environments.

  • Integrate JupyterLab extensions with your QHub environment.

  • Embed a Jitsi conference with your JupyterLab for remote collaboration.

QHub Architecture#

The QHub architecture facilitates:

  • Managing data science and compute environments flexibly on cloud.

  • Seamless deployment with GitHub Actions using a single configuration file.

  • Allow multiple teams to collaborate together with control permissions.

At a high-level, QHub makes use of Network File System (NFS) to provide storage access to Kubernetes applications. This creates a Kubernetes Persistent Volume that allows NFS to share files directly. With the aid of Dask integration and environment management with conda-store, QHub provides users with a simple deployment process.

For infrastructure provisioning, QHub uses Terraform to deploy Kubernetes clusters on AWS, GCP, Azure, and Digital Ocean. For Kubernetes deployments, QHub uses Helm Charts to allow ease of distribution and to deploy QHub on any Kubernetes cluster.

To learn more about the nitty gritty of QHub’s internal architecture, refer to the QHub Architecture section.

Installation and management#

QHub can be easily installed using either conda or pip.

  • conda:

    conda install -c conda-forge qhub
  • pip:

    pip install qhub

QHub CLI will be installed automatically as part of the install process. After installation, QHub CLI can be used to deploy and manage your environment on HPC, cloud, on-premises or even locally. To install QHub locally, follow the testing section.

For HPC deployment, follow the QHub HPC documentation. For individual cloud deployment, follow the installation instructions. After setting up all the credentials, you can deploy QHub using:

qhub init
qhub deploy

After installing QHub, you can further manage your deployment by adding new users, upgrading dependencies, managing your environment, and monitoring your deployment. Refer to the management instructions for more details.

Using QHub#

After setting up QHub, you can visit the URL where QHub is running. Based on your authentication mechanism, you will be greeted by a login page after which the user will be prompted to use a set of profile available to them. With fixed resources allocated to each user, you can start a cluster by clicking Start which will initiate the launch.

After the launch, you will be greeted by specific Python environments, which when clicked will start a JupyterLab notebook. To use VS Code, you can use Code Server by clicking VS Code IDE icon. To remotely access the clusters, use the jupyterhub-ssh extension. For further usage instructions, follow the using QHub section.

Community & support#

QHub is supported by the Quansight community. We maintain a Frequently Asked Questions (FAQ) page for QHub users. For QHub queries, we ideally rely upon the following channels:

  • GitHub Discussions: Raise discussions around particular subjects and specific queries around usage, maintenance and administration.

  • GitHub Issues: Use Issues to report bugs, request new features, new documentation or potential refactors.

How can I contribute?#

QHub welcomes new contributors. If you are interested in contributing to QHub, please refer to the contributing guide for more details.

We require contributors to strictly follow our Code of Conduct and propose features, bug fixes and documentation changes on our issues page.