Getting started =============== This chapter assumes that both Zgoubi and Zgoubidoo have been successfully installed. Furthermore, we recommend to follow this brief getting started guide using an interactive session, for example through `iPython` or `Jupyter`, as detailed in the installation guide. A simple FODO cell ------------------ Creating the elements ^^^^^^^^^^^^^^^^^^^^^ .. literalinclude:: ../examples/fodo.py :start-after: # Typical imports :end-before: # Element definitions :lineno-match: Generating the Zgoubi input ^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. literalinclude:: ../examples/fodo.py :start-after: # Element definitions :end-before: # Input creation :lineno-match: Running Zgoubi with Zgoubidoo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Complete code ^^^^^^^^^^^^^ .. literalinclude:: ../examples/fodo.py :linenos: