You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code snippet will generate 2 outputs: plt.show() and print(). According to this code,codebox-api will return on first output (plt.show()),and it seems the remaining code will not be executed.
So how can I get codebox-api to return both outputs(image/png and text)?
I think we can maybe cache the image and not directly return all. But also the CodeBoxOutput needs to get improved then to allow text and image output at the same time.
Activity
shroominic commentedon Mar 1, 2024
good point currently it is checking for an image output and directly returning the image:
https://github.com/shroominic/codebox-api/blob/78d5ac65d007d501400f9868f9a75fda1cbcb5ac/src/codeboxapi/box/local.py#L168C1-L173C23
(code from current work in progress v0.2 but its the same issue)
I think we can maybe cache the image and not directly return all. But also the CodeBoxOutput needs to get improved then to allow text and image output at the same time.