probmods / webppl-viz

Visualization for WebPPL
http://probmods.github.io/webppl-viz/
Other
14 stars 9 forks source link

Prevent print from being called when viz.marginals is called from command line #51

Closed SArehalli closed 8 years ago

SArehalli commented 8 years ago

Print is only defined when running in browser, but was always called in viz.marginals to label each plot. The plots are unlabeled, but can now be generated without exceptions being thrown.

longouyang commented 8 years ago

Ah, good call.

On the command line, we should probably just alias print to display, but this should work in the meantime.