ManimCommunity/manim

LinearTransformationSceneExample does not work in Colab

Open

#2,018 建立於 2021年9月5日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)Python (17,820 star) (1,378 fork)batch import
documentationgood first issueissue:bug

描述

Description of bug / unexpected behavior

I'm trying to change the base configurations for LinearTransformationScene, but I get an error. This was not the case when I was using the previous version of Manim a few days ago

Expected behavior

I was hoping to change the configs without getting an error

How to reproduce the issue

Following is some example code taken from the docs. The first line was to get it to run in Google Colab (as described in the tutorials section)

 %%manim LinearTransformationSceneExample
 
 class LinearTransformationSceneExample(LinearTransformationScene):
            def __init__(self):
                LinearTransformationScene.__init__(
                    self,
                    show_coordinates=True,
                    leave_ghost_vectors=True,
                )

            def construct(self):
                matrix = [[1, 1], [0, 1]]
                self.apply_matrix(matrix)
                self.wait()

Logs

TypeError: __init__() got an unexpected keyword argument 'renderer'

System specifications

Google Colab's settings

Python version

python3

Output of ffmpeg -version:

ffmpeg version 3.4.8-0ubuntu0.2 

Additional comments

貢獻者指南