-
Notifications
You must be signed in to change notification settings - Fork 223
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
how to disable this widget for some figures? #219
Comments
Can we assume that you mean, "and use the inline backend instead"? :) As in, use |
I tried '%matplotlib inline' and it is like not iteractive, which is what I want. But I think I need to add '%matplotlib inline' or '%matplotlib widget' every time I want to change from one to the other, right? |
Yeah that would be it.. There is no way, I suppose, to do otherwise. |
Thank you Martin |
This issue is a bit more general than ipympl, I think. I've wondered a lot about the general matplotlib backend implementation in jupyter - like how one cannot switch between the various interactive backends without restarting the kernel, for instance. |
This is completely dependent to ipython actually, ipython implements the magics that decide how matplotlib behaves. |
Does the below achieve what you want? plt.ioff(); fig = plt.figure(); plt.ion()
# whatever plotting you want
display(fig) Using ioff prevents the automatic display of the figure on it's creation, and then if you |
@ianhi I think you didn't mean to write The following works for me: with plt.ioff():
fig = plt.figure()
# ...
display(fig) |
good catch!. I edited it to be the correct thing |
as title. Thank you in advance.
The text was updated successfully, but these errors were encountered: