A wrapper for EPAM's ketcher
Currently you have to build it locally
with npm run buld
and you can then copy the plotly_dash_ketcher
directory
in your app.
You NEED to use React 18. You can either set the environment variable REACT_VERSION=18.2.0 before running your app, or inside the app call dash._dash_renderer._set_react_version("18.2.0"). (this is still experimental in dash be careful)
pip install plotly_dash_ketcher
-
Create a new python environment:
python -m venv venv . venv/bin/activate
Note: venv\Scripts\activate for windows
-
Install python dependencies:
pip install -r requirements.txt
-
Install npm packages:
- Optional: use nvm to manage node version:
nvm install nvm use
- Install:
npm install
- Optional: use nvm to manage node version:
-
Build:
npm run build
If publish on npm:
npm build
npm publish
Alternatively, use the provided just commands:
- Create a Python environment from previous step 1 and install:
just install
- Build
just build
- Publish
just publish
- See all commands with
just -l