Neovim PDE for Data Science (Part 2)

Configure a PDE for data science — Python, R, and Julia.

alpha2phi
4 min readJun 22, 2023
Neovim PDE for Data Science (Part 2)

We will continue our journey to configure a PDE for data science.

This article is part of the Neovim PDE series.

The Neovim configuration files are available in this repository.

Getting Started

We configured a development environment to edit Jupyter Notebook in the previous article. The environment can also be used to edit regular Python files. With this configuration, we can have a familiar experience using Jupyter, from within Neovim.

Neovim PDE for Data Science

Context Menu using hydra.nvim

To have a better user experience, we will configure a context menu using hydra.nvim.

In the lua/base/editor.lua file, we configure the plugin.

  {
"anuvyklack/hydra.nvim",
event = { "VeryLazy" },
opts = {
specs = {},
},
config = function(_, opts)
local hydra = require "hydra"
for s, _ in pairs(opts.specs) do
hydra(opts.specs[s]())
end
end,
},

--

--