Save state before each embed

This commit is contained in:
Grant Sanderson 2021-10-11 06:22:41 -07:00
parent 2d115a2c90
commit f22a341e84

View file

@ -119,6 +119,9 @@ class Scene(object):
self.linger_after_completion = False
self.update_frame()
# Save scene state at the point of embedding
self.save_state()
from IPython.terminal.embed import InteractiveShellEmbed
shell = InteractiveShellEmbed()
# Have the frame update after each command