Closed phiweger closed 1 year ago
Make sure you are using the latest version (2.0.0.post2). After upgrading, clear all outputs, save, refresh the page, and restart the kernel before testing.
I would suggest, take care of the import and window global manually, as it worked fine in webpacl/babel environment.
import('3dmol/build/3Dmol-nojquery.js').then(($3Dmol) => { console.log('$3Dmol') console.log($3Dmol) window.$3Dmol = $3Dmol })
You should not have to do that if you have the latest version. If you are running the latest version, I need to understand what the problem is so I can fix it (can't replicate here).
Updating py3Dmol solved the problem, thank you @dkoes for the fast help!
Tryin to run the example code in a new jupyter installation fails:
Thanks for looking into this!