This template repository provides an example of running fastf1
(not live timing) in a browser based JupyterLite environment. JupyterLite provides access to JupyterLab and Jupyter notebook environments, with in-browser code exeuction using a Pyodide (WASM Python) environment.
Although xeus-python
kernels are availble for JupyterLite, fastf1
currently only works in a pyodide
kernel.
In order to run fastf1
in a pyodide
envrionment, you need to manually install several dependencies. See the demo.ipynb
notebook for an example.
Guide to using this reposistory available as a Jupyter Book / ebook here.
Example JupyterLite/JupyterLab environment: view demo
Example JupyterLite/notebook environment: view demo
This template repository also includes a Github Action to create the JupyterLite environment and publish it to GitHub Pages. The action also publishes a Jupyter Book generated from specified files in the repository to the book/
path on the Pages site.
Related blog posts: