See this as a jupyter-book here
https://cpraveen.github.io/chebpy
These examples are based on the book
L. N. Trefethen, Spectral Methods in MATLAB, SIAM.
I have rewritten these codes in Python.
For nbviewer links to these files, see here
http://cpraveen.github.io/teaching/chebpy.html
Matlab versions of the code are available here
https://github.com/cpraveen/spectral_matlab
Install
conda install jupyter-book ghp-import
Build html and publish
git checkout [email protected]:cpraveen/chebpy
jb build chebpy
cd chebpy
ghp-import -n -p -f _build/html