mariobuikhuizen / voila-embed

Embed jupyter widgets in existing websites
Other
52 stars 7 forks source link

location requirement of voila_embed.js #11

Closed havok2063 closed 4 years ago

havok2063 commented 4 years ago

@mariobuikhuizen Is there a strict requirement that the voila_embed.js live where the Voila server is run. We've found in order to have our front-end properly use voila_embed.js it needed to coexist at the directory location where the Voila server was running. I basically had to create a symlink to the real location. e.g. <script src="static/js/voila-embed.js"></script> actually points to ...voila-embed/example_site/voila-embed.js. I've tried moving the embed js file directly into our static folder but that the notebook embedding didn't seem to work after that.

havok2063 commented 4 years ago

Actually, I think this is no longer an issue. Moving the voila_embed.js file seems to work fine.