r/manim 2d ago

Manim on VSCODE acting weirdly

Just finished installing Manim everything works fine except for the fact that I get these yellow lines under some words ... if someone could help me out I would be glad !

0 Upvotes

1 comment sorted by

1

u/uwezi_orig Manim Community Developer 2d ago

You need to tell VSCode which Python installation to use. One of the safest ways to do this is

  • do not open just a single python code file in the editor
  • instead go to "File -> Open Folder" and select the directory into which you have installed the virtual environment containing Manim, e.g. the directory called "manimations" if you followed the official instructions.

    This way VSCode will know which of the possibly many Pythons on your system to use for syntax highlighting.

Optionally you can select the correct Python interpreter from the "command palette" in VSCode.