ivanov / vim-ipython

A two-way integration between Vim and IPython 0.11+
http://github.com/ivanov/vim-ipython
1.04k stars 163 forks source link

Unable to use due to: skipping a message on shell_channel #146

Open gzagatti opened 8 years ago

gzagatti commented 8 years ago

Hi,

I have been unable to use the plugin as everytime I start it through :IPython I get a warning message skipping a message on shell_channel. I have no clue what that means or where to start looking for answers as I don't quite understand the warning.

When I press <f5> I get a buffer where the command is printed, like an Ipython shell. However, the file is never executed.

When I head to an instance of the console and type a command, then come back to vim I can see the command printed on the Ipython vim shell.

Any help in helping to figure out what to do would be appreciated.

gzagatti commented 8 years ago

Hello,

I have been able get the plugin working on my machine. For some reason the default mappings were not working. Once I changed the mappings to something else I was able to get the plugin to respond.

Regarding the warning skipping a message on shell_channel which showed up upon connecting to IPython, I found out that the problem was due to the set_pid function from vim_ipython.py. That function is called from the km_from_string function. When the pid of the kernel is requested, for some reason unknown to me, the message on the shell is skipped. This does not seem to be a major issue, but I wonder what might be causing that.

Next the IPython command seems to fail when passed without an argument if there is another more recent file on the path of the find_connection_function. I would change the default of the km_from_string to the default of the find_connection_function that is kernel-*.json which seem to work most of the time.

varung commented 7 years ago

Can you explain in more detail how you fixed this? I'm hitting the same problem on Ubuntu 16

ambiflextrous commented 6 years ago

Same problem here don't know how to fix it.