Add Python packages

Adding Python packages

We have eliminated the concept of Resource Groups in Python, so instead the users have the ability to add the Python packages needed by their components.

To accomplish this,

  1. Launch the useMango™ application.

  2. In the left panel, click on the Settings item.

  3. In the section titled Python dependencies, click the Edit button to open a text area where the user can specify the names of the Python packages, each separated by a newline.

  1. Click the Save button.

And you’re set to use these packages in your component functions by using Python import syntax, for example:

def execute(log):
    import numpy as np
    a = np.array([1, 2, 3, 4])
    a *= 2
    return Pass("Doubled each element of original array", P1=a) # here P1 is the output variable Id

  1. To remove any package, click on the Edit button and delete that package name from the text area and click Save.

Python packages are installed at the app level so they are shared across all projects.