Closed astrofrog closed 4 years ago
Falling back to https://unpkg.com/ for bqplot-image-gl@^0.3.0 loader.js:78 Falling back to https://unpkg.com/ for bqplot-image-gl@^0.2.0 loader.js:78
From this, I guess we have not updated versions in all the components. For instance in https://github.com/glue-viz/bqplot-image-gl/blob/2fd62baa6d8713279a58a7863e104a8f1390352c/js/lib/BrushEllipseSelectorModel.js#L6
We shouldn't hard code the version number, but take it from package.json (my fault btw)
Still seems to be an issue...
The problem is our embed.js didn't export all modules (fix is coming)
But I wanted to be able to test this locally, for the archive, to test a js embed module before releasing you can do (from the root of the project):
$ mkdir examples/voila
$ ln js/dist/index.js examples/voila/bqplot-image-gl.js
$ voila examples/brush-ellipse.ipynb --autoreload=True --no-browser --VoilaConfiguration.file_whitelist="['.*\.(png|jpg|gif|svg|js)']"
I set up a minimal Python 3.8 environment with:
If I then execute the following notebook:
https://gist.github.com/astrofrog/45eab0b3b978b7fd4c35a7520e97220a
using
jupyter notebook basic.ipynb
, everything works fine. However, if I dovoila basic.ipynb
the figure doesn't appear and I get the following errors in the js console: