list_files() not showing generated matplotlib plots in Azure Container Apps session pool #28113
Answered
by
feijoes
ElieTaillard
asked this question in
Ask Dosu
-
When using Steps to reproduce: code = """
import matplotlib.pyplot as plt
plt.plot([1, 2, 3], [1, 2, 3])
plt.show()
"""
# Execution shows image creation
result = tool.execute(code)
# Returns: {"result": {"type": "image", "format": "png"}}
# But files aren't listed
files = tool.list_files() # Returns [] Environment:
Expected: Files generated by matplotlib should be visible in session filesystem |
Beta Was this translation helpful? Give feedback.
Answered by
feijoes
Nov 14, 2024
Replies: 1 comment 1 reply
-
@ElieTaillard |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ElieTaillard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ElieTaillard
ptl.show()
only displays the plot; it doesn't create a file. Try usingptl.savefig('graph.png')
to save it as an image