expectedparrot / edsl

Design, conduct and analyze results of AI-powered surveys and experiments. Simulate social science and market research with large numbers of AI agents and LLMs.
https://docs.expectedparrot.com
MIT License
187 stars 19 forks source link

Try out starter tutorial using Google Collab #1196

Open johnjosephhorton opened 1 week ago

johnjosephhorton commented 1 week ago

If, from a blank collab, you download edsl and run (without setting a key), this is the experience:

Screenshot 2024-10-28 at 6 29 03 AM

Not great. @rbyh I think as we discussed, what should probably happen is:

  1. EDSL python process generates a unique coop URL that is printed to the terminal and the application is paused, polling coop looking for authentication (it's hung here)
  2. User visits the URL and authenticates / creates an account
  3. When that user authenticates, they are instructed to close the browser tab
  4. The EDSL Python process, while polling, discovers the authentication
  5. The EDSL process can fetch the user's EP key and writes it to a .env_edsl file; the key is ALSO loaded into the current session

cc: @zer0dss @onmyraedar @apostolosfilippas