To run the Python demos, follow the below procedure:
Download the source file, e.g., demo_poisson.py, for the demo that you want to run.
Use the Python interpreter to run this file:
$ python demo.py
Note
You must have a working installation of FEniCS in order to run the demos.