nvim-dap-python VS vim-slime

Compare nvim-dap-python vs vim-slime and see what are their differences.

nvim-dap-python

An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes. (by mfussenegger)

vim-slime

A vim plugin to give you some slime. (Emacs) (by jpalardy)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
nvim-dap-python vim-slime
19 56
447 1,795
- -
4.7 9.3
25 days ago 9 days ago
Lua Vim Script
GNU General Public License v3.0 only MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nvim-dap-python

Posts with mentions or reviews of nvim-dap-python. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-06.
  • struggling to setup python with nvim dap - module not found on import - need to setup dap root?
    3 projects | /r/neovim | 6 Jul 2023
    I think nvim-dap doesn't (always?) use neovim current working directory as root, which can cause issues like yours. I'd recommend using https://github.com/mfussenegger/nvim-dap-python along with a local .nvim.lua (:h 'exrc') with the following config:
  • How can I debug Python code in neovim!
    3 projects | /r/vim | 1 Jul 2023
    You could use nvim-dap with nvim-dap-python.
  • How to debug python code in neovim
    2 projects | /r/neovim | 1 Jul 2023
    I'd suggest starting with a Neovim distro that makes things work for you and as you get familiar you can transition to a more custom configuration as you see fit. If you want to do it by yourself then the most popular plugin for debugging in Neovim is nvim-dap and there is also an extension for Python to give you a more ready to go config instead of doing it yourself. You should read the docs of those 2 to see how you should customize accordingly your configuration.
  • Need help setting working directory of my debugger for python in neovim
    4 projects | /r/neovim | 29 May 2023
    I figured out a solution btw. I got this plugin and created a .vscode/launch.json file for my project and set the cwd in there
  • Does anyone ever use Neovim to debug PyTorch?
    3 projects | /r/neovim | 17 May 2023
    lmao. I'm asking this because I'm trying to do this. Just want to know whether this is a good idea. I have some basic setup using nvim-dap-python.
  • What has been people's experience with nvim-dap? Or integrating the debugging experience within Neovim itself?
    5 projects | /r/neovim | 23 Apr 2023
    -- Debug adapter plug-in. Debug anything in Neovim { "mfussenegger/nvim-dap", config = function() vim.keymap.set("n", "d", ":DapContinue") vim.keymap.set("n", "dl", ":DapStepInto") vim.keymap.set("n", "dj", ":DapStepOver") vim.keymap.set("n", "dh", ":DapStepOut") vim.keymap.set("n", "dz", ":ZoomWinTabToggle") vim.keymap.set( "n", "dgt", -- dg as in debu[g] [t]race ":lua require('dap').set_log_level('TRACE')" ) vim.keymap.set( "n", "dge", -- dg as in debu[g] [e]dit function() vim.cmd(":edit " .. vim.fn.stdpath('cache') .. "/dap.log") end ) vim.keymap.set("n", "", ":DapStepOut") vim.keymap.set("n", "", ":DapStepOver") vim.keymap.set("n", "", ":DapStepInto") vim.keymap.set( "n", "d-", function() require("dap").restart() end ) vim.keymap.set( "n", "d_", function() require("dap").terminate() require("dapui").close() end ) end, lazy = true, }, -- A default "GUI" front-end for nvim-dap { "rcarriga/nvim-dap-ui", config = function() require("dapui").setup() -- Note: Added this dd duplicate of because somehow the -- mapping keeps getting reset each time I restart nvim-dap. Annoying but whatever. -- vim.keymap.set( "n", "dd", function() require("dapui").open() -- Requires nvim-dap-ui vim.cmd[[DapContinue]] -- Important: This will lazy-load nvim-dap end ) end, dependencies = { "mfussenegger/nvim-dap", "mfussenegger/nvim-dap-python", -- Optional adapter for Python }, }, -- TODO: Make sure that debugpy is installed. Otherwise, disable -- Reference: https://github.com/mfussenegger/nvim-dap-python#installation -- { "mfussenegger/nvim-dap-python", config = function() require("dap-python").setup("/path/to/python/here") -- XXX: Replace this with your preferred Python, if wanted -- An example configuration to launch any Python file, via Houdini -- table.insert( -- require("dap").configurations.python, -- { -- type = "python", -- request = "launch", -- name = "Launch Via hython", -- program = "${file}", -- python = "/opt/hfs19.5.569/bin/hython" -- -- ... more options, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings -- } -- ) end, dependencies = { "mfussenegger/nvim-dap", "nvim-treesitter/nvim-treesitter", }, }, -- Remember nvim-dap breakpoints between sessions, ``:PBToggleBreakpoint`` { "Weissle/persistent-breakpoints.nvim", config = function() require("persistent-breakpoints").setup{ load_breakpoints_event = { "BufReadPost" } } vim.keymap.set("n", "db", ":PBToggleBreakpoint") end, }
  • Supercharge Python Development with this Plugin
    2 projects | /r/neovim | 18 Apr 2023
    Oh yes.. I think https://github.com/mfussenegger/nvim-dap-python is what you are looking for. The configuration might not be as simple as the VS code equivalent but seems to serve the same purpose?
  • Finding the right Virtual Envs with Pyright and DAP.
    1 project | /r/neovim | 30 Jan 2023
    But how do specify the same virtual env for Debugging with dap? nvim-dap-python is looking for the env variables VIRTUAL_ENV and CONDA_PREFIX. But that means i cannot open multiple python projects in the same nvim instance.
  • What IDE do you think is best for Python Programming? I currently am using Visual Studio Code but am open to test others...
    9 projects | /r/Python | 17 Dec 2022
    Yes, you can use nvim-dap-ui on top of nvim-dap or just nvim-dap-python (note that I haven‘t used the latter). Both options are able to parse .vscode/launch.json debug configs.
  • How to setup neotest with neotest-python and dap?
    3 projects | /r/neovim | 15 Dec 2022
    Have you installed and configured nvim-dap and nvim-dap-python ?

