Package Support

Working with packages is an important part of using Python in Hex.

Using a pre-installed package

Hex has a number of popular packages pre-installed.

You can see which packages are available through the Packages tab in the left-hand bar.

Installing new packages through pip

You can add new packages to a project using pip, much as you would in a local environment.

Create a new cell, and use a ! to trigger a terminal command:

!pip3 install astropy

Because projects are run top to bottom with a new kernel every time a user visits your App packages installed with !pip install have to be reinstalled every time your project runs.