How do you run your Python code on Kaggle without organizing it into a single notebook or script?
Here's what I'm trying to achieve: I have several Python scripts containing class definitions as well as the application logic, and I would like to run them as-is on Kaggle and take advantage of their freely-available GPUs and TPUs.
I'd rather not turn everything into a single .ipynb or .py file as it would get pretty messy due to the several import statements in each script (which would need to be fixed), although it seems to be the only way to do that. Are there any alternatives to run my code on Kaggle while taking advantage of GPUs/TPUs? If not, are there any other platforms that offer "free" GPUs?
You can import the files into each other. That way, you can run it all on one separate file that imports all the files. If you can only run one file, I'd advise you run them all on one file, or perhaps look into threading to run them all at once through one file.
Taking advantage of Kaggle's free GPUs and TPUs