mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Save state before each embed
This commit is contained in:
parent
2d115a2c90
commit
f22a341e84
1 changed files with 3 additions and 0 deletions
|
@ -119,6 +119,9 @@ class Scene(object):
|
||||||
self.linger_after_completion = False
|
self.linger_after_completion = False
|
||||||
self.update_frame()
|
self.update_frame()
|
||||||
|
|
||||||
|
# Save scene state at the point of embedding
|
||||||
|
self.save_state()
|
||||||
|
|
||||||
from IPython.terminal.embed import InteractiveShellEmbed
|
from IPython.terminal.embed import InteractiveShellEmbed
|
||||||
shell = InteractiveShellEmbed()
|
shell = InteractiveShellEmbed()
|
||||||
# Have the frame update after each command
|
# Have the frame update after each command
|
||||||
|
|
Loading…
Add table
Reference in a new issue