cheminfo / jsme

19 stars 5 forks source link

Embed JSME in Jupyterlab #28

Open scottwsides opened 4 years ago

scottwsides commented 4 years ago

Is there a way to embed the JSME editor in a jupyterlab notebook? I downloaded JSME and in my local browser, I can open the html files and they seem to work fine. When I do the same from my Jupyterlab file browser, it says I need to enable javascript in my browser. Is this a jupyterlab configuration issue (I have to go through a specific build step to enable ipywidgets for example) or... can I run JSME directly as javascript code? If so, I think I can use the Jupyterlab javascript cell magic... its just that I don't know enough javascript to be able to figure out what command to use. Thanks!

jsme-editor commented 3 years ago

https://github.com/lithium0003/JSME_ipywidget

scottwsides commented 3 years ago

Tried this out and it didnt work. I'm getting errors first about Javascript not finding require.

Then I tried:

%%HTML

then

%%HTML

and the require message goes away. Tnen inside the 'smiles_draw.ipynb' notebook I try

smiles=SmilesEditor() smiles

it simply says "Error displaying widget". However widgets are configured correctly because other ipywidgets are working

jsme-editor commented 3 years ago

I tried it on Ubuntu 20 using the Chromium browser and it worked perfectly. Sorry, I don't have much experience with Jupyter and I cannot help you much here. I would suggest to post a new issue in the JSME_ipywidget project.

scottwsides commented 3 years ago

panel and panel-chemistry seemed to work for me. I guess I'll move on Dr. Scott W Sides (303) 718-7028

On Thu, May 27, 2021 at 11:58 AM jsme-editor @.***> wrote:

I tried it on Ubuntu 20 using the Chromium browser and it worked perfectly. Sorry, I don't have much experience with Jupyter and I cannot help you much here. I would suggest to post a new issue in the JSME_ipywidget project.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cheminfo/jsme/issues/28#issuecomment-849828089, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADHTEK7Y7OZOMJH3XPGMZZLTP2B3PANCNFSM4ME6ZEPQ .