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:
docker/purdue-af/pixi.toml— addpurdue-af-vscode-button = "==0.1.0"(orpurdue_af_vscode_buttonper your lockfile convention).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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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
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.