vim-slime

Posts with mentions or reviews of vim-slime. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-20.
  • Racket Language
    5 projects | news.ycombinator.com | 20 Apr 2024
    https://github.com/jpalardy/vim-slime

    you can have a REPL in nvim/vim/tmux/screen/another terminal/or any other window , and send regions from your vim buffer to that repl

  • Livebook: Elixir's Swiss Army Knife
    2 projects | news.ycombinator.com | 25 Mar 2024
    For vim users, check out vim-slime[1]. It's really changed my workflow! It can work for any language that uses a REPL, including bash/shell. Combined with tmux, it is an amazing and (in hindsight) obvious tool. I honestly can't imagine myself going back to not having it now.

    [1]: https://github.com/jpalardy/vim-slime

  • NeoVim Capability Functions
    4 projects | /r/neovim | 3 Nov 2023
    For splitting the terminal you could try either toggleterm or tmux. If you want to send things from one tmux pane to another, then you can use slime. For a toggle-able filetree, you can use nvim tree.
  • Help running chunks of Python to a terminal as REPL
    3 projects | /r/neovim | 3 Jun 2023
    I use vim-slime. It works really well in tmux. https://github.com/jpalardy/vim-slime. Just blocks of code as cells
  • slimux.nvim - Simple plugin to send text to tmux panes
    4 projects | /r/neovim | 24 May 2023
    This is yet another plugin to capture text from the current buffer and send it to a tmux pane. I was using https://github.com/jpalardy/vim-slime previously, and wished I could just set sensible defaults for where to send text. Also, I wanted to create my first Neovim plugin! I have to say, after writing a bit of Vimscript in the past, the Neovim Lua API makes me a much happier camper.
  • If we can have this functionality in neovim, I'll probably never leave my room again
    2 projects | /r/neovim | 21 Mar 2023
    I use slime (which sends code to tmux panes), tmux (of course) and ipython for this. For example, the code I sent to ipython was with a simple keybinding ...
  • Running codes in one line
    2 projects | /r/vim | 19 Mar 2023
    If I understand correctly, what you need is a combination of vim, tmux, ipython and vim-slime.
  • Tools for productivity
    31 projects | /r/neovim | 7 Mar 2023
    REPL??? Do you have a very-easy-to-use way of running and testing your code? From vim-slime to nvim sniprun to autocommands with the built in terminal, to an external repl like ptpython (for python obviously). iron.nvim and conjure are two other neovim repl plugins. There are many ways of running the code that you're working on, and having something that makes this really easy for you is pretty essential. (sometimes I use inotifytools on linux to literally just run the script every time I save it.)
  • Favorite REPL/Notebook/Task Running plugins and workflow?
    8 projects | /r/neovim | 25 Feb 2023
    For the record/list, there's also: - https://github.com/hkupty/iron.nvim and - https://github.com/jpalardy/vim-slime
  • Outdated tutorials
    2 projects | /r/vim | 19 Feb 2023
    However, if you're coding in an interpreted language like python, R, bash, etc., then there is one plugin which you are likely to find helpful. That's vim-slime.

What are some alternatives?

When comparing nvim-dap-python and vim-slime you can also consider the following projects:

nvim-dap - Debug Adapter Protocol client implementation for Neovim

vim-repl - Best REPL environment for Vim

mason-lspconfig.nvim - Extension to mason.nvim that makes it easier to use lspconfig with mason.nvim.

neovim-remote - :ok_hand: Support for --remote and friends.

vim-test - Run your tests at the speed of thought

iron.nvim - Interactive Repl Over Neovim

packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config

Pluto.jl - 🎈 Simple reactive notebooks for Julia

vim-ultest - The ultimate testing plugin for (Neo)Vim

neoterm - Wrapper of some vim/neovim's :terminal functions.

trouble.nvim - 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.

vim-ipython-cell - Seamlessly run Python code in IPython from Vim