Skip to main content

How Imports Are Generated

By default, the inferImports setting is set to true, which means when Setta generates Python code, it will also generate import statements.

This is why you can create a section like this:

without writing any import statements yourself.

How it works​

Explanation coming soon...

How to turn it off​

If you don't want this behavior, you can set inferImports to false in setta_files/setta-settings.json or at http://127.0.0.1:8000/settings.

Then write the imports yourself in a code block, before $SETTA_GENERATED_PYTHON: