Skip to content

Instantly share code, notes, and snippets.

@jbwhit
jbwhit / example-ruff-formatting.ipynb
Last active May 4, 2025 00:37
Steps to use `ruff` in JupyterLab with the `jupyterlab_code_formatter` plugin.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
* Immutable JS's Record type allows you define maps that you can access with
* standard dot-notation instead of a get() method. It's mainly used for
* defining the shape of complex objects, such as the root state of a Redux
* component.
*
* Unfortunately, they basically don't work in TypeScript. Check this out:
*/
import * as I from 'immutable';