Install requirements on startup
Apps can install requirements on container startup. Update theJupyter app to:
resources.py
requirements.txt file in the same directory
requirements.txt
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Jupyter app to:
...
# -*- 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")},
)
...
requirements.txt file in the same directory
openai
phi patch resources.py -y
phi patch resources.py --yes
Was this page helpful?