A Chrome extension to enable code snippets on Databricks.
- Open a notebook on Databricks.
- Make sure the extension is enabled.
- Select a cell.
- Type
dp
and pressTab
(dp
will be expanded todisplay()
). - Type
df.gb
and pressTab
(gb
will be expanded togroupBy()
).
- Run the following commands:
./tools/install.sh
./tools/build.sh
- Open chrome://extensions on Chrome.
- Enable
Developer mode
if it's not enabled. - Click
Load unpacked
. - Select
dist
in the repository.
You can add custom snippets on the option page.
- Click the extension logo and select
options
. - Add snippets.
- Click the save button.
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.
MIT