Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Data Science by (18.4k points)

I started working on the docker page, I opened my browser and installed data science docker image from one of the websites.

So this is entire docker file looks like:

FROM jupyter/datascience-notebook:45b8529a6bfc

USER $NB_UID

I opened my Jupiter notebook with my R kernel it works pretty well. But when it try using %% R cell magic  with my ipython notebooks it's throwing me an error as shown below:

%%R

3+4

UsageError: Cell magic `%%R` not found.

I tried searching on the web, but I could not find anything related.

1 Answer

0 votes
by (36.8k points)

I had also faced this issue when I tried using the code below:

%load_ext rpy2.ipython

 and got the below error:

No module named 'simplegeneric'

To rectify this error, I installed the simplegeneric packaging by using pip command as shown below:

pip install simplegeneric

After this, I tried running the command and it works fine. I hope this will help you, give a try.

If you want to know more about the Data Science then do check out the following Data Science link which will help you in understanding Data Science from scratch

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...