CoolFace
Apppublic

opensourcebrain/HodgkinHuxleyTutorial

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
live.py12 linesDownload Raw Back to Tutorial
1#!/usr/bin/env python2 3# run this from the Tutorial directoy (i.e. `python live.py`) to have a live reloading version of the docs.4# you may need to do `pip install livereload` first5 6from livereload import Server, shell7server = Server()8server.watch('index.rst', shell('make html', cwd='.'))9server.watch('_static/*.rst', shell('make html', cwd='.'))10server.serve(root='_build/html', port=1337)11 12