ryantam626 / jupyterlab_code_formatter

A JupyterLab plugin to facilitate invocation of code formatters.
MIT License
822 stars 52 forks source link

Jupyterlab Code Formatter Error in AWS SageMaker Studio #334

Open Remi-deronzier opened 3 months ago

Remi-deronzier commented 3 months ago

Environment

Issue Description

When attempting to format Python code using the jupyterlab-code-formatter extension within JupyterLab on AWS SageMaker Studio, the formatting action fails and triggers a "Jupyterlab Code Formatter Error, Not Found" error message. This occurs despite the extension appearing as enabled and properly validated within my environment.

Steps to Reproduce

  1. Launch JupyterLab session in AWS SageMaker Studio with the specified environment.
  2. Install jupyterlab-code-formatter version 2.2.1, along with black and isort.
  3. Verify the extension is enabled and validated through jupyter server extension list.
  4. Attempt to format a Python notebook or file using the jupyterlab-code-formatter icon.
  5. Encounter a pop-up error with the message "Jupyterlab Code Formatter Error: Not Found".

Additional Context

Despite the extensions being recognized and validated by the server, the formatting request fails. Notably, the environment and installation details have been double-checked for consistency and correctness.

Any guidance on troubleshooting or resolving this issue would be greatly appreciated.

Thanks a lot for your help :)

SergioG-M commented 1 month ago

Did you find any solution? I am getting the same error

Remi-deronzier commented 1 month ago

No, unfortunately not. Still the same problem on my side.

SergioG-M commented 1 month ago

I am surprised that no one else has this problem / care about this