-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Terminals: GitBash and Conda through Powershell and GitBash
Issue replicated on 2 different PCs both Windows 11 one Enterprise and one Education (Version 23H2)
IPython version: 8.21.0
I've downloaded the repository, npm installed, npm compiled everything and attached the debugger.
Simple Manim Scene:
from manimlib import *
class SubTensors(InteractiveScene):
def construct(self):
## Interactions
circle = Circle(radius = 2)
self.play(DrawBorderThenFill(circle))
Detects the preview cell.
Run the command:
manimgl sub_tensor.py SubTensors -se 5
And when I click on the Preview Manim Cell, it clears the console, writes checkpoint_paste() but doesn't run it at all.
With the debugger, I can see that with both the executeCommand
and terminal.sendText
, the command is not executed.
If then I manually click ENTER in terminal, the command is executed, however it's now too late, the clipboard is already reset to the previous state and throws an error because it tries to run something that is not python code.
Since this happens with different terminals, I believe it's something due to the IPython console. Because if we just click Preview Manim Cell
, without running the manimgl
command, the command checkpoint_paste()
is executed properly (even though, in this case, it's an error, since it's not recognized as a Powershell/Bash/Conda command).
What I have already tried:
- Adding
\r\n
or\n
at the end of thePREVIEW_COMMAND
string - Adding spaces or other chars at the end of the
PREVIEW_COMMAND
string terminal.sendText
actually has a second parameter that is used to execute the command, setting that totrue
- Executing always
sendText
regardless if the terminal supportsshellIntegration
Nothing worked. Any ideas as to why would this happen? I'm not familiar with the IPython console; it may have some weird interaction behaviour.