Re:PyThor- Python meets R
by spot on Thursday January 07, 2016 @01:28PM
(#10859715)
that's right, but Jupyter notebooks have just one language each, they don't facilitate polyglot programming.
[ Parent
| on HN ]
Re:PyThor- Python meets R
by captaindiego on Thursday January 07, 2016 @09:25PM
(#10862497)
Their are some "cell magics" for running different languages in individual blocks in a Jupyter notebook. I gave it a try in passing with javascript a while back and I remember there was a way to share variables through as well.
You can see the available magics here: https://ipython.org/ipython-doc/3/interactive/magics.html#ce...
Unfortunately it looks like there is none for R or Julia, but perhaps they are installed by those specific packages, or their is some other way I don't know of.
Re:PyThor- Python meets R
by IndianAstronaut on Friday January 08, 2016 @02:09AM
(#10863424)
Cell magics are exactly what I was looking for. Much easier to do some data cleanup stuff in Python and move stats heavy stuff to R.
RMagic for R and Python in Jupyter https://www.youtube.com/watch?v=StX_F_kq_C0
Re:PyThor- Python meets R
by IndianAstronaut on Saturday January 09, 2016 @02:40AM
(#10870458)
Good video. One thing I am looking to do is call Python from an R notebook, but that doesn't seem to be happening with the magic functions.