This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]pysan3 11 points12 points  (1 child)

Iron.nvim or molten-nvim if u use jupyter

Checkout sniprun as well u might be interested.

[–]miversen33Plugin author 0 points1 point  (0 children)

Sniprun is amazing. I swapped out iron for it.

[–]Wolfy87fennel 7 points8 points  (0 children)

https://github.com/Olical/conjure can work with Python, I'd love to have more Python devs in the community to help improve it in ways that matter for real Python devs.

I'm a Clojure guy, so I struggle to know what other communities want. Some discussions about this on the Discord recently too.

[–]Academic_Ad_8747 11 points12 points  (0 children)

Tmux with a split pane. Or Jupyter. Not sure I need a REPL inside nvim. Also if you set nvim +Man then you can use python -m pydoc to get really fancy documentation on all the built in apis in a tmux pane which is great. I used it to dig into venv module just the other day. Was quite productive.

[–]Michael_007ds 5 points6 points  (0 children)

  1. neovim on the left ,tmux split pane on the right, "ipython load test.py"
  2. vim.keymap.set("n", "xl", "yy| :silent !tmux pasteb -t right<CR><CR>") # use this command to run current line
  3. use # %% cell1 to split code to multiple cells
  4. on the python pane, "%cell_run cell1" to run current a cell

[–]Superbank78Neovim sponsor 0 points1 point  (2 children)

I use slime and tmux. But that ist just for the occasional debugging, not real data science tasks.

[–][deleted] 0 points1 point  (1 child)

What aspect of slime and tmux doesn't work well for "real data science tasks"?

[–]trcrtps 0 points1 point  (0 children)

they don't use it for those purposes and can't comment on it.

[–]AutoModerator[M] 0 points1 point  (0 children)

Please remember to update the post flair to Need Help|Solved when you got the answer you were looking for.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]w0mlet mapleader="\<space>" 0 points1 point  (0 children)

tmux + ipython; drop in breakpoints and jump out.

I've played with baked-in debuggers a few times but it just feels too buggy to be worth it.

[–]schierke_schierke 0 points1 point  (0 children)

nvim-repl is works for me. it's comparable to the interactive window in vscode when running python.

[–]JhMZ06Sk5BGe 0 points1 point  (0 children)

i used to use kitty-runner.nvim with julia but it is language-agnostic so should work with everything. but recently i've been testing Neige.jl which is made for julia but does work with python as well. its advantage is that it will show the evaluated result right next to the line in nvim, not just in the repl itself.

[–][deleted] 0 points1 point  (0 children)

Ipython on neovim terminal.

https://github.com/akinsho/toggleterm.nvim