Closed jchen80 closed 10 months ago
Also are there alternative ways of invoking anndata2ri within the Jupyter notebook without needing to globally activate it before loading the extension?
yes, see e.g. the first example from the README:
import anndata2ri
from rpy2.robjects import r
from rpy2.robjects.conversion import localconverter
with localconverter(anndata2ri.converter):
adata = r('as(some_data, "SingleCellExperiment")')
you can also use the -c
parameter for the R cell magic:
%% R -c anndata2ri.converter
do_stuff <- in_r
Finally, once I get around to it, I will implement a more convenient way to do this, see https://github.com/theislab/anndata2ri/issues/109
I closed the issue, since not using activate
is the future, so #109 covers this
Hi,
I'm trying to run the tutorial in Jupyter notebook. I ran into the situation where I can successfully install and load Seurat within jupyter after running
%load_ext rpy2.ipython
. However, if I first runanndata2ri.activate()
before loading the extension, then I get the following error when I attempt to load in the Seurat library.Any idea what might be the issue? Also are there alternative ways of invoking anndata2ri within the Jupyter notebook without needing to globally activate it before loading the extension?
Thanks!