Skip to content

No format icon or settings in Jupyterlab Spaces in AWS SageMaker Studio #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
erkdong opened this issue Jan 17, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@erkdong
Copy link

erkdong commented Jan 17, 2025

Environment

  • jupyterlab_code_formatter v3.0.2
  • JupyterLab v4.3.4
  • Instance: ml.t3.medium
  • Image: SageMaker distribution 2.2.1

Description

After installing, verifying installation, and restarting Jupyterlab, the format icon doesn't appear in the toolbar. Nor does Jupyterlab Code Formatter appear in the settings.

Image Image

Reproduce

  1. pip install jupyterlab-code-formatter
  2. pip install black
  3. jupyter server extension list
Config dir: /home/sagemaker-user/.jupyter

Config dir: /home/sagemaker-user/.conda/envs/erk-python-env/etc/jupyter
    jupyter_lsp enabled
    - Validating jupyter_lsp...
      jupyter_lsp 2.2.5 OK
    jupyter_server_terminals enabled
    - Validating jupyter_server_terminals...
      jupyter_server_terminals 0.5.3 OK
    jupyterlab enabled
    - Validating jupyterlab...
Extension package jupyterlab took 0.1989s to import
      jupyterlab 4.3.4 OK
    jupyterlab_code_formatter enabled
    - Validating jupyterlab_code_formatter...
      jupyterlab_code_formatter 3.0.2 OK
    notebook_shim enabled
    - Validating notebook_shim...
      notebook_shim  OK

Config dir: /usr/local/etc/jupyter
  1. jupyter labextension list
JupyterLab v4.3.4
/home/sagemaker-user/.conda/envs/erk-python-env/share/jupyter/labextensions
        jupyterlab_pygments v0.3.0 enabled OK (python, jupyterlab_pygments)
        jupyterlab_code_formatter v3.0.2 enabled OK (python, jupyterlab_code_formatter)
  1. restart-jupyter-server
  2. I also tried restarting the Jupyterlab space itself

Expected behavior

Format icon should appear in toolbar. Extension should appear in settings.

Context

  • Python package version: jupyterlab_code_formatter 3.0.2 pyhd8ed1ab_1 conda-forge
  • Operating System and its version: Ubuntu 22.04.5 LTS
  • Browser and its version: Chrome 131.0.6778.265
Command Line Output
[I 2025-01-17 07:45:50.959 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2025-01-17 07:45:50.968 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2025-01-17 07:45:50.985 ServerApp] jupyterlab | extension was successfully linked.
[I 2025-01-17 07:45:50.986 ServerApp] jupyterlab_code_formatter | extension was successfully linked.
[I 2025-01-17 07:45:51.306 ServerApp] notebook_shim | extension was successfully linked.
[I 2025-01-17 07:45:51.339 ServerApp] notebook_shim | extension was successfully loaded.
[I 2025-01-17 07:45:51.341 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2025-01-17 07:45:51.343 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2025-01-17 07:45:51.344 LabApp] JupyterLab extension loaded from /home/sagemaker-user/.conda/envs/erk-python-env/lib/python3.13/site-packages/jupyterlab
[I 2025-01-17 07:45:51.344 LabApp] JupyterLab application directory is /home/sagemaker-user/.conda/envs/erk-python-env/share/jupyter/lab
[I 2025-01-17 07:45:51.345 LabApp] Extension Manager is 'pypi'.
[I 2025-01-17 07:45:51.481 ServerApp] jupyterlab | extension was successfully loaded.
[I 2025-01-17 07:45:51.482 ServerApp] Registered jupyterlab_code_formatter server extension
[I 2025-01-17 07:45:51.482 ServerApp] jupyterlab_code_formatter | extension was successfully loaded.
[I 2025-01-17 07:45:51.482 ServerApp] The port 8888 is already in use, trying another port.
[I 2025-01-17 07:45:51.485 ServerApp] Serving notebooks from local directory: /home/sagemaker-user
[I 2025-01-17 07:45:51.485 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-01-17 07:45:51.485 ServerApp] http://localhost:8889/lab?token=ac301581af7d485c572bc0e98674ee13d28b0681a37ae5fb
[I 2025-01-17 07:45:51.485 ServerApp]     http://127.0.0.1:8889/lab?token=ac301581af7d485c572bc0e98674ee13d28b0681a37ae5fb
[I 2025-01-17 07:45:51.485 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 2025-01-17 07:45:51.498 ServerApp] No web browser found: Error('could not locate runnable browser').
[C 2025-01-17 07:45:51.498 ServerApp] 
To access the server, open this file in a browser:
    file:///home/sagemaker-user/.local/share/jupyter/runtime/jpserver-525-open.html
Or copy and paste one of these URLs:
    http://localhost:8889/lab?token=ac301581af7d485c572bc0e98674ee13d28b0681a37ae5fb
    http://127.0.0.1:8889/lab?token=ac301581af7d485c572bc0e98674ee13d28b0681a37ae5fb

[I 2025-01-17 07:45:52.025 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server

@erkdong erkdong added the bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant