[Beta] Allow multiple statements in the Server Console

I am using the server console to test some app_tables queries.

I would like to paste a few lines with imports and variable initialization right after the console starts, but I am getting this error message:

SyntaxError: multiple statements found while compiling a single statement (<input>, line 1)

I can paste the multiline definition of a function, then call the function, but I cannot paste multiple statements.

That is not a problem with the Server console. If you use the default Python console as well in your device, you will still see the error.

It happens because you are trying to run a code while Python is still in the process of importing a module.

Although you can make it a function and then copy paste