gregsexton / ob-ipython

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

README update needed. #129

Closed tlkahn closed 6 years ago

tlkahn commented 6 years ago
#+BEGIN_SRC ipython :session :ipyfile /tmp/image.png :exports both :results raw drawer
  plt.hist(np.random.randn(20000), bins=200)
#+END_SRC

should be

#+BEGIN_SRC ipython :session :file /tmp/image.png :exports both :results raw drawer
  plt.hist(np.random.randn(20000), bins=200)
#+END_SRC

to get inline image (at least for MacOS 10.12.6).

gregsexton commented 6 years ago

With the latest code?

Adrianzo commented 6 years ago

I can confirm this. Searching ":file" in .el yields nothing and ":ipyfile" is on both code lines for async and sync execution.