3b1b / manim

Animation engine for explanatory math videos
MIT License
60.15k stars 5.68k forks source link

Issue: Cannot enter '(' in IPython terminal #2140

Open KvantXiu opened 2 weeks ago

KvantXiu commented 2 weeks ago

Describe the error

I added "self.embed()" to enable the interaction. Then the IPython terminal shown. There was an "Unhandled exception in event loop" error when enter "Shift + (".

Code and Error

Code: Shift + (

Error: UserWarning: Failed to get module start warnings.warn("Failed to get module %s" % \

Unhandled exception in event loop: File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\input\win32.py", line 613, in ready callback() File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\application\application.py", line 698, in read_from_input self.key_processor.process_keys() File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\key_binding\key_processor.py", line 272, in process_keys self._process_coroutine.send(key_press) File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\key_binding\key_processor.py", line 170, in _process matches = self._get_matches(buffer) File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\key_binding\key_processor.py", line 128, in _get_matches return [b for b in self._bindings.get_bindings_for_keys(keys) if b.filter()] File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\key_binding\key_processor.py", line 128, in return [b for b in self._bindings.get_bindings_for_keys(keys) if b.filter()] File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\filters\base.py", line 134, in call return all(f() for f in self.filters) File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\filters\base.py", line 134, in return all(f() for f in self.filters) File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\prompt_toolkit\filters\base.py", line 248, in call return self.func() File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\terminal\shortcuts\filters.py", line 75, in auto_match return shell.auto_match

Exception 'NoneType' object has no attribute 'auto_match' Press ENTER to continue...

Environment

Windows10 x64: manim version: master image

python version: Python 3.9.13

KvantXiu commented 2 weeks ago

Sorry the version I used: image