rpy2 icon indicating copy to clipboard operation
rpy2 copied to clipboard

Rpy2 in Jupyterlab notebook

Open MariaBP18 opened this issue 4 years ago • 5 comments

Hello everyone, I'm trying to use Rpy2 to run both python and R code in jupyterlab notebook but the R code doesn't print in the notebook. Has anyone else had this problem? Is there any solution?

MariaBP18 avatar Jun 08 '20 17:06 MariaBP18

I am using rpy2 in JupyterLab notebooks all the time (and it works well for me). I would be happy to help you if you could just provide a bit more information, for example, what code you are trying to run (possibly with a screenshot), what would you expect (and do not see) to be printed out and the version of JupyterLab, rpy2, R and Python that you use.

krassowski avatar Jun 08 '20 17:06 krassowski

Dear Krassowski,

Thank you very much for offering your help. I became gravely ill with coronavirus and for this reason could not respond until now. I am using: -Anaconda3 to run Jupyterlab -Python version 3.7.7 -Conda version 4.8.2 -R version 3.6.1 -Rpy2 version 2.9.4 -jupyter_client version 6.1.3
-jupyter_core version 4.6.3
-jupyterlab version 1.2.6
-jupyterlab_server version 1.1.4

2020-06-10 (5)

MariaBP18 avatar Jun 16 '20 23:06 MariaBP18

I do not see anything print out. From something as simple as the structure or head of any data.

MariaBP18 avatar Jun 16 '20 23:06 MariaBP18

Hi Maria, it looks like something is wrong with your set-up or needs updating. It does work at my end ..... Rpandas

(This is on linux; rpy2-3.3.4, jupyter-notebook-6.0.3, R-4.0.1, python-3.8.3; no anaconda; )

brobr avatar Jun 25 '20 20:06 brobr

Thank you brobr!

MariaBP18 avatar Jun 26 '20 05:06 MariaBP18