r/GoogleAppsScript • • Aug 07 '23

Question How to run Google Colab notebook through appscript

I am working on a project where a user submits a spreadsheet, the spreadsheet is processed into a report, and the report is emailed to the user.

I’ve set up a Google Form that lets a user submit a file that is sent to a drive folder. I have also written a Colab notebook that can pull a file from Google drive and manipulate it. I have a decent understanding of how to automatically send an email with appscript, although I haven’t written any code to do so yet.

How can I make these components work together? I know I can trigger the appscript to run when a file is uploaded to the drive folder, but from there I don’t know how to interact with my Colab code.

Any insight helps, and if there is a more appropriate sub for me to ask this question please let me know.

12 Upvotes

1 comment sorted by

1

u/OK92 Dec 30 '23

I have a similar problem.... I use Google Classroom to assign and collect python notebooks. To mark those python notebooks, I have a script written on Google Colab. I want to use Google App Script to automate the process....but no idea how....

I don't want to run python script on Google Cloud as the process seems cumbersome and I would have to provide credit card info. Can't do this since it is commissioned work.

Any help for us would be appreciated.