Skip to content

error on command execution #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jonathaw opened this issue Apr 25, 2017 · 5 comments
Open

error on command execution #19

jonathaw opened this issue Apr 25, 2017 · 5 comments

Comments

@jonathaw
Copy link

jonathaw commented Apr 25, 2017

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!!

@julienr
Copy link
Owner

julienr commented May 6, 2017

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 ?

@jonathaw
Copy link
Author

jonathaw commented May 8, 2017

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?

@julienr
Copy link
Owner

julienr commented May 8, 2017

What version of ipython are you using ? I'm not sure this still works with pre 4.0 versions.

@jonathaw
Copy link
Author

IPython 5.3.0...

@julienr
Copy link
Owner

julienr commented Jun 7, 2017

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants