Using pNbody with scripts **************************** In addition to using **pNbody** in the python interpreter, it is very useful to use **pNbody** in python scripts. Usually a python script begin by the line #!/usr/bin/env python and must be executable:: chmod a+x file.py The following example (slice.py), we show how to write a script that opens a gadget file, select gas particles and cut a thin slice .. math:: -1000