Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 1.78 KB

NOTES.md

File metadata and controls

19 lines (15 loc) · 1.78 KB

Technical specification

Known problems

  • Uncaught TypeError: k is not a function with execution using webppl.run(): FIXED
  • print() doesn't work as expected (opens print dialog instead of showing the values); you can use display() instead
  • Infer statements don't show anything (they should be wrapped either with viz() or display())

#TODOs:

  • Activate plugin only when WebPPL file is opened (to be able to do so, WebPPL specific language grammar should be provided first)
  • Add npm dependencies to WebPPL to support completely offline workflow
  • Investigate on how to make most of the HTML static (look at the showError implementation for this) and only reload portion with the script and not the entire page ** or maybe use string replacement on index.html template
  • Only rerender html preview when the actual script is changed (currently this is bound to the editor generally, so no mather which file you change, the preview gets updated) ** Alternatively: close the preview when leaving the script (might be unuseful when we import scripts in the main script)