rpy2
rpy2 copied to clipboard
Rpy2 in Jupyterlab notebook
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?
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.
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

I do not see anything print out. From something as simple as the structure or head of any data.
Hi Maria, it looks like something is wrong with your set-up or needs updating. It does work at my end .....
(This is on linux; rpy2-3.3.4, jupyter-notebook-6.0.3, R-4.0.1, python-3.8.3; no anaconda; )
Thank you brobr!