You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A toolkit to generate Python 3 source code from Pharo.
3
9
4
10
## Install
@@ -11,7 +17,7 @@ Metacello new
11
17
load
12
18
```
13
19
14
-
Once Python3Generator is installed in your image, you need to configure [Python3Generator](https://github.com/juliendelplanque/Python3Generator) to use the Python interpreter you prefer. My advise is to use the FFI interpreter using: `P3GInterpreter useFFIInterpreter`. If your `python3` binary is located in a standard path in your file system, it should be fine, else you can manually set the path to `python3` binary using for example: `P3GInterpreter current pathToPython: '/usr/bin/python3'`.
20
+
If your `python3` binary is located in a standard path in your file system, it should be fine, else you can manually set the path to `python3` binary using for example: `P3GInterpreter current pathToPython: '/usr/bin/python3'`.
15
21
16
22
## Version management
17
23
@@ -28,10 +34,6 @@ Thus, it should be safe to depend on a fixed major version and moving minor vers
28
34
## Examples
29
35
### Getting os information in `/tmp/os.json` file
30
36
```
31
-
"Use and initialize the FFI interpreter."
32
-
P3GInterpreter useFFIInterpreter.
33
-
P3GInterpreter current pathToPython: '/usr/bin/python3'.
34
-
35
37
instr := P3GInstructionsList new.
36
38
37
39
json := 'json' asP3GIdentifier.
@@ -53,10 +55,6 @@ instr execute.
53
55
54
56
### Open a Qt window using PyQt4
55
57
```
56
-
"Use and initialize the FFI interpreter."
57
-
P3GInterpreter useFFIInterpreter.
58
-
P3GInterpreter current pathToPython: '/usr/bin/python3'.
59
-
60
58
"instructions will hold the instructions of the program we are going to build."
61
59
instructions := P3GInstructionsList new.
62
60
@@ -88,13 +86,9 @@ instructions execute.
88
86
```
89
87
90
88
### Plot an histogram with MatplotLib
91
-
Remark to really use MatplotLib from Pharo, I created the [MatplotLibBridge](https://github.com/juliendelplanque/MatplotLibBridge) project which provides an higher lever interface.
89
+
> Remark: To really use MatplotLib from Pharo, I created the [MatplotLibBridge](https://github.com/juliendelplanque/MatplotLibBridge) project which provides an higher lever interface.
92
90
93
91
```
94
-
"Use and initialize the FFI interpreter."
95
-
P3GInterpreter useFFIInterpreter.
96
-
P3GInterpreter current pathToPython: '/usr/bin/python3'.
0 commit comments