Exercise 5 - API-Key Module (Optional)

Exercise 5 - API-Key Module (Optional)#

Level: Advanced

Exercise time: ~ 2 hours

Problem statement:#

Use a generative AI model to guide you through the process of creating an authentication package for any provider by setting the API key from any notebook on your machine. Here are the steps:

  1. Create a package: We did not learn package structure, but you can ask your generative AI model to show you how to create a package, say ai_assistant, and create a module, say api_key, with the function, say set_API_key, that can set your API key.

  2. Create a configuration file for your JupyterLab environment (e.g., !jupyter notebook --generate-config)

  3. Append your configuration file by appending the path to your local package directory.