Skip to content

Plugin Chat with Molecule Neo Gemini

Hiromichi Yokoyama edited this page Oct 23, 2026 · 5 revisions

Plugin: Chat with Molecule Neo (Gemini)

Chat with Molecule Neo (Gemini) embeds Google Gemini directly into MoleditPy as an interactive chemical assistant. It automatically injects the current molecular graph (with atom-mapped indices and SMILES) and leverages LLM function calling to apply chemical reactions, highlight substructures, calculate descriptors, and generate quantum chemical inputs.

Repository Bundled in moleditpy-plugins (plugins/Chat_with_Molecule_Neo)
Author HiroYokoyama
Supported OS Windows, macOS, Linux, WSL
Supported Python >=3.9, <3.15
Supported MoleditPy >=5.0.0, <6.0.0
First-party plugin license LGPL-3.0-or-later
Menu location Plugin ▸ Chat with Molecule Neo (Gemini)
Extra dependencies matplotlib (optional, for LaTeX equation rendering)

See Official Plugins for the full catalogue.


1. Key Features

  • Automatic Molecular Context Injection:
    • Automatically translates the current 2D/3D structure into an atom-mapped SMILES string (e.g. [C:1]...) and queries PubChem to attach the IUPAC and common name.
    • Automatically injects currently selected atoms into the context prompt (e.g. [User Selection: [5, 6]]) so commands like "brominate here" or "methylate this atom" target precisely the right site.
  • Interactive Tool Calling:
    • apply_transformation: Executes chemical reactions using Reaction SMARTS against mapped atom indices.
    • highlight_substructure: Visually highlights pharmacophores or specific atoms matching SMARTS queries.
    • calculate_descriptors: Calculates MW, LogP, TPSA, HBD, HBA, rotatable bonds, and ring counts.
    • orca_input_generator & gaussian_input_generator: Writes calculation input files tailored to the current molecular coordinates.
    • load_molecule_by_name: Queries PubChem to resolve and load requested molecules directly into the workspace.
  • LaTeX Math and Chemical Equation Rendering:
    • Uses Matplotlib's mathematical typography engine to render LaTeX thermodynamic and kinetic equations cleanly in the chat panel.
  • Model Flexibility:
    • Supports Gemini 1.5 Pro, Gemini 1.5 Flash, and Gemini 2.0 models using your own Google AI Studio API key.

2. Typical Workflow

  1. Open Plugin ▸ Chat with Molecule Neo (Gemini).
  2. Enter your Google Gemini API key in the settings tab (saved locally).
  3. Select an atom in MoleditPy (e.g. the para-position of a phenyl ring).
  4. Ask in the chat: "Brominate the selected position and calculate the resulting LogP."
  5. Gemini calls apply_transformation to update the structure in MoleditPy and returns the calculated descriptors.

Usage notes

Chat responses support HTTP and HTTPS links.


3. See also


This page documents Chat with Molecule Neo (Gemini) v2026.10.22, and was last updated on 2026-10-24. See REGISTRY/plugins.json for the current version.

Clone this wiki locally