Name to Structure or Reaction (MarvinJS)

Question types ::: qtype_easyonamejs
Maintained by Carl LeBlond
Name to structure (or reaction) question type. You can ask students to draw chemical structures or reactions. This plugin requires MarvinJS from Chemaxon and openbabel.
Latest release:
49 sites
7 fans
Current versions available: 2


This software is no longer maintained and has been superseded by the OpenOChem LTI assessment system.

With this question type you can query students to reproduce a single molecule, set of molecules or reactions.  This question type is similar to Structure match with editor and the Pattern match with JME editor but offers some more advanced features (see features below).  This plugin requires MarvinJS from Chemaxon.

  • Please draw the structure of water showing all lone pairs?
  • Draw acetic acid and its dissociation in water?
  • Draw all stereoisomers for the following molecule?
  • Draw (R)-3-methyl-pentan-2-ol?


This plugin adopts the same license that Moodle does.  The MarvinJS is available from Chemaxon.


This plugin was developed by Carl LeBlond at the Indiana University of Pennsylvania (IUP).  Neither IUP or Carl LeBlond are affiliated with Chemaxon.


This plugin requires MarvinJS from Chemaxon which can be downloaded here.  Download the full package and install it at your web servers root directory.

This plugin also requires openbabel.  On Ubuntu you can install with "sudo apt-get install openbabel".


Example are included in Moodle xml format in the examples folder.


This plugin is part of set EasyOChem.


Screenshot #0


Carl LeBlond (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Fri, Sep 5, 2014, 5:12 AM
    Thanks for sharing this plugin with the community. Please follow the recommendation raised by the plugin check tool and provide a screenshot that illustrates the question type in action. We plan to make use of these screenshots in the future. Thanks.

    Some CSS styles in your plugin do not have specific selectors (like .resizable) and may eventually affect other parts of Moodle as all CSS files from all components are concatenated. Please fix it to make sure the selector applies to the scope of your plugin only.

    Please note that the command argument passed to functions like proc_open() should be sanitized by something like escapeshellarg() in order to prevent eventual (security related) issues or problems caused by misconfiguration of the plugin.

    With the hope this would be fixed soon, you are cleared to land now. Welcome to the Plugins directory.
  • Sat, Sep 6, 2014, 8:50 AM
    David - I fixed the css specificity as you suggested, santized proc_open, tested and then uploaded new version. Thanks for your input!
  • Wed, Sep 2, 2015, 4:20 PM
    Hi Carl, I just wanted to know for what exactly purpose the OpenBabel installation is required.
    I had an instance where I did not install OpenBabel and one where I installed it and I could not determine any differences.
    Could you please explain the need for it?
  • Wed, Sep 2, 2015, 8:03 PM
    Hi Kathrin - MarvinJS does not natively convert its structures to smiles, so openbabel is used to do the mdlmol file to smiles conversion. Without openbabel all answers will appear as correct.
  • Wed, Sep 2, 2015, 8:36 PM
    Hi Carl, thanks for your answer! smile
  • Tue, Apr 25, 2017, 3:32 PM
    Hi, as Organic chemistry teacher, I am interested in this plugin. However, its web-site url is not working...any help, please ?
  • Sun, Feb 11, 2018, 3:55 PM
    I think it got pulled down sad
  • Tue, Oct 6, 2020, 3:33 AM
    Hi, Is there any plans to update this plugin to version 3.8 / 3.9 / 4.0?
  • Fri, Mar 26, 2021, 4:13 AM
  • Fri, Mar 26, 2021, 4:18 AM
Please login to post comments