gregsexton / ob-ipython

org-babel integration with Jupyter for evaluation of (Python by default) code blocks
739 stars 109 forks source link

emacs hangs when trying to execute python block #166

Closed lplatter closed 6 years ago

lplatter commented 6 years ago

Hi,

I would not be surprised if this is a Mac specific issue. I have used ob-ipython successfully before. It is a great package.

Now, when try to execute a python block in org-mode emacs hangs. Specifically, I am trying to execute.

#+BEGIN_SRC ipython :session mysession
  %matplotlib inline
  import matplotlib.pyplot as plt
  import numpy as np
  from scipy.optimize import *
#+END_SRC

I can kill the corresponding python process that calls client.py from the command line and emacs will get responsive again.

In the Messages buffer, I only get

ob-ipython--execute-sync: Wrong type argument: number-or-marker-p, "Terminated: 15"

lplatter commented 6 years ago

Not sure what the issue was and why it led to emacs hanging but after installing jupyter-console with pip it's working again.