probcomp/iventure

Vizgpm not loading

Opened this issue · 2 comments

Summary
I have not been able use VizGPM graphic elements recently in any bayeslite/iventure notebook. I tried notebooks from a few different machines, on AWS and locally.

Reproducing the issue
The issue can be reproduced by running https://github.com/probcomp/notebook/blob/master/tutorials/gapminder-exploratory.ipynb from our tutorial notebook set. The following occurs:

  • The code %vizgpm inline (in cell 2) produces a blank output rather than a message reporting that VizGPM has loaded.
  • The interactive VizGPM graphics come up blank when they are called after that.

Why it may be occurring
I wonder if there is a connection issue to the probcomp2 server required in the following line of code. I wonder if this is a result of a restriction on connections to CSAIL machines from off of campus since MIT updated its security policies:

$.getScript('https://probcomp-2.csail.mit.edu/vizgpm/vizgpm.js', function() {

If so, then a solution may be to make the same VisGPM library available from another server or change the connection properties of probcomp2.csail.mit.edu. Another part of the solution may be to raise a python Error if the VizGPM library does not load, so that our tutorial notebooks do not fail silently.

fsaad commented

The probcomp-2.csail.mit.edu server is offline at the moment. I am coordinating with TIG to get it back online, after which vizgpm will be available again. Going forward we should migrate vizgpm.js to a more stable location, perhaps probcomp.csail.mit.edu. In addition we should consider distributing the compiled JavaScript with iventure, rather than retrieve dynamically from a URL.

fsaad commented

The server is back online:
https://probcomp-2.csail.mit.edu/vizgpm/vizgpm.js

I will look into the option of shipping vizgpm.js with iventure.