Python packages

This page explains the process for installing relevant third-party Python packages in a research environment.

Quick installation guide

  1. %pip install <name of package>

  2. import <name of package>

  3. Use package as needed

Third-party Python packages

There will be a number of third-party packages pre-installed in the research environment. To list all the packages that are currently installed, run the %pip list script.

Warning: the research environment will always reset upon restart, and revert back to the pre-installed packages. To make sure all relevant Python packages are installed, integrate the process below into your daily workflow.

Note: installing a package in one notebook makes it available for all notebooks in that workspace.

Installing third-party Python packages

Warning: some restrictions are in place to ensure SigTech's Python packages are functional. If a certain package version deviates from one of these requirements, it is not installed.

To ensure the Python packages are installed in your workspace, using one of the following two approaches:

Install via cell

Note: this is the simplest approach.

Add the installation commands to one of the initial cells in the relevant Jupyter notebook.

Example:

Install via text file (best if you have many packages)

Note: this is the best solution if you have many packages.

List all the packages in a text file, then point the pip install command to that text file. This approach allows for all packages to be installed with one pip install command.

  1. Create the text file.

  2. Change the file to the relevant name. For example, requirements.txt.

  3. List all the Python packages needed:

  4. In a Jupyter notebook, install all the Python packages listed in the requirements.txt file with the one command:

Last updated