Importing custom Python code
When you’re writing code in Mage, you can import any other Python files using this format:demo_project
and you have the following folder structure:
demo_project/utils/helpers/shared.py
file:
You can import any Python code from any file that is in your Mage project directory.
demo_project
and you have the following folder structure:
demo_project/utils/helpers/shared.py
file: