Skip to content

A simple vscode extension that provides textual descriptions for the user of the currently hovered line if it contains a python slice. ex: [1:9:2]

License

Notifications You must be signed in to change notification settings

lord0gnome/vscode-python-slice-descriptor-openai

Repository files navigation

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.

VSCode Marketplace Page

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 command 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. ;)

About

A simple vscode extension that provides textual descriptions for the user of the currently hovered line if it contains a python slice. ex: [1:9:2]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published