jalvesaq / vimcmdline

Send code to command line interpreter
GNU General Public License v2.0
223 stars 38 forks source link

Question: Connect to R or Python kernel running in jypyter? #61

Open vnijs opened 5 years ago

vnijs commented 5 years ago

I just posted the follow feature request to vimpyter (https://github.com/szymonmaszke/vimpyter/issues/17#issuecomment-482875723) which I thought might also interest you. I'm primarily an R user and just found Nvim-R (and spacevim) and am very excited about both! However, I'm also using more python these days and having access to jupyter kernels (in docker containers) is super useful for reproducible research and a consistent computing environment. In case you are interested, below a link to install instructions to a docker container I use with my students.

https://github.com/radiant-rstats/docker/tree/master/install

=========================================================== Copied the issue posted to vimpyter below for your convenience:

You may be interested in "https://github.com/mwouts/jupytext" which makes it possible to "link", e.g., a python or R(markdown) script to a jypyter notebook. You can edit the notebook and the linked file will be auto-updated. You can also edit the linked file, e.g., in (space)vim, and the notebook will be updated as well. Very nice!

I also saw the follow issue posted on 'spacevim' (SpaceVim/SpaceVim#1854) but I don't think this has happened yet but it is listed as a "milestone".

One thing that would be fantastic in vimpyter (and spacevim) would be to send Python (or R) code to a running jupyter kernel. This is something that atom + hydrogen currently does a fantastic job at. See link below

https://nteract.gitbooks.io/hydrogen/docs/Usage/GettingStarted.html

You can even connect to jupyter kernels (e.g., R and Python) running in local or remote docker containers which is something I use all the time. Works really great ... from atom ... but I would love to have this work form (space)vim.

https://github.com/nteract/hydrogen/blob/master/docs/Usage/RemoteKernelConnection.md

jalvesaq commented 5 years ago

I'm sorry, but I only use R with relatively small datasets and usually analyse data alone. So, I don't need either remote access to a powerful computer or collaborative tools. I can't develop and maintain something that I don't use, but I can merge a pull request if someone does what you want.