Skip to content

harupy/dbsnippet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DBSnippet

A Chrome extension to enable code snippets on Databricks.

Install from the Chrome Web Store

DBSnippet - Chrome Web Store

Getting Started

  1. Open a notebook on Databricks.
  2. Make sure the extension is enabled.
  3. Select a cell.
  4. Type dp and press Tab (dp will be expanded to display()).
  5. Type df.gb and press Tab (gb will be expanded to groupBy()).

Build from the Source

  1. Run the following commands:
./tools/install.sh
./tools/build.sh
  1. Open chrome://extensions on Chrome.
  2. Enable Developer mode if it's not enabled.
  3. Click Load unpacked.
  4. Select dist in the repository.

Snippets List

Snippets List

Custom Snippets

You can add custom snippets on the option page.

  1. Click the extension logo and select options.
  2. Add snippets.
  3. Click the save button.

custom snippet

How this extension works?

Each cell on the notebook has an object called CodeMirror which manages the cell content and state. This extension injects a JS script to override the properties related to key bindings and add new features not provided by default.

License

MIT

About

A Chrome extension to enable code snippets on Databricks

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •