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

ipython console --profile julia #74

Open ubuntu0 opened 11 years ago

ubuntu0 commented 11 years ago

Would ivanov/vim-ipython support "ipython console --profile julia"? That is JuliaLang/IJulia.jl based on ipython. If that is OK, vim-ipython would be an awesome feature for users of julia with IDE vim.

ivanov commented 11 years ago

there are a few python-isms inside vim-ipython (getting a handle on the PID for sending keyboard interrupt, for example, assumes that the kernel is a Python kernel), but most of the protocol that vim-ipython uses is agnostic to what the kernel is, so it should mostly work for doing completion and sending input and getting output out of it.

I'll work on this today to make it cleaner and play with IJulia a bit more

ivanov commented 11 years ago

ok, just as an update: in vim-ipython, you can hook up to an IJulia instance by specifying the full path to the kernel .json file. So in vim, you type

:IPython /home/pi/.ipython/profile_julia/security/kernel-c40c8ce4-e152-4347-800f-cf79b35b64b9.json

You'll see an error that's related to the current assumption that the kernel is running python code, but sending new code to IJulia will work the same as it does sending it to IPython