Added authentication for other development environments in jupyter notebooks
In Jupiter notebooks tutorial examples https://cloud.google.com/vertex-ai/docs/generative-ai/learn-resources I was not able to authenticate in my local development environment. Current option was only for colab and workbench.
Found solution using google.oauth2 and service_account.
So I added commented authentication option for "other development environments" to jupyter notebooks tutorials.
Check out this pull request on ![]()
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Hi @srjchsv , thank you so much for your proposed changes -- would you mind changing the destination of the PR to the main branch, instead of dev?
Hi @srjchsv , thank you so much for your proposed changes -- would you mind changing the destination of the PR to the main branch, instead of dev?
Hi @polong-lin,
Thanks for your reply!
This last commit "Merge branch 'main' into dev" was created when I solved the conflicts here in github PR. I believe my PR is targeting GoogleCloudPlatform:main from my srjchsv:dev.
If thats not the case please let me know how to change the destination of PR!
In Jupiter notebooks tutorial examples https://cloud.google.com/vertex-ai/docs/generative-ai/learn-resources I was not able to authenticate in my local development environment. Current option was only for colab and workbench.
Found solution using google.oauth2 and service_account.
So I added commented authentication option for "other development environments" to jupyter notebooks tutorials.
the refactored version in latest commit uses gcloud to create credentials and auth in local development environment
Excellent. This helped me. I appreciate it.
Thanks for the PR -- sorry been busy but will do a review this week and merge!
Allright, thanks! Have a good week!
On Wed, Nov 29, 2023, 3:08 AM Polong Lin @.***> wrote:
Thanks for the PR -- sorry been busy but will do a review this week and merge!
— Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/generative-ai/pull/181#issuecomment-1830902754, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOC3W3NQXFOYMEPI6S3FTHLYGZVIBAVCNFSM6AAAAAA45DGL6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZQHEYDENZVGQ . You are receiving this because you were mentioned.Message ID: @.***>
I re-made the commit to fix the merge conflicts due to restructuring.