Skip to main content

Little mans vibe coding assistant integrated into Thonny IDE.

Project description

Thonny LMvibe Vibe Coding AI Assistant

LMvibe - Your "little man's vibe" coding AI assistant, seamlessly integrated into the Thonny IDE.

LMvibe brings the power of large language models directly into your favorite beginner-friendly IDE. It's designed to make coding a more creative, conversational, and less frustrating experience.


Why is "Vibe Coding" with LMvibe in Thonny so Cool?

Thonny is the go-to IDE for learners, and LMvibe supercharges that experience. It's not just a chatbot; it's a coding partner that understands your context and directly generates / updates your code.

  • For Beginners and Kids: Coding can be intimidating. Getting stuck on a weird error message is frustrating. LMvibe turns that frustration into a learning opportunity. Instead of searching the web for cryptic errors, you can just ask your vibe assistant in plain English: "Why is this not working?" It makes coding feel less like a rigid science and more like a creative conversation.

  • For Embedded Systems Users (MicroPython/CircuitPython): Prototyping with microcontrollers is all about speed and iteration. LMvibe is a massive productivity booster. You can ask it to generate boilerplate code for a specific sensor (like an I2C BME280 sensor), explain a hardware protocol, or help you debug code that interacts with GPIO pins. It's like having an experienced hardware engineer by your side.


Installation

Installing LMvibe is simple using Thonny's built-in plug-in manager.

  1. In Thonny, navigate to Tools > Manage plug-ins....
  2. In the search bar, type thonny-lmvibe and press Enter.
  3. Click the Install button.
  4. Restart Thonny completely. You will now see the "LMvibe" panel at the bottom of the IDE.

Configuration

Before you can use the assistant, you need to configure it with your API key.

  1. Navigate to Tools > Options....
  2. Go to the LMvibe tab.
  3. Enter your Google AI API Key. You can get one from Google AI Studio.
  4. Click "Fetch Models" and select a suitable model (e.g., a gemini-pro model) from the dropdown.
  5. Click OK. You are now ready to start coding!

How It Works: The Power of Context

The most powerful feature of LMvibe is its context awareness. When you ask a "Code-aware" or "Error Follow-up" question, the assistant doesn't just see your question—it sees the entire, most recent version of your code in the active editor.

This is a game-changer. It means the AI understands all your variables, functions, and the overall structure of your script. This allows it to give you highly accurate, relevant answers that are specific to your project, not generic solutions you'd find online.

Make no mistake: in order to keep cost and complexity down, LMvibe is one file only, it will only keep track of your currently open and active code tab and is prompted to create on-file code only: exactly what you need for fast projects.

API and Future Development

Currently, LMvibe is powered by the Google Gemini API. It provides a fantastic balance of power and accessibility.

The architecture is designed to be flexible. In the future, support for other APIs (like those from OpenAI, Anthropic, or local models) could be added to give users more choice.


The 6 Main Functions

You can interact with LMvibe using six intuitive icon-based buttons. Each has a specific purpose to streamline your workflow.

Logo (Filename) Function Description
Single Question This is for general questions that don't relate to your code. Ask it anything from "How does a Python dictionary work?" to "Give me an idea for a fun beginner project."
Code-aware Question
(Shortcut: Ctrl+Enter)
This is the primary function. It sends your question along with the entire code from your current editor. Use this to ask "How can I optimize this function?" or "Add comments to explain my code."
Error Follow-up When you get an error in the Thonny shell, use this button. It sends your question, your full code, and the last 20 lines from the shell. Perfect for asking "What does this error mean and how do I fix it?"
Revert to Previous Code Made a change you don't like after asking a code-aware question? This button instantly reverts the code in your editor back to the version you had before the assistant made changes. It's a simple and safe undo.
Update Code in Editor If the assistant provides a Python code block in its answer, this button will automatically and completely replace the content of your editor with the new code. It's a fast way to apply the suggested fixes or additions.
Clear History This button clears the entire conversation history from the LMvibe panel. Use it to start a fresh conversation or to clean up the interface.

In addition, LMvibe lets you select a passage in your code and then right-click on "Explain..." to interrogate the AI about the passage.


This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thonny_lmvibe-0.9.5.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thonny_lmvibe-0.9.5-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file thonny_lmvibe-0.9.5.tar.gz.

File metadata

  • Download URL: thonny_lmvibe-0.9.5.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for thonny_lmvibe-0.9.5.tar.gz
Algorithm Hash digest
SHA256 5eec6be8ec324c3862d28e74266d8f53ea4c5b49f86df722cd3d85db10169004
MD5 69cc6ddf94b9b5eda34e82da06977051
BLAKE2b-256 b7e042c4a4ba06b5d6517400fc0201d7f9e7339ff3ef86aca260d513232d8756

See more details on using hashes here.

File details

Details for the file thonny_lmvibe-0.9.5-py3-none-any.whl.

File metadata

  • Download URL: thonny_lmvibe-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for thonny_lmvibe-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a746fd8810bec1f397a6daf1910475aee740e6e88f4202c6f23777143208f558
MD5 0b5ca6da37cb7c9ff5073d986fa7525e
BLAKE2b-256 bab865ba4eb6c4855bdb10afdaed429fa6543824df2b68de678365bd090ad1e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page