Python Scripting Overview¶
Learning Python¶
This page assumes that you are familiar with Python programming, syntax, and usage. If you’re new to Python, consider the book Think Python, available for free on the web or for a small charge on Amazon. The Hitchhikers Guide to Python also provides some practical information and tutorials on getting started.
Getting Started¶
If you’re new to Nion Swift Python scripts, start here.
Python Console - Run Python from a command line console
Scripting Guide - A guide with common scripting examples
Where to Go Next¶
Follow the Scripting Guide if you haven’t already done so.
Review the Scripting Concepts for some low level details.
Read about Extended Data Guide.
Explore the Hardware Guide and Nion Swift Instrumentation documentation.
See the list of classes, methods, properties API Quick Summary.
Write interactive scripts Python Interactive Scripting Guide.
Write your own plug-in using Customization Using Python Packages and Modules.
Read about the NionUI and the Declarative UI.
Browse the API Reference.
Develop with User Interface.
Getting Help¶
You can contact us using the email address swift@nion.com. Sending email to that address will go straight to the developers and we will respond via email. We can also provide contact information for instant message sessions.
More Scripting Resources¶
The Nion Swift API gives access to the user interface and data. It is intended to be stable, meaning that applications written using the API will remain valid and function the same in the future, independent of changes to Nion Swift itself.
There are many ways to access the API and extend Nion Swift using Python:
Scripting Concepts - Useful scripting concepts
Python Console - Run Python from a command line console
Scripting Guide - A guide with common scripting examples
Python Interactive Scripting Guide - Run files that interact with the user
Computed Data Items - Short Python scripts to update data when sources change
External Scripting - External access via PyCharm, iPython/Jupyter, or command line
Customization Using Python Packages and Modules - Customized extensions using Python packages and modules
Open Source Development - Main source code for Nion Swift
API Architecture - A minimal API overview
API Reference - API Reference docuemntation