[{"data":1,"prerenderedAt":95},["ShallowReactive",2],{"\u002Ftlt-2015.06.04-polyglot-bridges":3},{"id":4,"title":5,"body":6,"createdAt":82,"description":12,"draft":83,"extension":84,"image":85,"mastodonThread":85,"meta":86,"navigation":87,"path":88,"seo":89,"stem":90,"tags":91,"updatedAt":93,"__hash__":94},"content\u002FTLT - 2015.06.04 - Polyglot Bridges.md","TLT_-_2015.06.04_-_Polyglot_Bridges",{"type":7,"value":8,"toc":79},"minimark",[9,13,30,38,41,52,56,76],[10,11,12],"p",{},"Tags: Polyglot, Ruby, Perl6, Python",[10,14,15,16,23,24,29],{},"Here are the ",[17,18,22],"a",{"href":19,"rel":20},"http:\u002F\u002Fthelackthereof.org\u002Fdocs\u002Ftalks\u002F2015-06-14%20RubyNation%20Polyglot%20Bridges\u002F2015-06-14%20RubyNation%20Polyglot%20Bridges.pdf",[21],"nofollow","slides for Polyglot Bridges (pdf)"," lightning talk that I gave today at ",[17,25,28],{"href":26,"rel":27},"http:\u002F\u002Frubynation.org",[21],"RubyNation",".",[10,31,32,33],{},"slideshare:",[17,34,37],{"href":35,"rel":36},"http:\u002F\u002Fwww.slideshare.net\u002Fawwaiid\u002Fmad-science-a-dash-of-polyglot",[21],"www.slideshare.net\u002Fawwaiid\u002Fmad-science-a-dash-of-polyglot",[10,39,40],{},"The most important bit:",[42,43,48],"pre",{"className":44,"code":46,"language":47},[45],"language-text","# Shell\nsudo apt-get install matplotlib\ngem install rubypython\n# pending a small patch for debian\u002Fubuntu 64bit\n\n# Ruby; even works in the REPL!\nrequire 'rubypython'\nRubyPython.start\nplt = RubyPython.import('matplotlib.pyplot')\n\nplt.plot([1,2,4,6,28,50,234])\nplt.ylabel('some numbers');\nplt.show\n","text",[49,50,46],"code",{"__ignoreMap":51},"",[53,54],"img",{"src":55},"\u002Fimg\u002Frubypython_simple_chart.png",[10,57,58,59,64,65,70,71,29],{},"Or in other words: pull in this ",[17,60,63],{"href":61,"rel":62},"https:\u002F\u002Frubygems.org\u002Fgems\u002Frubypython",[21],"rubypython gem",", magically get all the python libs callable from Ruby. In this case, you get all the nice charts and graphs from pyplot. I originally played with this in ",[17,66,69],{"href":67,"rel":68},"https:\u002F\u002Fgithub.com\u002Fniner\u002FInline-Python\u002F",[21],"Perl6\u002FRakudo Inline::Python",", where it also ",[17,72,75],{"href":73,"rel":74},"https:\u002F\u002Fgist.github.com\u002Fawwaiid\u002Fef3f0abcfa96e34977b4",[21],"works fantastically",[10,77,78],{},"I love the idea of one community NOT completely re-writing a library in their language when it can just be used \"directly\" instead.",{"title":51,"searchDepth":80,"depth":80,"links":81},2,[],"2015-06-14T01:19-04:00",false,"md",null,{},true,"\u002Ftlt-2015.06.04-polyglot-bridges",{"title":5,"description":12},"TLT - 2015.06.04 - Polyglot Bridges",[92],"blog","2015-10-18T16:06-04:00","89yfAms_QN0ot05kdeiNGc5MALIdluIgQkxzOhItuPw",1778988314490]