Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Inline::Python sucks

by Ultimatt (Acolyte)
on Nov 23, 2011 at 13:54 UTC ( [id://939663]=note: print w/replies, xml ) Need Help??


in reply to Inline::Python sucks

Sorry for resurrecting an old post, but this came up in one of my searches and I feel the module needs some praise...

Pretty sure Anon tried use Inline::Python; rather than bothering to understand what they were doing and instead do use Inline 'Python'; which works, with Inline delegating to whatever module you need AFAIK?

I'm really impressed with this module! I just used it to hook up some phylogenetic tree visualisation stuff in Python right into my Perl script... worked first time and even bridging to a Python object that is doing crazy QT and X-windows stuff.

#!/usr/bin/env perl use strict; use Inline 'Python' => 'from ete2a1 import Tree'; my $tree = new Tree(shift()); $tree->show();
That is incredibly cool, and works! Up pops the Python interactive window for messing about with a tree passed in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://939663]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found