Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establish consistency standards in notebooks around (colab vs workbench) #280

Open
zeroasterisk opened this issue Dec 6, 2023 · 1 comment
Assignees

Comments

@zeroasterisk
Copy link
Contributor

Sometimes you have code blocks which are commented and you say to uncomment them, sometimes you have codeblocks which are uncommented and you say to comment them.

Instead, can we establish shared conventions for notebook set up, and ideally a runtime conditional allowing it to work in workbench and colab without editing. The fewer things a user needs to do to execute the colab, the better.

Other things to try to standardize on:

  • auto-restart of the runtime after package install, if restart needed: https://g.co/bard/share/0df557a3a623
  • params for anything you expect a user to edit, just to get the colab to run (eg: no private data stores)
  • public sample data for anything you need to use (eg: no private data stores)
zeroasterisk added a commit to zeroasterisk/generative-ai that referenced this issue Dec 19, 2023
zeroasterisk added a commit to zeroasterisk/generative-ai that referenced this issue Dec 19, 2023
holtskinner added a commit that referenced this issue Jan 5, 2024
copy/paste 3 json blocks into colabs for "search" and "gemini" for
runtime restart standardization.

I spot-checked 2 of the colabs and they are working correctly.

Want to land this PR before editing more of the colabs.

Related to issue #280

---------

Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com>
Co-authored-by: Holt Skinner <holtskinner@google.com>
@holtskinner
Copy link
Collaborator

Related to this: We also should update the "Open In" Links to include Colab Enterprise, now that we can do that for notebooks in this repo. Not sure if we should replace Colab or Vertex AI Workbench or add another box.

URL Format:
https://console.cloud.google.com/vertex-ai/colab/import/https:%2F%2Fraw.githubusercontent.com%2FGoogleCloudPlatform%2Fgenerative-ai%2Fmain%2Fgemini%2Fgetting-started%2Fintro_gemini_pro_vision_python.ipynb

kartikeygupta24 pushed a commit to nitchandak/generative-ai that referenced this issue May 3, 2024
copy/paste 3 json blocks into colabs for "search" and "gemini" for
runtime restart standardization.

I spot-checked 2 of the colabs and they are working correctly.

Want to land this PR before editing more of the colabs.

Related to issue GoogleCloudPlatform#280

---------

Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com>
Co-authored-by: Holt Skinner <holtskinner@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants