I you need to "just" your code run notebooks in GCP there is a service for that: AI Platform Notebooks.

From your notebook instance you can work and download data you need, just be sure your instance has the resources (memory and CPU) you'll need, and do not forget to shut the instance down when you're not using it to avoid charges.

If a notebook is too much for you, you can always run everything in a compute instance (that's a virtual machine). Just launch it from the web and ssh to it with the web application (no need to install ssh, etc.), then you can upload the code into the instance. Just remenber to use a small instance one to start ;-)

Answer from Iñigo González on Stack Overflow
🌐
Google
codelabs.developers.google.com › codelabs › cloud-run-hello-python3
Hello Cloud Run with Python | Google Codelabs
March 20, 2026 - For the list of currently supported regions, see Cloud Run (fully managed) locations. ... gcloud run deploy helloworld-python \ --source .
Discussions

google cloud platform - Running basic Python script on GCP - Stack Overflow
I know this is basic but I am really struggling on how to get started and am so so so frustrated. I have developed the basis of my app on my windows pc using juypter notebooks and now want to start More on stackoverflow.com
🌐 stackoverflow.com
docker - How to run a "hello world" python script with Google Cloud Run - Stack Overflow
Forgive my ignorance.. I'm trying to learn how to schedule python scripts with Google Cloud. After a bit of research, I've seen many people suggest Docker + Google Cloud Run + Cloud Scheduler. I've More on stackoverflow.com
🌐 stackoverflow.com
How to automate a Python script with Docker and Google Cloud Run
This is awesome! For an even lower deployment/ops overhead, did you try hooking up a cloud scheduler function to a Gen 2 Cloud Function? Is there a reason you're using Cloud Run specifically? (CF Gen 2 runs on CR) More on reddit.com
🌐 r/googlecloud
3
5
December 15, 2022
Trying to trigger Cloud Run Job from python/django and not wait for the result
We use Cloud Tasks for this. The task can kick off the Cloud Run job. The task gives you a queue to monitor and will retry on failures etc. Python code calls that code to start the task. We use this same pattern to any longer running code and the calling code does not care how it is implemented. More on reddit.com
🌐 r/googlecloud
14
2
February 11, 2024
🌐
Reddit
reddit.com › r/python › automating python with google cloud
r/Python on Reddit: Automating Python with Google Cloud
March 28, 2024 -

I just published a tutorial series on how to automate a Python script in Google Cloud using Cloud Functions and/or Cloud Run. Feedback would be great. Thanks!

  • Automating Python with Google Cloud

    • Automating Python with Google Cloud Functions

    • Automating Python with Google Cloud Run

🌐
Davidmuraya
davidmuraya.com › blog › python-google-cloud-functions-guide
How to Run Python Scripts in the Cloud with Google Cloud Functions
December 3, 2025 - To run it, you would execute python main.py in your terminal. This approach confirms your logic works and that you are handling environment variables correctly before you deploy. Newer (2nd gen) Cloud Functions are built on top of Cloud Run.
🌐
Google Cloud
cloud.google.com › run
Cloud Run | Google Cloud
You can write code using your favorite language, framework, and libraries, package it up as a container, run "gcloud run deploy," and your app will be live—provided with everything it needs to run in production.
Find elsewhere
🌐
PyPI
pypi.org › project › google-cloud-run
google-cloud-run · PyPI
python3 -m venv <your-env> source <your-env>/bin/activate pip install google-cloud-run · py -m venv <your-env> .\<your-env>\Scripts\activate pip install google-cloud-run
      » pip install google-cloud-run
    
🌐
Google Cloud
cloud.google.com › python › getting started with python on compute engine
Getting started with Python on Compute Engine | Google Cloud Documentation
From Cloud Shell, you can deploy to a single Compute Engine instance virtual machine (VM) which runs your app. You need a way to instruct your instance to download and run your code.
🌐
Medium
medium.com › google-cloud › cloud-run-job-with-a-python-module-f072f49b9849
Cloud Run job Python Google Cloud | Google Cloud - Community
September 10, 2024 - The deploy-cloud-run-job-with-gcloud.yaml file allows to deploy the Cloud Run job and the Scheduler in Google Cloud · steps: - name: google/cloud-sdk:484.0.0-slim entrypoint: 'bash' args: - '-c' - | ./scripts/deploy_cloud_run_job.sh \ && ./scripts/deploy_scheduler.sh env: - 'PROJECT_ID=$PROJECT_ID' - 'LOCATION=$LOCATION' - 'SERVICE_ACCOUNT=$_SERVICE_ACCOUNT' - 'REPO_NAME=$_REPO_NAME' - 'JOB_NAME=$_JOB_NAME' - 'IMAGE_TAG=$_IMAGE_TAG' - 'OUTPUT_DATASET=$_OUTPUT_DATASET' - 'OUTPUT_TABLE=$_OUTPUT_TABLE' - 'INPUT_BUCKET=$_INPUT_BUCKET' - 'INPUT_OBJECT=$_INPUT_OBJECT' - 'SCHEDULER_NAME=$_SCHEDULER_NAME' - 'SCHEDULER_CRON=$_SCHEDULER_CRON'
🌐
Anderfernandez
anderfernandez.com › en › blog › automate-python-script-google-cloud
How to automate a Python script on Google Cloud - Ander Fernández
In this post I explain step by step how you can automate a Python script in Google Cloud with Cloud Functions, Cloud Scheduler and Pub/Sub.
🌐
C2cglobal
c2cglobal.com › articles › how-to-run-python-on-google-cloud-1356
How to Run Python on Google Cloud
Generally speaking, however, any code deployed in Google Cloud is run by a virtual machine (VM). Kubernetes, Docker, and even Anthos make application modernization possible for large applications. In the case of smaller scripts and deployments, a customizable VM instance is adequate for running Python script on Google Cloud and determining processor size, the amount of RAM, and even the operating system of choice for running applications.
🌐
DEV Community
dev.to › njoguu › running-a-python-script-on-google-cloud-in-2023-a-step-by-step-guide-272k
Running a Python Script on Google Cloud in 2023: A Step-by-Step Guide - DEV Community
May 31, 2023 - A Google Cloud Platform account: Sign up for GCP if you don't already have an account. Python installed on your local machine: Ensure you have Python installed, preferably version 3.x. A basic understanding of the command line interface (CLI). A basic understanding of Git. Make sure you have a repository set up that contains the Python scripts you want to run on Google Cloud.
🌐
Reddit
reddit.com › r/googlecloud › how to automate a python script with docker and google cloud run
r/googlecloud on Reddit: How to automate a Python script with Docker and Google Cloud Run
December 15, 2022 -

Link

I recently took on the challenge of automating a Python script, on a schedule with Docker and Google Cloud. While it sounds simple, this was quite tricky for me (a data scientist - not an engineer). I documented my steps in the referenced post for others who may find this useful.

Various posts in this sub helped me get this accomplished. (Particularly this).

Note that Google Cloud Run Services are different than Google Cloud Run Jobs. Services require your app to listen for HTTP requests. Jobs don't. This subtle distinction tripped me up, and I don't think it's talked about enough.

🌐
Medium
001-dharmendra.medium.com › getting-started-with-google-cloud-run-deploying-python-scripts-609838f82a8b
Getting Started with Google Cloud Run: Deploying Python Scripts | by dharmendra mishra | Medium
October 16, 2023 - Google Cloud Run is a fully managed compute platform that automatically scales your Python scripts in containers. It allows developers to run their code in containers, deploy it in a serverless environment, and easily scale applications as needed.
🌐
Medium
medium.com › @markwkiehl › python-web-app-in-google-cloud-run-cf4162636e33
Python Web App in Google Cloud Run | by Mark W Kiehl | Medium
April 27, 2025 - You literally need only sequentially run seven batch files in sequence from a Windows command prompt window and you will have a online production ready application! The batch files execute Docker and gcloud command line interface (CLI) commands. By inspecting the batch files, you can see the commands executed. A single file named “gcp_constants.bat” holds the project specific variables such as the Python script name, Google Cloud project name, Cloud Storage Bucket name, etc.