programmaticweb interface, but at a certain point of scale or complexity you may want to manage your code slightly differently, for example via an IDE or using source control on Python files. It's very easy to modify your
main.pyscript so that you can import functions from files on disk. This is often useful if you have a large number of labelling functions which rely on common "helper" functions.
main.pyfile in your project folder, create an empty file named
__init__.pyand another file (for example,
custom_functions.py) which will hold your custom code. Afterwards, your project directory should look like this: