You can modify the file of */redash/redash/settings/init.py , about 256 lines, append ‘redash.query_runner.python’ to the list of default_query_runners .
Of course, this is not the best solution, it should also be possible to modify the configuration file, but I am new to redash users, I do not know how to modify the V8 version of the configuration file. I hope this method can help you