vimcmdline icon indicating copy to clipboard operation
vimcmdline copied to clipboard

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

Open vnijs opened this issue 5 years ago • 1 comments

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

vnijs avatar Apr 13 '19 20:04 vnijs

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.

jalvesaq avatar Apr 14 '19 00:04 jalvesaq