Don M
Don M

Reputation: 986

Running Jupyter Notebook in GCP on a Schedule

What is the best way to migrate a jupyter notebook in to Google Cloud Platform?

Requirements

I've tried the following,

I feel like this question should be easier, I found this article on the subject:

How to Deploy and Schedule Jupyter Notebook on Google Cloud Platform

He actually doesn't do what the title says, he moves a lot of GCP code in to a main.py to create an instance and he has the instance execute the notebook.

Feel free to correct my perspective on any of this

Upvotes: 1

Views: 993

Answers (1)

Rathish Kumar B
Rathish Kumar B

Reputation: 1412

I use Vertex AI Workbench to run notebooks on GCP. It provides two variants:

  • Managed Notebooks
  • User-managed Notebooks

User-managed notebooks creates compute instances at the background and it comes with pre-built packages such as Jupyter Lab, Python, etc and allows customisation. I mainly use for developing Dataflow pipelines.

Other requirement of scheduling - Managed Notebooks supports this feature, refer this documentation (I am yet to try Managed Notebooks):

Use the executor to run a notebook file as a one-time execution or on a schedule. Choose the specific environment and hardware that you want your execution to run on. Your notebook's code will run on Vertex AI custom training, which can make it easier to do distributed training, optimize hyperparameters, or schedule continuous training jobs. See Run notebook files with the executor.

You can use parameters in your execution to make specific changes to each run. For example, you might specify a different dataset to use, change the learning rate on your model, or change the version of the model.

You can also set a notebook to run on a recurring schedule. Even while your instance is shut down, Vertex AI Workbench will run your notebook file and save the results for you to look at and share with others.

Upvotes: 1

Related Questions