Hello, I was testing the following on https://try.jupyter.org/ and wondering why the plot sometimes disappears:
%matplotlib notebook import numpy as np import matplotlib.pyplot as plt def f(p): plt.figure(2) nx = 10 ny = 10 x = np.linspace(1, nx, nx) y = np.linspace(1, ny, ny) xv, yv = np.meshgrid(x, y) rgb = np.zeros((nx*ny,3)) rgb[:,0] += 1 rgb[:][p-1] = [0,1,0] area=200 plt.scatter(xv, yv, marker='s', s=area, c=rgb) plt.xticks([]) plt.yticks([]) # plt.show() from ipywidgets import interact, interactive interactive_plot = interactive(f, p=(0, 100)) interactive_plot -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscr...@googlegroups.com. To post to this group, send email to jupyter@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/645de1a1-d821-4cf0-bc9b-4dc5a0111e6d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.