Hi does anyone know how to create and run an instance from a jupyter notebook and/or a datalab instance in the cloud?
I'm trying to run a large computation and I want to divide the tasks into several VMs in the cloud. Is there anyway I could create and run an instance from my datalab notebook?
For ex: I want to run every loop of a 10 iteration for loop in a different VM. For that I need to create and run a VM from inside my datalab notebook where my code is. Thanks for the help!
Edit: This is an example of a startup script I'm using.
gcloud compute instances create instance11 \
--metadata startup-script=‘#! /bin/bash
sudo apt update
sudo apt-get install python3.6
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
pip --version
pip install pandas --user
pip install scipy --user
pip install scikit-learn --user
pip install sklearn —user
pip install matplotlib --user
gsutil cp gs://bucket/datafile /home directory
gsutil cp gs://bucket/pythonfile /homedirectory
' --machine-type n1-standard-32