Skip to content

rmagic not displaying output in jupyter python notebook #2619

Open
@mikekaminsky

Description

@mikekaminsky

(Apologies if this is not the right the repo for this issue, or if I'm missing something obvious in the ecosystem.)

When I'm using rmagic to run models in R in the midst of my python notebook, the R output is getting sent to stdout (visible where my notebook server is running) but I can't get it to display the output in my notebook.

A notebook with these two cells should reproduce the issue.

# Setup
import rpy2
%load_ext rpy2.ipython

Run a model:

%%R
X <-c(1,4,5,7)
Y <- c(2,4,3,9)
summary(lm(Y~X))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions