A quick example of of different methods of how to get Python code working an a wordpress browser.
This first method lets the user view the code and run it. The user also has the facility to edit the code inline here:
This second method lets the user view the code and run it by clicking the run button or pressing CTRL+Enter
This third method lets the user see the snippit of code in a formatted way: