3b1b / 3b1b/manim

InteractiveScene not being recognised

未关闭
#2,219 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
93.8k
派生
7.7k
PR 合并指标
PR 指标待抓取

描述

Hi, I've just downloaded manim and can't get one last thing to work. The InteractiveScene argument within the class (as opposed to just the scene) is not working. It just is not being recognised by pylance. Also, when I have only 'manim_imports_ext' everything else from manim is not being recognised by pylance, where as when i use 'from manim import *', things seem to work, all except the InteractiveScene. So, for example, right now in the example provided below the InteractiveScene, Circle() and PINK are all not being recognised

How do I fix this issue?
Here is the example:

```
from manim_imports_ext import *

class InteractiveCircle(InteractiveScene):
def construct(self):
circle = Circle() # Create a circle
circle.set_fill(PINK, opacity=0.5)
self.add(circle)

self.interact() # Enable interactive mode
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。