@@ -16,7 +16,8 @@ def construct(self):
1616 title = Tex ("Installing Python-GraphBLAS" ).scale (1.5 ).to_edge (UP )
1717
1818 with self .voiceover (
19- """Installing Python GraphBLAS is straightforward using pip.
19+ """Installing Python GraphBLAS is straightforward using pip,
20+ or conda for those using Anaconda or Miniforge environments.
2021 The package automatically includes SuiteSparse GraphBLAS,
2122 which is a high-performance implementation of the GraphBLAS
2223 specification developed by Tim Davis at Texas A and M
@@ -28,11 +29,26 @@ def construct(self):
2829 pip_code = Code (
2930 code_string = "pip install python-graphblas" ,
3031 language = "bash" ,
31- background = "window"
32+ background = "window" ,
33+ formatter_style = "dracula" ,
3234 ).scale (1.2 )
3335 self .play (FadeIn (pip_code ))
36+ self .wait (1 )
37+
38+ # Conda install option
39+ conda_code = Code (
40+ code_string = "conda install -c conda-forge python-graphblas" ,
41+ language = "bash" ,
42+ background = "window" ,
43+ formatter_style = "dracula" ,
44+ ).scale (1.2 )
45+ conda_code .next_to (pip_code , DOWN , buff = 0.5 )
46+ self .play (FadeIn (conda_code ))
3447 self .wait (2 )
3548
49+ # Fade out install commands before showing alternatives
50+ self .play (FadeOut (pip_code ), FadeOut (conda_code ))
51+
3652 with self .voiceover (
3753 """If Python isn't your preferred language, GraphBLAS
3854 bindings are also available for other environments. Julia
@@ -43,22 +59,21 @@ def construct(self):
4359 # Show alternatives
4460 alternatives = VGroup (
4561 Tex ("Julia: " ).scale (0.8 ),
46- Code (code_string = "using GraphBLAS" , language = "julia" , background = "window" ).scale (0.7 ),
62+ Code (code_string = "using GraphBLAS" , language = "julia" , background = "window" , formatter_style = "dracula" ).scale (0.7 ),
4763 ).arrange (RIGHT , buff = 0.3 )
4864
4965 postgres_alt = VGroup (
5066 Tex ("PostgreSQL: " ).scale (0.8 ),
51- Code (code_string = "CREATE EXTENSION onesparse;" , language = "sql" , background = "window" ).scale (0.7 ),
67+ Code (code_string = "CREATE EXTENSION onesparse;" , language = "sql" , background = "window" , formatter_style = "dracula" ).scale (0.7 ),
5268 ).arrange (RIGHT , buff = 0.3 )
5369
5470 alt_group = VGroup (alternatives , postgres_alt ).arrange (DOWN , buff = 0.5 )
55- alt_group .next_to (pip_code , DOWN , buff = 0.8 )
5671
5772 self .play (FadeIn (alternatives ))
5873 self .wait (1 )
5974 self .play (FadeIn (postgres_alt ))
6075 self .wait (2 )
6176
6277 # Cleanup
63- self .play (FadeOut (title ), FadeOut (pip_code ), FadeOut ( alt_group ))
78+ self .play (FadeOut (title ), FadeOut (alt_group ))
6479 self .wait (0.5 )
0 commit comments