Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-08 Thread Alexandre Bergel
AI Python libraries may be my first target….
I will let you know

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



> On Jan 8, 2018, at 4:25 AM, Julien  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 
> 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 > > 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.
>>> 
>> 
>> 
> 



Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-08 Thread Julien
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  a écrit :
> 
> AI Python libraries may be my first target….
> I will let you know
> 
> Alexandre
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu 
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
> 
> 
> 
>> On Jan 8, 2018, at 4:25 AM, Julien > > 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 
>> 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 >> > 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.
 
>>> 
>>> 
>> 
> 



Re: [Pharo-users] A playground for Markdown?

2018-01-08 Thread Tudor Girba

> On Dec 31, 2017, at 4:03 PM, Serge Stinckwich  
> wrote:
> 
> 
> 
> On Sun, Dec 31, 2017 at 4:00 PM, Sean P. DeNigris  
> wrote:
> Offray Vladimir Luna Cárdenas-2 wrote
> > a versatile Playground that supports several syntax
> > highlighting (and some supporting behavior)
> 
> That actually could be amazing because sometimes I'm forced to use other
> syntaxes (especially markups nowadays) and I'd probably be much happier
> editing Markdown in Pharo than in the GH web UI! This actually just reminded
> me of Lukas' Helvetia and Language Boxes. Offray, I have no idea if it's
> relevant or useful (the project was from 2009), but you may want to have a
> look. Here's one link: http://scg.unibe.ch/research/helvetia
> 
> 
>  
> ​We made a new version of Helvetia running on Pharo 5.0:
> https://github.com/UMMISCO/Helvetia

Nice!

Doru

> ​Not currently updated to Pharo 6.1 or 7.0
> 
> -- 
> Serge Stinckwich
> UMI UMMISCO 209 (IRD/UPMC/UY1)
> "Programs must be written for people to read, and only incidentally for 
> machines to execute."
> http://www.doesnotunderstand.org/

--
www.tudorgirba.com
www.feenk.com

"Be rather willing to give than demanding to get."