vim-cellmode
vim-cellmode copied to clipboard
error on command execution
Hi,
first of all, great plugin! just what i was looking for! i'm getting a wierd error when I try to run a line, instead of running, vim adds this line to the buffer: ad -y /tmp/vMZ0ura/8.ipy
increasing the number *.ipy everytime i try it again.
could this be because I'm running on a remote machine (through ssh) and don't have write permission for /tmp/? if so, coult you add a variable that we can set for a different location for tmp files?
thanks!!
Hey, sorry for the delayed response. I am using tempname() to generate temporary files. You can control the dircetory in which it is creating file with the TMPDIR envvar. Can you try starting vim with something like
TMPDIR=$HOME/tmp vim
and see if it solves the problem ?
Hi,
thanks for helping!
I now get this in my tmux-ipytohn: `In [1]:
In [1]: %load -y /tmp/vt6Jm8b/6.ipy
In [2]: # %load -y /tmp/vt6Jm8b/6.ipy ...: print('aaa') ...: aaa
In [3]: %load -y /tmp/vt6Jm8b/7.ipy
In [4]: # %load -y /tmp/vt6Jm8b/7.ipy ...: print('aaa') ...: aaa
In [5]: %load -y /tmp/vt6Jm8b/8.ipy
In [6]: # %load -y /tmp/vt6Jm8b/8.ipy ...: print('aaa') ...:`
when I try to execute print('aaa')....
any suggestions?
What version of ipython are you using ? I'm not sure this still works with pre 4.0 versions.
IPython 5.3.0...
Sorry for the delayed response...
The output you posted looks fine. The %load lines are how ipython actually loads the files written by vim-cellmode to the temporary folder. And in [2] and [4] it seems to actually execute the print(aaa).