318 | | |
319 | | |
320 | | {{{#!td style="background: #efe" |
321 | | import statements will be placed in your #PY code exactly where you place it. Note that python treats import statements differently depending on where you place them. |
322 | | |
323 | | It may be better to put an extra #PY with the import at the top of the code. |
324 | | }}} |
| 318 | Any line containing an import ({{{from ... impport}}} or {{{import ...}}} |
| 319 | without leading whitespace is interpreted as a global import. If you place an INDENT before the import, it's not a global import anymore and kept in-line with the code. |
| 320 | |
| 321 | You can also annotate import statements with any python code. Note that in the translated python code, these snips will be placed after the imports. |
| 322 | |