Skip to content

Instantly share code, notes, and snippets.

@jbwhit
Last active May 4, 2025 00:37
Show Gist options
  • Save jbwhit/eecdd1cac2756df85ad165f437445b0b to your computer and use it in GitHub Desktop.
Save jbwhit/eecdd1cac2756df85ad165f437445b0b to your computer and use it in GitHub Desktop.
Steps to use `ruff` in JupyterLab with the `jupyterlab_code_formatter` plugin.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@JordanTheDodger
Copy link

I followed steps from YT vid, still could not get Formatter_icon work w/ ruff_format in active Jupyter notebook. I have installed python 3.10<= using venv. I liked keyboard shortcut which also doesn't work ss attached below. Any help appreciated. Discord: JordanTheDodger image

Update: I finally figured out the error. I am elated to capture my first error with new kid on the block RUFFFFF :100 Kudos @jbwhit

@jbwhit
Copy link
Author

jbwhit commented Apr 23, 2025

I followed steps from YT vid, still could not get Formatter_icon work w/ ruff_format in active Jupyter notebook. I have installed python 3.10<= using venv. I liked keyboard shortcut which also doesn't work ss attached below. Any help appreciated. Discord: JordanTheDodger image

Update: I finally figured out the error. I am elated to capture my first error with new kid on the block RUFFFFF :100 Kudos @jbwhit

Was the error on from this document or something on your side?

@JordanTheDodger
Copy link

I configured virtual env using conda. For some reason, ruff configuration didn't register. I had to shutdown Jupyter and virtual env. Technically not a "true" error just operational hiccup. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment