Use python in Jupyter R core

I am using IRKernel in Jupyter notebook, but I want to run some Python cells. I've seen examples for running R code when using Python core in Jupyter, i.e.

%load_ext rpy2.ipython
%R require(ggplot2)

      

Is there a way to do the opposite? Something like

%load_ext py.ipython
%Python import pandas as pd

      

+3
python jupyter-notebook jupyter-irkernel


source to share


No one has answered this question yet

Check out similar questions:

5504
Does Python have a ternary conditional operator?
5231
What are metaclasses in Python?
5116
How can I check if a file exists without exceptions?
4473
Calling an external command in Python
3790
How can I safely create a subdirectory?
3602
Does Python have a substring method "contains"?
2818
Finding the index of an element by specifying the list that contains it in Python
1085
Correct way to declare custom exceptions in modern Python?
1028
Pythonic way to create long multi-line string
542
Using IPython notebooks under version control



All Articles
Loading...
X
Show
Funny
Dev
Pics