Many of the examples can be viewed (and run) as Jupyter notebooks in the examples directory of the LightFM repository.