ipyvolume: Freezing embedded html

Hey maarten,

As of today, I get an error when trying to view my embedded ipyvolume html files (only if it was created with the dev version):

ReferenceError: define is not defined
https://unpkg.com/@jupyter-widgets/html-manager@*/dist/index.js
Line 1

Presumably this is caused by the commit of the CombinedCamera define/import?

This was created with the pip ipyvolume (version 0.3) and conda ipywidgets (version 0.6), and still works fine: https://chrisjsewell.github.io/ipyvolume_si_ech3.html

This was created with my dev ipyvolume (version 0.4 alpha) and pip ipywidgets (version 7.0), and no longer works: https://chrisjsewell.github.io/3d_atomic/converted/3D Atomic Visualisation_files/ivol_example1.html

How can I rectify this and is there a way I can ‘freeze’ the embedded html, such that this won’t happen again. I guess I need some .js files locally in the folder?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 31 (15 by maintainers)

Commits related to this issue

Most upvoted comments

I fully agree! I think we should move this discussion to ipywidgets, some of it should be fixed for 7.0 I think.

btw, embed_html never did this, but pylab.save does.