Beware that no mechanism to get back values from Python is defined for now (except if you just want the String representation of those objects, then you can get that if you use atlas). Iâd like to have that but it is not easy. I would like a way to describe how to map Pythonâs objects to Pharoâs objects from Pharo and to have the code to do that in Python side generated automatically but some thinking is needed⦠Julien --- Julien Delplanque Doctorant à lâUniversité de Lille 1 http://juliendelplanque.be/phd.html Equipe Rmod, Inria Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq Numéro de téléphone: +333 59 35 86 40
Le 8 janv. 2018 à 16:44, Alexandre Bergel <alexandre.bergel@me.com> a écrit :
AI Python libraries may be my first targetâ¦. I will let you know
Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu <http://www.bergel.eu/> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Jan 8, 2018, at 4:25 AM, Julien <julien.delplanque@inria.fr <mailto:julien.delplanque@inria.fr>> wrote:
Happy you find this interesting.
If you have suggestions, just let me know by creating an issue on the repository.
If you create bridges to some Python 3 libraries, tell me as well! :-)
Julien
--- Julien Delplanque Doctorant à lâUniversité de Lille 1 http://juliendelplanque.be/phd.html <http://juliendelplanque.be/phd.html> Equipe Rmod, Inria Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq Numéro de téléphone: +333 59 35 86 40
Le 8 janv. 2018 à 01:12, Alexandre Bergel <alexandre.bergel@me.com <mailto:alexandre.bergel@me.com>> a écrit :
I have just tried Python3Generator. Impressive work! It is a wonderful contribution!
Cheers, Alexandre
So, Python3Generator [1] is made for generating programatically Python 3 code from Pharo. Basically, it allows you to easily build a Python 3 AST, to serialize it in Python 3 source code and eventually to execute it. For now you can transfer data from Pharo to Python (e.g. providing arguments to functions that are Pharoâs objects) but you can not retrieve data stored in Python variable from Pharo (but it should be possible, just I donât need to do that for my bridge to matplotlib). Some examples are provided on the githubâs README.