Packages and Package Managers

Adding Packages

After you choose the starter environment, you can add packages using the package managers to further establish your computational environment. When adding a package without a version number, the system will download the latest version of the package.

Advanced Settings for Package Managers

Configure Package Managers

Some packages require specific configurations for installation.

  1. Select Configure [package manager name].

  2. Enter the information for the additional setting.

Reset Package Versions to "Latest"

This feature is useful where there are many packages installed from a package manager, and you want the system to install the latest versions. Instead of removing each version, you can use this feature to do it all at once.

  1. Select Reset package versions to 'latest'.

There is no confirming message for this action. Use it with caution.

A preferred practice is to commit changes before resetting all of the package versions in the package manager so that you can revert the change.

Remove All Packages

Similar to the previous feature. Instead of removing the packages one by one, you can remove all the packages in bulk.

  1. Select Remove all packages.

There is no confirming message for this action. Use it with caution.

A preferred practice is to commit changes before removing all the packages in the package manager so that you can revert the change.

The removal will fail if the package is currently used by the other package manager. Note that there will be no pop-up message to indicate this issue.

Edit Bulk Packages

This feature is useful when you want to add, change or remove multiple packages. You can drag and drop supported file types (i.e. requirement.txt for pip or environment.yml for conda) to add multiple packages.

  1. Select Edit Bulk.

A text editor will appear with the currently listed packages of that package manager. You can drag and drop the dependency files directly to the text editor window, and modify multiple packages at once. Click Save when you are done editing.

If you try to add a non-supported file type to the package manager, the system will return an error message.

Install Packages from Dependency Files

The environment setup just got easier. You can now populate packages in your capsule environment directly from the most common dependency files:

  • requirements.txt - pip package installer environment file

  • environment.yml - conda package installer environment file

  • lock.json - R CRAN package installer environment file

To install packages from a dependency file:

  1. Go to the file in the capsule's tree

  2. Select Install packages

The name and the file type have to be the same as the list above. Otherwise, the Install packages won't show up in the drop-down menu

Using Post-Install Script to Install Complex Packages

Some packages may require building from source or downloading files. In this case, it is better to install them via the Post-Install script. Go to the Post-Install Script section for more information.

Last updated