Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined method only in List Comprehension in the Interactive CLI #2207

Open
fikriauliya opened this issue Oct 14, 2024 · 1 comment
Open

Comments

@fikriauliya
Copy link

fikriauliya commented Oct 14, 2024

Describe the error

The following codes do the same exact thing

        # Ok
        self.play(ShowCreation(rectangles[0]), ShowCreation(rectangles[2]))

        # Ok
        self.play(*[ShowCreation(rectangles[0]), ShowCreation(rectangles[2])])

        # Error: name 'ShowCreation' is not defined
        self.play(*[ShowCreation(rectangles[i]) for i in range(2)])

However, in the list comprehension one, the ShowCreation method becomes undefined

And somehow, it only occurs on the Interactive Mode. (manimgl)
Running the whole .py is ok (manimgl main.py DrawCircle)

Environment

OS System: MacOS Sonoma 14.3
manim version: 1.4.1
python version: 3.10.0

requires-python = "~=3.10.0"
dependencies = [
    "manimgl>=1.4.1",
    "setuptools>=75.1.0",
    "numpy~=1.24",
]
@3b1b
Copy link
Owner

3b1b commented Oct 14, 2024

There was a recent PR to address namespace issues in that interactive mode. Can you confirm whether the issue still comes up with the most recent commit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants