
#LINE NUMBERS THONNY FULL#
you will now see the full code completion:

In the example above I could remove the hard-coded pathway and use arcpy.GetParamerterAsText() to pass the workspace value into the script. This is easier said than done, especially when writing scripts which involve long workspace pathways or if you like adding comments at the end of a line of code. This is used as a guide to suggest the maximum length for a line of code. If you use PyScripter then you may have noticed that on the right hand side of your script is a vertical line. Press the OK button to add line numbers to the left hand side of your script.On the Display tab locate the Gutter section and tick the check box next to Show line number.From the Tools menu choose Options > Editor Options.To add line numbers to your module in PyScripter you should: I think you’ll agree it is easier searching for the line number when it is displayed than searching for a particular line of code. Amongst other things it lets you know which module your error occurred in, the type of error and the actual line of code which generated the error. When a run-time error is generated a Traceback error is created.

Line numbers should be made visible within your Python script if for no other reason than to aid the debugging process. Links to the source files and the installer are provided at the end of this article.

It is very easy to do and will take you no more than two minutes to complete.
#LINE NUMBERS THONNY DOWNLOAD#
If you want to use PyScripter then you can access the source files from this location on GitHub, but if you do not have the time or the energy to compile the files then you can download the PyScripter installer from here. This blog will lead you through these additional steps. There are a couple of things which I get the class to do to configure PyScripter as these additional steps enhance the script writing experience within the course.

This is the IDE which attendees to the “ Introduction to Geoprocessing Scripts using Python” course use. PyScripter is a great Interactive Development Environment (IDE) for creating Python scripts as it provides an excellent environment for writing and debugging your code.
