We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02138d2 commit e58f496Copy full SHA for e58f496
ipycanvas/canvas.py
@@ -588,7 +588,6 @@ def flush(self):
588
589
self.send(self._commands_cache, self._buffers_cache)
590
591
- self.caching = False
592
self._commands_cache = []
593
self._buffers_cache = []
594
@@ -808,6 +807,11 @@ def hold_canvas(canvas):
808
807
Args:
809
canvas (ipycanvas.canvas.Canvas): The canvas widget on which to hold the commands
810
"""
+ orig_caching = canvas.caching
811
+
812
canvas.caching = True
813
yield
814
canvas.flush()
815
816
+ if not orig_caching:
817
+ canvas.caching = False
0 commit comments