I made a little extension to my Python-based LaTeX math renderer so it can be used to draw equations and Sympy expressions directly in the terminal as sixel graphics. Install with `pip install sixelmath` and give it a try! (in a sixel-supported terminal, of course).
Source: https://github.com/cdelker/sixelmath
#sixel #python #sympy #TeXLaTeX #terminal #equations #ziamath #konsole







![End of a long Jupyter notebook cell in VSCodium with Rust code in it. Running it took 6.3s. The uncommented code that is visible is computing something in parallel using rayon:
x.par_iter_mut().enumerate().for_each(|(n, xn)| {
let n = n as i32;
for k in n-N+1..=n {
*xn += a(k, lam, t1, t4, sr)
* (-lam/(sr as f64)*((n-k) as f64)).exp()
* (omega[k.max(0) as usize]/(sr as f64)
* ((n-k) as f64)
+ phi[k.max(0) as usize]).cos();
}
});](https://files.mastodon.social/cache/media_attachments/files/113/714/005/444/099/240/small/08bbbde4fcb5ad50.png)