Code examples for using the originpro Python package to interact with Origin software.
['curve-fitting', 'data', 'data-analysis', 'data-visualization', 'graphing', 'graphs', 'origin', 'originlab', 'originpro', 'peak-detection', 'plot-graph', 'plotting', 'python']
Code examples for using the originpro Python package to interact with Origin software.
 Origin Python Samples
Code examples for using the **originpro** Python package to interact with Origin software.
These examples will work with either the built-in Python interpreter in Origin, or via an external Python interpreter. All of the examples will work *as is* with the embedded interpreter. When using them with an external interpreter, some simple modification is required as illustrated in the [External Python Code Samples documentation](https://www.originlab.com/doc/ExternalPython/External-Python-Code-Samples). 
### Running the Examples
The easiest way to run these examples is to [**download this repo as a zip file**](https://github.com/originlab/Python-Samples/archive/refs/heads/main.zip).
Then, simply unzip the files and open the desired file from the File menu in **Code Builder**. Then, hit **F5** to run the example.
*Note that some examples require the installation of additional Python packages.*
### Documentation
For embedded Python interpreter, [please click here](https://www.originlab.com/doc/python/Run-Python-in-Origin).
For external Python interpreter, [please click here](https://www.originlab.com/doc/ExternalPython).
For the **originpro** package documentation, [please click here](https://www.originlab.com/python/doc/originpro/annotated.html).