logo       

calling J from Python: msg#00262

lang.j.general

Subject: calling J from Python

I have been looking at Python a bit and there is amazing amount of tutorials
available.
My main interest was to be able to call J from Python.

After reading a bit I found a really easy way of calling J

import os
return_code = os.system ('c:\\j601\\jconsole')
exit +/i.6
return_code
15


After reading quite a bit of Python it is interesting how similar Python is
in many ways.

It would be interesting to add J examples to the Python material.

The docs I have looked at compare Python quite a bit with VB script,
Javascript and C

Many of the examples given would be interesting to demonstrate in J as well
or in a similar manner.

It is dead easy to let J do more advanced things from Python

return_code = os.system ('c:\\j601\\plot.bat')

C:\Python25>cd \j601

C:\j601>j -jijx system\examples\graphics\plot\plotdemo.ijs


--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: gosinn@xxxxxxxxx
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=)
`. )----' (")_(")


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise