Mage Pro makes dependency management simple through the requirements.txt file in your workspace’s root folder. Adding new packages doesn’t require cluster restarts, so you can immediately run your code after installation.

Installing dependencies in Mage Pro can be done through the requirements.txt file located in the project folder of your cluster or workspace.

Follow these steps to add and install requirements:

  1. Click the requirements.text file to open the file in your editor
  2. Add your packages to the file and save it
  3. Navigate to the terminal page
  4. Run pip install -r requirements.txt

Following this steps will install your requirements and you will not need to restart the cluster after installation. You can run your code as written