Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Inline::Python sucks

by Ultimatt (Acolyte)
on Nov 23, 2011 at 13:54 UTC ( #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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://939663]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2018-07-16 22:46 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (352 votes). Check out past polls.