The %R line magic and %%R cell magic no longer work in the jupyter notebook

3,686 views
Skip to first unread message

Emmanuel Charpentier

unread,
Nov 13, 2015, 8:33:38 AM11/13/15
to sage-support
Dear list,

Last time I looked (about sage 6.9 or thereabout) the %R line magic and %%R cell magic were supstitute to the %r magic, useful in the ipython noteboook where %r dosn't work as intended.

%load_ext rmagic gives its usual warning that it has moved to rpy2, but neither %R nor %%R are listed in the possible tab-completions of %, and trying to use them lead to an error message ("%R line magic nof found" and "%%R cell magic not found", or something to that effect).

%r still launches an R interpreter you can't get out of.

Is that new ?

--
Emmanuel Charpentier

Emmanuel Charpentier

unread,
Nov 29, 2015, 3:34:26 AM11/29/15
to sage-support
Answering to myself :

It turns out that updating the rpy2 Python package fixes the problem.

This should be fixed by upgrading the distributed version. It is now Trac#19638.

HTH,

--
Emmanuel Charpentier

Emmanuel Charpentier

unread,
Nov 29, 2015, 5:17:42 AM11/29/15
to sage-support
A note of caution : after updating to 6.10.beta6, %load_ext rpy2.ipython failed. re-reinstalling rpy2 via pip fixed the problem.

What dost this mean ?

--
Emmanuel Charpentier

Volker Braun

unread,
Nov 29, 2015, 8:06:50 AM11/29/15
to sage-support
For the record, much of that pain is because we can't use pip for standard packages (because it requires openssl)

You probably created some mess with duplicate installation (flat + egg) or something like that.

Emmanuel Charpentier

unread,
Nov 30, 2015, 1:59:30 AM11/30/15
to sage-support


Le dimanche 29 novembre 2015 14:06:50 UTC+1, Volker Braun a écrit :
For the record, much of that pain is because we can't use pip for standard packages (because it requires openssl)

You probably created some mess with duplicate installation (flat + egg) or something like that.

Ouch ! I'll have to look further... and no do a trivial update. When I'll have time...

--
Emmanuel Charpentier

Emmanuel Charpentier

unread,
Nov 30, 2015, 5:50:00 PM11/30/15
to sage-support
This leads to a contrived situation : advice requested in sage-devel.

--
Emmanuel Charpentier

Le dimanche 29 novembre 2015 14:06:50 UTC+1, Volker Braun a écrit :
Reply all
Reply to author
Forward
0 new messages