bokehmol provides custom extensions that help plotting molecules with the Bokeh library.
It currently provides hover tools that can depict molecules on-the-fly using SMILES: no need to pre-generate the depictions and store them in memory anymore! Everything is rendered client-side in the browser so you don't even need to install rdkit in your Python environment.
![image](https://private-user-images.githubusercontent.com/27850535/255046667-e33c4185-301a-477a-9a6b-fea2939ad540.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTA1NzQsIm5iZiI6MTczOTIxMDI3NCwicGF0aCI6Ii8yNzg1MDUzNS8yNTUwNDY2NjctZTMzYzQxODUtMzAxYS00NzdhLTlhNmItZmVhMjkzOWFkNTQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE3NTc1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0MWJhNGM4MTA2Nzk4YzgyNTQ4Zjk3ODc0NThjMDE5ZDk0YTZmZTJiYTUyYWZhNTIwZmE2NzY2NjdkMzJmYWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.V1zsVKEBcAtiGwZcXMKIQHm2p-vvIX620HEvdYzIFUw)
Bokehmol only requires bokeh as a dependency. You can install it with:
pip install bokehmol
Some examples on how to use the library here
Feature requests or questions on how to use should be posted here
Bug tracker 🐞