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 May 7 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 May 7 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 May 7 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 May 8 at 8:46
  • I don't know: I don't use EIN - hence my suggestion to submit an issue at the github site. – NickD May 8 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.