Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9206445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:10:38+00:00 2026-06-18T00:10:38+00:00

I am trying to recreate the demo examples on the IPython Notebook rmagic page.

  • 0

I am trying to recreate the demo examples on the IPython Notebook rmagic page. I am getting partial success with a specific error that comes up every time I try to use %Rpush or try to exchange data between R and numpy via the Rpush and Rpull mechanisms (which push/pull data between R and the Py namespaces )

%%R cell magic works reasonably well – I am able to define R vecs X and Y and do a print (lm(X~Y)) which successfully prints output in an IPython Notebook. This also works identically on the qtconsole, and the terminal.

Now if I do a plot(X,Y) inside the cell – I successfully get a plot.
If I start a new Notebook line and try plot(X,Y) I get the following error

 [....]
 TypeError: coercing to Unicode: need string or buffer, dict found

full stack trace at http://pastebin.com/Pb56Tmgc

a) Why is this successful inside a cell but not working in a line?
b) Any suggestions?

(Env: Python 2.7 (Anaconda 2.7.3 CE) R 2.15 rpy2 2.3 MacOSX 10.7.5 on a 2010 MBP 15″

http://www.soundfrost.org/ >youtube to mp3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:10:39+00:00Added an answer on June 18, 2026 at 12:10 am

    This is a bug – the R magic was getting the local namespace as the argument where it was expecting the cell.

    Digging into IPython.core.interactiveshell with git blame, it looks like it was fixed as part of pull request #2130 a few months ago.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to recreate the FragmentPagerSupport example but I keep getting an error
I'm trying to recreate the feature of Google Maps that changes the map type
Im trying to recreate this page http://psdtowp.com/order-now but for another purpose, Im very new
I'm trying to recreate a SyndicationFeed object (System.ServiceModel.Syndication) from XML data that has been
I'm trying to recreate the effect seen on this page: http://flupie.net/blog/2010/12/typewriter-effect-with-textanim-as3/ (example #2) But
I'm trying to recreate a solution that had multiple projects in it (only the
I am trying to recreate the a section of a UITableView that looks like
I am trying to recreate that Google-style toolbar on G-mail and a few other
Im trying to recreate gmail's file upload functionality - that is instead of using
i am trying to recreate the login form shown on tinypic's main page. in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.