Panel/Holoviews Learning Aid

Updated: Mar 23

This notebook is designed to help you learn how to make apps in panel in about 15 minutes. Screenshots of cell outputs are included for convenience below, but it is strongly recommended that you use the interactive version by clicking here (takes 1-2 minutes to load) or by cloning the repo and running locally.

Building a Web App with Panel and Holoviews

import panel as pn
import holoviews as hv

from mortgage_calculator.layout import layout as mortgage_app


Sample App

Try out the app below. It's a mortgage calculator app allowing you to see your mortgage payment, amortization schedule, and principal paid over time.

Note: For the app below to work in JupyterLab, you'll need to run jupyter labextension install @pyviz/jupyterlab_pyviz in the terminal to install the needed labextension. This is not needed if running in a Jupyter notebook outside of JupyterLab.

Example mortgage payment Panel app display with menus, sliders, and buttons above a bar chart showing payment components

The app above was built with Python, and without directly writing any css or javascript. Panel and Holoviews are a great way for data scientist or others to build a web app. This learning aid is designed to demonstrate some common usage, and encourage you to build your own app from there.