(self)
| 90 | display(Javascript(FigureManagerNbAgg.get_javascript())) |
| 91 | |
| 92 | def show(self): |
| 93 | if not self._shown: |
| 94 | self.display_js() |
| 95 | self._create_comm() |
| 96 | else: |
| 97 | self.canvas.draw_idle() |
| 98 | self._shown = True |
| 99 | # plt.figure adds an event which makes the figure in focus the active |
| 100 | # one. Disable this behaviour, as it results in figures being put as |
| 101 | # the active figure after they have been shown, even in non-interactive |
| 102 | # mode. |
| 103 | if hasattr(self, '_cidgcf'): |
| 104 | self.canvas.mpl_disconnect(self._cidgcf) |
| 105 | if not is_interactive(): |
| 106 | from matplotlib._pylab_helpers import Gcf |
| 107 | Gcf.figs.pop(self.num, None) |
| 108 | |
| 109 | def reshow(self): |
| 110 | """ |
no test coverage detected