Skip to content

Update openai-agents SDK notebooks to install dependencies quietly and add restart kernel instructions#993

Merged
areibman merged 2 commits intomainfrom
devin/1747805460-update-notebook-installation
May 21, 2025
Merged

Update openai-agents SDK notebooks to install dependencies quietly and add restart kernel instructions#993
areibman merged 2 commits intomainfrom
devin/1747805460-update-notebook-installation

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

Update openai-agents SDK notebooks installation cells

Changes

  • Updated the first cells of example notebooks in the openai-agents SDK directory to:
    1. Install dependencies quietly to avoid spamming the notebook output
    2. Add a comment instructing users to restart the kernel after installation

Notebooks Updated

  • examples/openai_agents_sdk/customer_service_agent.ipynb
  • examples/openai_agents_sdk/tool_usage_agent.ipynb
  • examples/openai_agents_sdk/web_search_agent.ipynb

Details

The changes improve the notebook user experience in two ways:

  1. Using the -q flag when installing dependencies to reduce the output verbosity in the notebook
  2. Adding clear instructions to restart the kernel after installation, which is a common best practice when installing new packages in a notebook environment

The changes were implemented using get_ipython().system() instead of the Jupyter magic ! syntax for better control and consistency.

Link to Devin run

https://app.devin.ai/sessions/1e02c006bda04de8b9f23f1a498edc71

Requested by

Alex Reibman

…d add restart kernel instructions

Co-Authored-By: Alex Reibman <meta.alex.r@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: Alex Reibman <meta.alex.r@gmail.com>
@areibman areibman merged commit 8705cdd into main May 21, 2025
2 checks passed
@areibman areibman deleted the devin/1747805460-update-notebook-installation branch May 21, 2025 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant