Monday, February 27, 2017

Calling R from inside a Jupyter notebook

I use mostly python + jupyter in my research--in this case astronomical data science--workflow. One challenge I have been facing recently is dealing with time series. Some of the routines I need to use were written in R. There are versions of them for python but they seem to be inferior. The question then is: is it possible to easily interface with R functions from inside a jupyter python notebook? The answer is--amazingly--yes!

To illustrate how easy this is, I create a jupyter notebook available on Gist. This notebook demonstrates how to:

  1. generate some simple mock data with python/numpy
  2. import that data on R
  3. perform a linear fit using R's methods and load the results back to python
  4. plot the R fit with python
This may sound complicated but it really isn't.



31 comments:

  1. Thanks for sharing the information about the Python and keep updating us.This information is really useful to me.

    ReplyDelete
  2. You made some good points there. I did a search on the topic and found most people will agree with your blog.
    Python Training in Chennai

    ReplyDelete
  3. The Blog is very informative. This is very Helpful. Thanks for sharing.
    Python Training in Gurgaon

    ReplyDelete

  4. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well...Best Python Training Institute In Hyderabad | Best Python Online Training Institute

    ReplyDelete

  5. Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision...Best Python Training Institute In Chennai

    ReplyDelete
  6. need to compose,its an helpful information time just passed out by reading your blog..thanks for sharing...Best python training institute | Best Python Online Training

    ReplyDelete
  7. u have have shared venerable information and please keep updating us python online Training

    ReplyDelete
  8. Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision.

    CEH Training In Hyderbad

    ReplyDelete
  9. Thank you for sharing such great information very useful to us.
    Python Training in Gurgaon

    ReplyDelete
  10. I just loved your article on the beginners guide to starting a blog.If somebody take this blog article seriously in their life, he/she can earn his living by doing blogging.thank you for thizs article. python online training ,

    ReplyDelete
  11. I just loved your article on the beginners guide to starting a blog.If somebody take this blog article seriously in their life, he/she can earn his living by doing blogging.thank you for thizs article. python online training , best python online training ,
    top python online training

    ReplyDelete
  12. This is a very good tip particularly to those fresh to the blogosphere. Short but very accurate information… Thank you for sharing this one. A must read post!
    Technology

    ReplyDelete
  13. Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision

    Best IAS Coaching in India

    ReplyDelete
  14. The mobile app development company is rapidly evolving. The web development company in India stays up to date with the latest mobile app trends to bring success on the table for the business. Some of the direct factors that are affecting the mobile trend technologies are technological advancement, consumer demands and many more. To serve clients with the best result, it becomes important to stay updated with the trends. here are above more info of the mention link Top 10 Mobile App Development Trends of 2021

    ReplyDelete
  15. Thank you for posting this blog really appreciate the efforts taken by you for the blog, if you want you can check out
    data science course in bangalore
    data science course

    ReplyDelete

  16. Grab the Oracle Training in Chennai from Infycle Technologies the best software training and placement center in Chennai which is providing technical software courses such as Data Science, Artificial Intelligence, Cyber Security, Big Data, Java, Hadoop, Selenium, Android, and iOS Development, DevOps, etc with 100% hands-on practical training.

    ReplyDelete
  17. Pretty Post! Thank you so much for sharing this good content, it was so nice to read and useful to improve my knowledge as an updated one, keep blogging.

    Python Certification Training in Electronic City

    ReplyDelete
  18. Thankful to you for other brilliant case. in which else should everyone gather such an information in such an optimal assistance of making?.
    Pandora One APK

    ReplyDelete
  19. Short And Flirty Good Morning Messages For Girlfriend · Mornings with you lift me up, making me feel like I can fly high all day long. · Waking with you is at the .Good Morning Message For Her

    ReplyDelete
  20. This comment has been removed by the author.

    ReplyDelete
  21. I wholeheartedly congratulate the writer of this post for explaining the difficult concepts of data science in a simple and easy-to-understand manner. My only regret is that I didn’t read this post earlier. I have made many career decisions in my life after reading this, and have no regrets whatsoever to date.best data science institute in nashik with placement

    ReplyDelete
  22. This article offers a well-structured approach to data science projects, outlining the necessary steps and considerations for success. data science certification in Chennai

    ReplyDelete
  23. Wonderful information, thanks a lot for sharing kind of information. Your website gives the best and the most interesting information. Thanks!!

    ReplyDelete
  24. This comment has been removed by the author.

    ReplyDelete
  25. This comment has been removed by the author.

    ReplyDelete