Skip to content

Commit 7c211d0

Browse files
Update README.md
1 parent 926bdc5 commit 7c211d0

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# Python Samples
2-
Code examples for using Python within Origin
1+
## Origin Python Samples
32

4-
To try the samples, use the following steps
3+
Code examples for using the originpro Python package to interact with Origin software.
54

6-
1. From Origin, select the menu Connectivity > Open .... This will open Code Builder with the py file
5+
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).
76

8-
2. Press F5 to run the sample. You do not need to save the file before running.
7+
### Running the Examples
98

10-
Note that several examples require Python packages to be installed first. Use the script command provided to install the package, then copy the sample code to the Python IDE in Code Builder to run.
9+
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).
10+
11+
Then, simply unzip the files and open the desired file from the File menu in **Code Builder**. Then, hit **F5** to run the example.
12+
13+
*Note that some examples require the installation of additional Python packages.*
14+
15+
### Documentation
16+
17+
For embedded Python interpreter, [please click here](https://www.originlab.com/doc/python/Run-Python-in-Origin).
18+
19+
For external Python interpreter, [please click here](https://www.originlab.com/doc/ExternalPython).

0 commit comments

Comments
 (0)