google-gemini / cookbook

Examples and guides for using the Gemini API
https://ai.google.dev/gemini-api/docs
Apache License 2.0
5.46k stars 834 forks source link

Add a notebook test script. #187

Open MarkDaoust opened 5 months ago

MarkDaoust commented 5 months ago

Add a starter script for testing notebooks.

based on google3/devsite/tools/tensorflow/kokoro/tf_ecosystem/executor.py

This gets most notebooks passing, we can use it as a base to setup presubmits.

Some notebooks are still failing:

See also: https://github.com/google/generative-ai-docs/pull/445

review-notebook-app[bot] commented 5 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

MarkDaoust commented 5 months ago

It's still pretty rough, but it gets the notebooks run.

Some notebooks only run with api_key, others only with oauth. We'll need to fix this.

We should probably look at using colab's docker:

https://twitter.com/GoogleColab/status/1663594080436375558

Then run in GH actions or kokoro.

https://docs.github.com/en/actions/creating-actions/creating-a-docker-container-action