Skip to main content
Version: Python

How to use Python packages

This guide discusses how to use Python packages with Deephaven. To learn how to install these packages, see our guide How to install Python packages.

Once a package is installed, it can be imported and used like any other Python package. For an index of available Python packages and for more information on Python packages, visit the Python Package Index and our Choose Python packages cheat sheet.

Use packages in query strings

Installed Python packages can be used in query strings. Let's use the Pendulum package, which we installed in the guide How to install Python packages.

import pendulum
from deephaven import time_table

def get_paris_time():

times_in_paris = time_table("PT5S").update(formulas=["Paris = get_paris_time()"])