0

I am using a quarto notebook to interact with google drive using python. I instantiate the google client using the following code

import gspread
import gspread_pandas as gsp
from googleapiclient import discovery 
## Default config stored in ~/.config/gspread_pandas/
## if token expires, delete the token file in the above folder and re authorize
google_client = gsp.Client() 

This code works when I do have a valid credential file. however, when I don't, the code gets stuck. The reason is that the google auth flow requires me to complete the authentication using the auth flow link. In Jupyter notebook, the link is immediately displayed when this code is executed. In quarto, however, I do not see the link in the code chunk output, rather the code chunk just keeps waiting for me to complete the auth flow.

Is there any way I can mimic Jupyter's behaviour in the quarto notebook?

shafee
  • 15,566
  • 3
  • 19
  • 47
Rahul
  • 442
  • 6
  • 17

0 Answers0