Why does IPhython quit on Ctrl+C
(MacOS)?
#2236
Unanswered
VladimirFokow
asked this question in
Q&A
Replies: 1 comment
-
To check that this is actually a Manim issue and not one from an IPython shell, could you @VladimirFokow and @bhoov check on MacOS if the following works for you? Use this Python code that is not related to Manim at all: from IPython.terminal.embed import InteractiveShellEmbed
class MyMainClass:
def main(self):
shell = InteractiveShellEmbed()
shell()
if __name__ == "__main__":
main_class = MyMainClass()
main_class.main() Execute it, then in the spawned IPython shell, run |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
On MacOS:
after we start
manimgl
,and run some long-running command in the IPython terminal -
if we want to cancel it (while it's executing) - we press
Ctrl+C
but then the whole IPython terminal quits.
For example:
Is it possible to just cancel the command
(and NOT quit the manimgl's IPython terminal)?
On Linux it works (the IPython terminal doesn't quit on
Ctrl+C
).Why is it different on MacOS?
Note:
Ctrl+C
sendsKeyboardInterrupt
which cancels execution withOUT quitting the IPython terminal.(manimgl version used: 1.7.1 - currently latest)
Thank you for any suggestions!
Beta Was this translation helpful? Give feedback.
All reactions