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

Change draw_matplotlib function to show the figure when in shell #280

Merged
merged 3 commits into from
Dec 23, 2024

Conversation

mehatamm
Copy link
Contributor

Previously, draw_matplotlib would close and return the figure by default, which worked great in jupyter notebooks, as otherwise it would end up showing the figure twice. I changed the function to detect if it is being run in the shell, in which case it shows instead of closes the figure, making running non-notebook files with drawing much easier (as described in a previous issue I raised).

@jvdwetering jvdwetering merged commit b197b51 into zxcalc:master Dec 23, 2024
3 checks passed
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.

2 participants