Skip to content

Commit

Permalink
Update extensions/positron-python/python_files/positron/positron_ipyk…
Browse files Browse the repository at this point in the history
…ernel/matplotlib_backend.py

Signed-off-by: Wasim Lorgat <[email protected]>
  • Loading branch information
seeM authored Apr 16, 2024
1 parent 6973964 commit ef0a5f4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def show(self) -> None:
Called by matplotlib when a figure is shown via `plt.show()` or `figure.show()`.
"""
if self._plot is None:
# The frontend should respond with a render request, so there's no need for the explicit
# show call in this case.
self._plot = self._plots_service.create_plot(self.canvas._render, self._handle_close)
else:
self._plot.show()
Expand Down

0 comments on commit ef0a5f4

Please sign in to comment.