jupyter-kernel.nvim icon indicating copy to clipboard operation
jupyter-kernel.nvim copied to clipboard

Features & Enhancement

Open lkhphuc opened this issue 1 year ago • 5 comments

  • [ ] Connect to remote kernels
  • [ ] Better highlighting inspection result.
  • [ ] Async request instead of timeout
  • [ ] Variables viewer using locals() and globals()?
  • [ ] Remove duplicated completions items from LSP.

lkhphuc avatar Feb 24 '23 16:02 lkhphuc

  • [x] Allow custom paths in :JupyterAttach (nice work btw, I'm playing around it atm) #5

WhiteBlackGoose avatar Feb 25 '23 18:02 WhiteBlackGoose

  • [ ] Docs in preview for nvim-cmp would be nice

WhiteBlackGoose avatar Feb 26 '23 13:02 WhiteBlackGoose

  • [ ] Docs in preview for nvim-cmp would be nice

do you mean the function signature similar to LSP? If so it should already work if your kernel return it like so Screenshot 2023-02-26 at 15 06 42

If you means so also display what JupyterInspect display then it is a bit tricky, since that is not returned by the kernel (as far as I know). Therefore it's potentially very slow as I would have to loop through every completion item and called inspect myself on that. In this case it will unlikely be implemented.

lkhphuc avatar Feb 26 '23 15:02 lkhphuc

If so it should already work if your kernel return it like so

It works the same for me as it is on your screenshot. But there's no docs, as you can see. Although if you run it with jedi language server, it provides docs

WhiteBlackGoose avatar Feb 26 '23 15:02 WhiteBlackGoose

Oh I didn't know jedi-ls can do that. I use pyright and it also just give me the signature. In this case since jupyter also doesn't provide documentation, I guess the best I can do is to figure out if there is anyway I can configure nvim-cmp to filter out items that is duplicated from jedi-ls, so that only jedi-ls will appear.

lkhphuc avatar Feb 26 '23 17:02 lkhphuc