Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Python Array Slice DescriptorNew to Visual Studio Code? Get it now.
Python Array Slice Descriptor

Python Array Slice Descriptor

Guillaume RICHARD

|
320 installs
| (0) | Free
This extension provides a textual description, and the price of the openAI request, when you hover over a slice shorthand of a python array.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vscode Python Slice Descriptor Openai

A simple vscode extension that provides textual descriptions for the user of the currently hovered line if it contains a python slice.

Requirements

  • vscode > 1.68.0

Example

Example

Extension Settings

Will automatically be prompted and stored in vscode SecretStorage:

  • apiKey : Your openAI api key
  • model : The model to use

You can run a command to set these using the vscode commande pallette (ctrl+shift+p):

  • Python Slice Descriptor: Set OpenAI API Key
  • Python Slice Descriptor: Set OpenAI Model

Known Issues

  • The openAI models I list are hard-coded, and the pricing is taken by hand off the openAI website.
  • If you hover over any line with a slice python array, you will PAY with your openAI account, be weary of this.

Changelog

View it here

Enjoy! This is my first published extension, any comments will be appreciated, even very negative ones. ;)

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft