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:
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, sayapi_key
, with the function, sayset_API_key
, that can set your API key.Create a configuration file for your JupyterLab environment (e.g.,
!jupyter notebook --generate-config
)Append your configuration file by appending the path to your local package directory.