Apps
Features
Install requirements on startup
Apps can install requirements on container startup. Update the Jupyter
app to:
resources.py
...
# -*- Jupyter running on port 8888:8888
jupyter = Jupyter(
mount_workspace=True,
install_requirements=True,
requirements_file="requirements.txt",
env_vars={"OPENAI_API_KEY": getenv("OPENAI_API_KEY")},
)
...
Create a requirements.txt
file in the same directory
requirements.txt
openai
Patch resources
Was this page helpful?