{"action":"created","issue":{"url":"https://api.github.com/repos/gregsexton/ob-ipython/issues/1","labels_url":"https://api.github.com/repos/gregsexton/ob-ipython/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gregsexton/ob-ipython/issues/1/comments","events_url":"https://api.github.com/repos/gregsexton/ob-ipython/issues/1/events","html_url":"https://github.com/gregsexton/ob-ipython/issues/1","id":86446861,"number":1,"title":"\"bad file descriptor, Python\" when trying to execute code block","user":{"login":"jaffee","id":926067,"avatar_url":"https://avatars.githubusercontent.com/u/926067?v=3","gravatar_id":"","url":"https://api.github.com/users/jaffee","html_url":"https://github.com/jaffee","followers_url":"https://api.github.com/users/jaffee/followers","following_url":"https://api.github.com/users/jaffee/following{/other_user}","gists_url":"https://api.github.com/users/jaffee/gists{/gist_id}","starred_url":"https://api.github.com/users/jaffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaffee/subscriptions","organizations_url":"https://api.github.com/users/jaffee/orgs","repos_url":"https://api.github.com/users/jaffee/repos","events_url":"https://api.github.com/users/jaffee/events{/privacy}","received_events_url":"https://api.github.com/users/jaffee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-09T04:45:44Z","updated_at":"2015-07-04T11:02:08Z","closed_at":"2015-06-10T20:13:33Z","body":"Installed manually (package doesn't seem to be on melpa yet?) - I'm on OSX Yosemite and emacs 24.5.1\r\n\r\nI found that I had to (require 'ob-python) as well or I would get an error that org-babel-variable-assignments:python was not defined.\r\n\r\ntest.org file:\r\n```\r\n* top\r\n#+BEGIN_SRC ipython :session mysession :exports both\r\n  def foo(x):\r\n      return x + 9\r\n\r\n  [foo(x) + 7 for x in range(7)]\r\n#+END_SRC\r\n```\r\n\r\nHitting C-c C-c inside the source blocks results in:\r\n\r\n`*Messages*` buffer:\r\n```\r\nexecuting Ipython code block...\r\nSent python-shell-completion-setup-code\r\nSent python-ffap-setup-code\r\nSent python-eldoc-setup-code\r\ncomint-send-string: Writing to process: bad file descriptor, Python\r\n```"},"comment":{"url":"https://api.github.com/repos/gregsexton/ob-ipython/issues/comments/118500489","html_url":"https://github.com/gregsexton/ob-ipython/issues/1#issuecomment-118500489","issue_url":"https://api.github.com/repos/gregsexton/ob-ipython/issues/1","id":118500489,"user":{"login":"gregsexton","id":150883,"avatar_url":"https://avatars.githubusercontent.com/u/150883?v=3","gravatar_id":"","url":"https://api.github.com/users/gregsexton","html_url":"https://github.com/gregsexton","followers_url":"https://api.github.com/users/gregsexton/followers","following_url":"https://api.github.com/users/gregsexton/following{/other_user}","gists_url":"https://api.github.com/users/gregsexton/gists{/gist_id}","starred_url":"https://api.github.com/users/gregsexton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregsexton/subscriptions","organizations_url":"https://api.github.com/users/gregsexton/orgs","repos_url":"https://api.github.com/users/gregsexton/repos","events_url":"https://api.github.com/users/gregsexton/events{/privacy}","received_events_url":"https://api.github.com/users/gregsexton/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T11:02:08Z","updated_at":"2015-07-04T11:02:08Z","body":"ob-ipython works with both python 2 and 3. I personally use it with 2.7 and 3.4. It's *IPython* that you need to upgrade. What version of IPython are you running?"}}