tkf / emacs-ipython-notebook

IPython notebook client in Emacs
tkf.github.com/emacs-ipython-notebook/
GNU General Public License v3.0
548 stars 51 forks source link

How to eval pieces of code as blocks in a connected notebook? #180

Open kootenpv opened 8 years ago

kootenpv commented 8 years ago

I cannot figure it out with the documentation... I connected a script to the notebook and I just simply do not understand how I could evaluate code from .py script on the "left" to a notebook on the "right". The only option I found ein:connect-eval-region, does not show output anywhere! Please help, I otherwise love the inline plots!

millejoh commented 8 years ago

The way it is supposed to work is that you first connect the python buffer to the notebook via ein:connect-to-notebook-buffer, but it looks like something might be broken because then calling ein:connect-eval-region errors out. I must have broken this somewhere along the way, I'll see if I can figure out a fix.

kootenpv commented 8 years ago

@millejoh I now also asked this question on your REPO. Which is the one in MELPA?

It does work on your repo at this moment, but it does not show an [In] and [Out] node. I would personally really prefer that! And otherwise there could be a lot of unwanted side effects of course.