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
Hey @istrupin! I'm here to assist you with any bugs, questions, or contributions you have. Let's squash those bugs together! 🤖
There is a similar open issue, #1270, where the problem was that charts were shown despite setting the open_charts configuration to False. The suggested solution involved modifying the code to handle or remove the plt.show() call. A fork was created to address this issue, and you can view the specific change made in the fork here[1].
Additionally, there is a test in the codebase, test_return_value_without_display, that verifies the behavior of the open_charts configuration option. This test ensures that when open_charts is set to False, the plot is not displayed, indicating that the configuration should work as intended [2].
It might be worth checking if there have been any recent changes or regressions in the codebase that could have affected this behavior.
System Info
OS Version: MacOS Sequoia
Python Version: 3.11
pandasai version: 2.3.0
🐛 Describe the bug
When I set my config to not open charts, it seems like the setting is not respected:
config = { "verbose": True, "llm": _get_llm(), "open_charts": False, "enable_cache": False, "save_charts": True, "save_logs": False, }
Looking at the verbose output, I see that
plt.show()
is still being called.This seems almost identical to #1270 -- perhaps there was a regression since that was fixed.
The text was updated successfully, but these errors were encountered: