TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PyThor- Python meets R

113 pointsby nipun_batraover 9 years ago

4 comments

spotover 9 years ago
Beaker Notebook provides a different model for working in Python and R. Instead of wrapping one language in the other, you get a notebook where cells can be either Python or R, fully native, and they can communicate with a shared object. The result is much simpler and more natural IMO: <a href="https:&#x2F;&#x2F;pub.beakernotebook.com&#x2F;#&#x2F;publications&#x2F;56648fcc-2e8e-41a6-aa4a-1249ee39023c?fullscreen=true" rel="nofollow">https:&#x2F;&#x2F;pub.beakernotebook.com&#x2F;#&#x2F;publications&#x2F;56648fcc-2e8e-...</a><p>Beaker has a feature &quot;autotranslation&quot; that converts the data between R, Python, JavaScript, Julia, Scala, Clojure, and many other languages, completely automatically. Learn more at <a href="http:&#x2F;&#x2F;BeakerNotebook.com" rel="nofollow">http:&#x2F;&#x2F;BeakerNotebook.com</a>
评论 #10859644 未加载
评论 #10861481 未加载
评论 #10858378 未加载
phillipamannover 9 years ago
I thought this was interesting but the resulting code was so ugly and awkward that I would refrain from using it. I would just prototype in R and convert to Python rather than using both in this sort of Frankenstein way.
评论 #10859655 未加载
评论 #10860174 未加载
ameliusover 9 years ago
I just can&#x27;t wrap my head around R. I&#x27;d love it if there was an automatic translator from R to Python. Even though the Python code would be more cluttered, it would probably be more easy to read :)
评论 #10857546 未加载
评论 #10857758 未加载
评论 #10858274 未加载
评论 #10857572 未加载
mikeskimover 9 years ago
it is probably easier to just wrap R functions as a subprocess in python. you would have to write some R code to do this which might involve writing to a flat file. i do this all the time in R wrapping up something like rgf and calling from within R. i have wrapped up python and called it from R using system. the same idea works for python as well. you could probably write some kind of general wrapper that would work for most of R&#x27;s ML type functions.