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

How to do When It returns "Scene Name or Number" #2129

Open
ILYJNY opened this issue May 1, 2024 · 1 comment
Open

How to do When It returns "Scene Name or Number" #2129

ILYJNY opened this issue May 1, 2024 · 1 comment

Comments

@ILYJNY
Copy link

ILYJNY commented May 1, 2024

Describe the error

What should I do? I dont know how.

Code and Error

Code:
from manim import *

class CorrectLaTeXSubstringColoring(Scene):
def construct(self):
equation = MathTex(
r"e^x = x^0 + x^1 + \frac{1}{2} x^2 + \frac{1}{6} x^3 + \cdots + \frac{1}{n!} x^n + \cdots",
substrings_to_isolate="x"
)
equation.set_color_by_tex("x", YELLOW)
self.add(equation)

Error:
That module has multiple scenes, which ones would you like to render?
Scene Name or Number:
(process:33276): GLib-GIO-WARNING **: 23:03:52.550: Unexpectedly, UWP app Microsoft.OutlookForWindows_1.2024.424.300_x64__8wekyb3d8bbwe' (AUMId Microsoft.OutlookForWindows_8wekyb3d8bbwe!Microsoft.OutlookforWindows') supports 4 extensions but has no verbs

Environment

OS System: Windows 10
manim version: Latest
python version: 3.12

@TSxSAHIL
Copy link

Hi @ILYJNY ,
I get what you are facing

You just need to write this code which I am giving below and use it in python notebook and run the cell
`from manim import *

class CorrectLaTeXSubstringColoring(Scene):
def construct(self):
equation = MathTex(
r"e^x = x^0 + x^1 + \frac{1}{2} x^2 + \frac{1}{6} x^3 + \cdots + \frac{1}{n!} x^n + \cdots",
substrings_to_isolate="x"
)
equation.set_color_by_tex("x", YELLOW)
self.add(equation)

x = CorrectLaTeXSubstringColoring()
x.render(preview=True)`

and you will get the following output
CorrectLaTeXSubstringColoring_ManimCE_v0 18 1

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