Reply to topic  [ 2 posts ] 
pyorick released 
Author Message
Yorick Master

Joined: Mon Nov 22, 2004 9:43 am
Posts: 354
Location: Livermore, CA, USA
Post pyorick released
A python module called pyorick is now available from PyPI ( The git repo is at for you to fork or clone if you want to do development work on it. The pyorick python module requires a version of yorick with the fd_read, fd_write, and fd_close functions, which were added to the github yorick distribution in late August 2014. You can check if your yorick is pyorick-ready by typing

at the yorick prompt. If if prints the document comment, pyorick will work with your version of yorick; if not, you'll need a more recent version.

You can try it out by installing pyorick from a shell prompt with simply:
pip install pyorick

See ... IPTION.rst for detailed instructions for what to do after that.

The basic idea is that you import the pyorick module into python, then create an instance of the Yorick class in order to start yorick as a subprocess. Yorick variables are now available as attributes of a python object for setting or retrieval, or for calling functions if the attribute name happens to be a yorick funciton name. Yorick arrays map to numpy arrays, and the data transfer between processes is through binary pipes. The performance is perfectly adequate for me, somewhere in the range of many hundred MB per second, far faster than disk IO (although I imagine you could break it by forcing the programs to swap). You can also switch python to a terminal mode and interact with yorick directly as you would from the command line in an ordinary yorick session. All the yorick graphics works as you'd expect both in this terminal mode, and in the python request yorick respond mode

This is pretty much the user interface you'd get with a compiled python module containing a yorick interpreter, so I'm inclined to call the job of integrating yorick into python complete, at least in the sense of good enough. If you can think of anything important you could do in an embedded yorick, you should first try to see if you can modify pyorick to do it -- I think you'll find you can. Of course, submit such mods back to me in the form of pull requests, so we can discuss putting them into the PyPI version.

One area I would welcome help is in integrating pyorick into ipython, so that %yorick and %%yorick commands work. If you are or someone you know is an ipython enthusiast who knows how to go about this, please get in touch. I envision an module as a sibling of in the package with that code.

Wed Nov 19, 2014 8:06 pm
Yorick Master

Joined: Tue Mar 07, 2006 10:31 pm
Posts: 125
Location: Meudon, France
Post Re: pyorick released
Pyorick 1.4 will be available in Debian unstable (official repositories) within a few days (need ack by FTP masters). I will produce a backport for Debian stable (Jessie) 10 days after the package is accepted.

It is already available for Ubuntu trusty, utopic and vivid in my PPA:

Regards, Thibaut.

Tue May 19, 2015 7:56 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.