55from manim_voiceover import VoiceoverScene
66from dotenv import load_dotenv
77load_dotenv ()
8- import os
98
10- from scene_utils import setup_scene
9+ from scene_utils import create_logo_grid , setup_scene
1110
1211
1312class Scene0 (VoiceoverScene , Scene ):
1413 def construct (self ):
1514 setup_scene (self )
1615
17- # Load all logo images from the imgs/ directory
18- img_dir = "../imgs"
19- logo_filenames = [
20- "aristotle.png" , "anaconda.png" , "berkeley.png" ,
21- "cmu.png" , "cwi.png" , "du.png" ,
22- "graphegon.png" , "humboldt.png" , "intel.png" ,
23- "imbr.png" , "lucata.png" , "mit.png" ,
24- "njit.png" , "nvidia.png" , "pnnl.png" ,
25- "redis.png" , "romatre.png" , "tamu.png" ,
26- "ucdavis.png" , "ucsb.png" , "unibz.png" ,
27- "JuliaComputing.jpg" , "falkor.png" , "supabase3.png" ,
28- ]
29-
30- # Create ImageMobject for each logo and scale them uniformly
31- logos = [
32- ImageMobject (os .path .join (img_dir , filename )).scale (0.5 )
33- for filename in logo_filenames
34- ]
35-
36- # Arrange logos in a 4x6 grid using Group
37- logos_group = Group (* logos ).arrange_in_grid (rows = 4 , cols = 6 , buff = 0.5 )
16+ logos_group = create_logo_grid ()
3817
3918 # Title text
4019 title = Tex ("The Illustrated GraphBLAS" ).scale (1.5 ).to_edge (UP )
4120
4221 with self .voiceover (
43- """In this video, you will learn how to install and use the Python
44- GraphBLAS library, which will be used throughout the rest
45- of the video series for code examples. It's not necessary
46- to install Python or use the library for understanding the
47- basic concepts of the GraphBLAS, so you can skip this
48- video and move onto the next chapter if you want to get
49- straight to the concepts. """
22+ """This chapter covers installing and using the Python GraphBLAS
23+ library for code examples throughout the series."""
5024 ):
5125 self .play (Write (title ))
5226 for logo in logos_group :
@@ -61,9 +35,11 @@ def construct(self):
6135
6236 # Chapter summary slide
6337 with self .voiceover (
64- """This chapter covers installing the python-graphblas library,
65- creating matrices and vectors, basic operations, and provides
66- code examples that will be used throughout the rest of the series."""
38+ """We'll walk through installing the python-graphblas library,
39+ creating matrices and vectors, basic operations like assignment
40+ and extraction, and introduce code patterns used throughout the
41+ rest of the series. This chapter is optional if you want to skip
42+ straight to the concepts."""
6743 ):
6844 chapter_title = Text ("Chapter 1: Python GraphBLAS" , font_size = 40 ).to_edge (UP )
6945
0 commit comments