-
Notifications
You must be signed in to change notification settings - Fork 6
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
[JOSS REVIEW] sp.visualize closes the plot for more than one sample? #21
Comments
Thanks for raising this. It works for me when I do python -c "from starry_process import StarryProcess; sp = StarryProcess(); y = sp.sample_ylm(nsamples=2).eval(); sp.visualize(y)" I see a flickering animation switching between the two samples, and the plot remains open until I close it. Are you in a Jupyter notebook? |
No, in the IPython console. It's fine if you don't want to support that, I was just surprised with the behaviour. |
Oh I definitely want to support that! But I still can't reproduce the issue, even inside an IPython session. What do you get when you run get_ipython() in your session? |
Ok, I tracked it down to the Regardless of that option, I get this get_ipython()
<IPython.terminal.interactiveshell.TerminalInteractiveShell at 0x7f9a8f0d2ed0> |
Just to add that with |
Interesting. Seems to be an issue with This is related: |
It works if you return the animation from inside |
Ah, I think I got it. The The fix is to simply check if |
When running
the plot shows up but closes right after.
There are a few
plt.close()
instarry_process.visualize.visualize
which are likely the cause.(This is part of joss-reviews/issues/3071)
The text was updated successfully, but these errors were encountered: