nvim-dap-python
thonny
nvim-dap-python | thonny | |
---|---|---|
19 | 176 | |
447 | 2,891 | |
- | 1.6% | |
4.7 | 9.5 | |
25 days ago | 3 days ago | |
Lua | Python | |
GNU General Public License v3.0 only | MIT License |
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
-
struggling to setup python with nvim dap - module not found on import - need to setup dap root?
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!
You could use nvim-dap with nvim-dap-python.
-
How to debug python code in neovim
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
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?
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?
-- 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
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.
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...
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?
Have you installed and configured nvim-dap and nvim-dap-python ?
thonny
-
FeedMyFurBabies – Send and Receive MQTT messages between AWS IoT Core and your micro-controller
Install Thonny and run it. Then go to Tools -> Options, to configure the ESP32C3 device in Thonny to match the settings shown in the screenshot below.
-
Raspberry Pico Badger: Hardware Features and OS
The recommended way to programm MicroPython on the Raspberry Pico is to use the Thonny IDE. Accessing the Badger with reveals the following file structure:
-
Abstract Classes in Python
Personally, I like to debug and step through code to see where I went wrong so I'm going to paste the code into my Thonny IDE. I like Thonny for small code challenges like this because it doesn't require setting up a whole project just to run and step through code.
-
Ask HN: Do you know any good coding platform for education?
Thonny is designed speciffically for that purpose https://thonny.org .
For beginners the main advantage is the easier install and maintainance, and the less intimidating/cluttered environment.
IMHO it makes some decent tradeoffs, and it is an onramp for students evolving to VSCode or PyCharm when they feel ready.
-
Macropad with KMK
I use the serial console with a tool like Thonny to debug KMK/CircuitPython code on my device. running something like import main; main.keyboard.go() usually prints a useful error message.
-
Help me Please
If you think you need an IDE then Thonny is a good one for beginners. It does more than a simple text editor, some of which you won't use initially, but it is more to learn on top of learning python.
-
Alguem sabe um editor de codigo leve para python?
Usa o thonny. É muito bom e leve.
-
What’s an free bare bones IDE for Python that works smoothly out of the box?
VSCode is good but I wouldn't describe it as "barebones". I recommend Thonny. It's a Python IDE specifically for beginners.
-
There's just TOO MUCH material!!!
All you really need to learn python is just an installed python interpreter, the command line and a text editor like Notepad, but that's a bit too minimal perhaps. There are things called IDEs (Integrated Development Environment) that bundle up tools such as an editor, build tools and a debugger into one package. I think that a full-blown IDE is overload for a beginner with too much to learn that isn't actually python. If you want to use an IDE try something like Thonny which is aimed at beginners. When you get some experience try other IDEs and Jupyter.
-
Now, NiceGUI has a build-in persistent user/session based storage.
Maybe a goofy question, and definitely unrelated to the post topic, but: I’m using Thonny to learn Python: can I use NiceGUI with Thonny?
What are some alternatives?
nvim-dap - Debug Adapter Protocol client implementation for Neovim
Visual Studio Code - Visual Studio Code
mason-lspconfig.nvim - Extension to mason.nvim that makes it easier to use lspconfig with mason.nvim.
mu - A small, simple editor for beginner Python programmers. Written in Python and Qt5.
vim-test - Run your tests at the speed of thought
Geany - A fast and lightweight IDE
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
Spyder - Official repository for Spyder - The Scientific Python Development Environment
vim-ultest - The ultimate testing plugin for (Neo)Vim
arduino-pico - Raspberry Pi Pico Arduino core, for all RP2040 boards
trouble.nvim - 🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Django - The Web framework for perfectionists with deadlines.