Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image print for auto feedback from code notebook #1389

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions notebook/agentchat_auto_feedback_from_code_execution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"from typing import Dict, Union\n",
"\n",
"from IPython import get_ipython\n",
"from IPython.display import Image\n",
"from IPython.display import display, Image\n",
"\n",
"import autogen\n",
"\n",
Expand Down Expand Up @@ -498,7 +498,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand All @@ -515,7 +515,8 @@
],
"source": [
"try:\n",
" Image(filename=\"coding/stock_price_ytd.png\")\n",
" image = Image(filename=\"coding/stock_price_ytd.png\")\n",
" display(image)\n",
"except FileNotFoundError:\n",
" print(\"Image not found. Please check the file name and modify if necessary.\")"
]
Expand Down Expand Up @@ -813,7 +814,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.10.13"
davorrunje marked this conversation as resolved.
Show resolved Hide resolved
},
"vscode": {
"interpreter": {
Expand Down
Loading