Skip to main content

purdue_af_vscode_button

Adds a JupyterLab topbar button that opens the proxied code-server (VS Code) interface in a new browser tab.

Command ID

Register this command in top-bar.jupyterlab-settings:

jupyterlab-topbar:switch-to-vscode

Top bar configuration

Add the button to .jupyter/lab/user-settings/@jupyterlab/application-extension/top-bar.jupyterlab-settings (or via config-extensions.sh in the purdue-af image):

{
    "toolbar": [
        {
            "name": "vscode",
            "command": "jupyterlab-topbar:switch-to-vscode",
            "disabled": false,
            "rank": 155
        },
        {
            "name": "shutdown",
            "command": "jupyterlab-topbar:shutdown",
            "disabled": false,
            "rank": 160
        }
    ]
}

Clicking the button opens {baseUrl}vscode/?folder=/home/{username} in a new tab, using the Jupyter single-user server baseUrl (no hardcoded hostnames).

purdue-af image integration (downstream)

After publishing to PyPI, update the purdue-af repository:

  1. docker/purdue-af/pixi.toml — add purdue-af-vscode-button = "==0.1.0" (or purdue_af_vscode_button per your lockfile convention).
  2. docker/purdue-af/scripts/config-extensions.sh — add the topbar entry shown above before the shutdown button.

Requirements

  • JupyterLab >= 4.0.0

Install

pip install purdue_af_vscode_button

Uninstall

pip uninstall purdue_af_vscode_button

Contributing

Development install

Note: You will need NodeJS to build the extension package.

The jlpm command is JupyterLab's pinned version of yarn that is installed with JupyterLab. You may use yarn or npm in lieu of jlpm below.

# Change directory to the purdue-af-vscode-button directory
pip install -e "."
jupyter labextension develop . --overwrite
jlpm build
jlpm watch
jupyter lab

Development uninstall

pip uninstall purdue_af_vscode_button

Remove the purdue-af-vscode-button symlink from the labextensions folder reported by jupyter labextension list.

Packaging the extension

See RELEASE

Metadata

Release files for purdue-af-vscode-button 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for purdue-af-vscode-button 0.1.2
File Size Uploaded Provenance Actions
purdue_af_vscode_button-0.1.2.tar.gz 83.9 kB Without provenance Details for purdue_af_vscode_button-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for purdue-af-vscode-button 0.1.2
File Interpreter ABI Platform Actions
purdue_af_vscode_button-0.1.2-py3-none-any.whl Python 3 none any Details for purdue_af_vscode_button-0.1.2-py3-none-any.whl

Total release size: 113.5 kB

Release files / purdue_af_vscode_button-0.1.2.tar.gz

Download URL purdue_af_vscode_button-0.1.2.tar.gz
Size 83.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4946f41be8a92e0369b535f9d30508edb69860dbb6efd47d2f2b693c289977e4
BLAKE2b-256 checksum
How to use checksums
33d54a6c1b2996abba9091d1209d9f276a36564bfaec41942bd557a4adaab5f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / purdue_af_vscode_button-0.1.2-py3-none-any.whl

Download URL purdue_af_vscode_button-0.1.2-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ac4eb7f0af1398886c9dd9707447940742e0fa47e9bb763fb5d6cfb11c5344b
BLAKE2b-256 checksum
How to use checksums
0e18dbd0de664ac7ddf40574cc266fdc12f613b956892f09a9eb73b6f45b700d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Security for purdue-af-vscode-button 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page