ManimCommunity/manim

LinearTransformationSceneExample does not work in Colab

Open

#2018 opened on Sep 5, 2021

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Python (17,820 stars) (1,378 forks)batch import
documentationgood first issueissue:bug

Description

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

Contributor guide