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,
Launch the useMango™ application.
In the left panel, click on the Settings item.
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.
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
Python packages are installed at the app level so they are shared across all projects.