Skip to content

Kristina-Pianykh/nvim-databricks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim-databricks

A Neovim Plugin for Python code execution on a remote Databricks cluster.

!!! This a pre-beta version !!!

Dependencies

Installation

Install this plugin using your favorite plugin manager.

Example using lazy.nvim:

{
    "Kristina-Pianykh/nvim-databricks",
    branch = "main",
    dependencies = {
      "nvim-lua/plenary.nvim",
    },
    config = function()
      local databricks = require("nvim-databricks")
      databricks:setup({
        settings = {
          profile    = <your_databricks_profile>,      -- required
          cluster_id = <your_databricks_cluster>,      -- required
          path       = <path_to_databricks_config>,    -- optional; defaults to $HOME/.databrickscfg
        },
      })

      -- your keybindings for executing code selected in the line visual code
      vim.keymap.set("v", "<leader>sp", function()
        databricks:launch()
      end, { noremap = true })

      -- your keybindings for clearing the execution context
      vim.keymap.set("n", "<leader>cl", function()
        databricks:clear_context()
      end, { noremap = true })
    end,
},

Make sure you have your Databricks profile set up and you're authenticated with your Databricks workspace. This requires generating a personal access token.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages