Ketcher is an open-source web-based chemical structure editor available on https://lifescience.opensource.epam.com/ketcher/
Dash Ketcher is a Dash component library, allowing to use Ketcher in Dash.
Currently, interactions include:
- output the current drawn structure as a SMILES string,
- draw the structure corresponding to a provided SMILES string.
Other functionalities will be implemented later.
All the commands below are given for a regular python installation on Linux-based systems, and can be adapted to other systems or conda-based installation.
-
Create a local environment
This step is optional but highly recommended to avoid conflicts with the base environment.
$ virtualenv venv $ . venv/bin/activateNote: venv\Scripts\activate for windows
-
Install dash_ketcher
Dash Ketcher can be installed from PyPI or Github repository.
-
From PyPi
$ pip install dash_ketcher -
From GitHub
$ pip install git+https://dash_ketcher
-
-
Download Ketcher
Download Ketcher's standalone version >= 3.2 and add it to your Dash project, e.g. in assets/
-
Adapt & use the code
-
Using the provided exemple
- Adapt
usage.pywith your local settings, notably with the path to your local Ketcher standalone - Run
python usage.py - Visit http://localhost:8050 in your web browser to test it
- Adapt
-
Using your own code or Dash app
Import dash_ketcher and use it as shown in
usage.py
-
Everyone is welcome to contribute and send pull requests. This package was initially generated using the dash-component-boilerplate
2025-present Philippe Gantzer