@almond-sh/scalafmt
v0.2.0
Published
Format Scala notebook cells with scalafmt, via almond
Maintainers
Readme
almond-scalafmt
JupyterLab extension to format the code cells of almond Scala notebooks with scalafmt.

Requirements
- JupyterLab >=
4.0 - almond >=
0.10.8
Install
pip install almond-scalafmtNo JupyterLab rebuild (nor Node.js) is needed: the extension ships prebuilt.
Usage
When a notebook runs the almond kernel, this extension adds two commands:
- Format Selected Cells with scalafmt, also available in the context menu of code cells
- Format All Code Cells with scalafmt
Both can be found in the command palette (Ctrl+Shift+C, or Cmd+Shift+C on macOS), by typing scalafmt.
Keyboard shortcuts can be assigned to them in Settings > Settings Editor > Keyboard Shortcuts.
To revert the formatting of a cell, put the cursor in this cell, and hit the undo shortcut (Ctrl+Z, or Cmd+Z on macOS).
Cells edited while scalafmt is running are left untouched.
Uninstall
pip uninstall almond-scalafmtContributing
If you would like to contribute to this extension, please refer to the Contributing Guide.
Please report issues in the almond repository rather than in the almond-scalafmt repository.
