add tips for embed mode

This commit is contained in:
TonyCrane 2021-10-06 17:34:46 +08:00
parent f626a1a1e2
commit fbccb1ebf3

View file

@ -130,6 +130,8 @@ and the mouse to interact with the scene. Just press `q` if you want to quit.")
local_ns["touch"] = self.interact
for term in ("play", "wait", "add", "remove", "clear", "save_state", "restore"):
local_ns[term] = getattr(self, term)
print("Tips: Now the embed iPython terminal is open. But you can't interact with \
the window directly. To do so, you need to type `touch()` or `self.interact()`")
shell(local_ns=local_ns, stack_depth=2)
# End scene when exiting an embed.
raise EndSceneEarlyException()