I am using EIN in Org blocks, as explained on the GitHub page for EIN. So I use ein-python as the language for Org blocks (instead of python).

All seems to work well (for example displaying data from arrays, or displaying images), except when trying to print in the buffer: there is no output in the block results. However, it works with python as the block language.

The following minimal example shows the problem:

#+begin_src python :session localhost :results output

: Hello

#+NAME: ca60b6cf-8304-4c47-b458-559dea7d9ab0
#+begin_src ein-python :session localhost :results output

#+RESULTS: ca60b6cf-8304-4c47-b458-559dea7d9ab0

Above, Hello is not displayed the block results in the case of ein-python.

What causes this problem?

  • See this question where somebody else has similar problems.
    – NickD
    Commented May 7, 2020 at 14:52
  • @NickD I had seen this post; I am not using Anaconda, but working with a virtual environment, and my variable org-babel-python-command is set to python (which is python 3.6.9 in my environment). Changing it to for example python3 does not solve the problem.
    – Giuseppe
    Commented May 7, 2020 at 15:15
  • Then it may be a problem with Jupyter (or more likely with ob-ein). You might want to submit an issue at the EIN github site.
    – NickD
    Commented May 7, 2020 at 15:24
  • @NickD Could it be that I need to install ob-ein from the GitHub package? On the EIN GitHub page (see link in my question), they do not require to have this package: they only require to specify ein in the Org Babel languages... I installed EIN via MELPA and I am not sure whether I have everything needed...
    – Giuseppe
    Commented May 8, 2020 at 8:46
  • I don't know: I don't use EIN - hence my suggestion to submit an issue at the github site.
    – NickD
    Commented May 8, 2020 at 13:25

1 Answer 1



#+NAME: BCA82DE1-F7E2-42EF-A37F-84CB9C2AFD0C
#+begin_src ein-python :session http://localhost:8888/frank_ein_inline_image.ipynb :results output 
import sys

: 3.9.16 (main, Dec  7 2022, 10:15:43) 
: [Clang 14.0.0 (clang-1400.0.29.202)]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.