In general, this is not possible, Github (pages) only serves static content (for example: HTML, CSS, JS). If you want python to start (ex generates dynamic content), you need a web server that can run python (the content of GitHub Pages has been loaded and launched in your browser).
However, there are experimental ways to run subsets of python in a browser. Take a look at this question .
elyase
source share