Skip to main content
100%

So tired of typing repeating R pipe operators? Try this!

✓ Published0🌍 Public
Aajing
Last edited Jul 24, 2020
Created on Jul 24, 2020

This example demonstrates a JupyterLab customization that inserts the R pipe operator `%>%` into a notebook cell with a single keyboard shortcut. It shows how the `notebook:replace-selection` command can be bound to the `Ctrl Accel M` key combination, replacing the current selection with the specified text. The configuration uses a JSON shortcuts file that targets the `.jp-Notebook` selector, leveraging JupyterLab’s built-in command system. This approach simplifies repetitive typing for R users by providing a direct, accelerator-based alternative to manual entry.

AI-generated description

Similar vizzes