probcomp / GenExperimental.jl

Featherweight embedded probabilistic programming language and compositional inference programming library
MIT License
17 stars 2 forks source link

Replace matplotlib rendering with better interface #11

Closed marcoct closed 7 years ago

marcoct commented 7 years ago

https://github.com/JuliaGraphics/Luxor.jl

marcoct commented 7 years ago

Also see https://github.com/JuliaGraphics/Gtk.jl (for future interfaces)

marcoct commented 7 years ago

https://github.com/JuliaGL

marcoct commented 7 years ago

Done. Using D3 now, with Javascript cells (with syntax highlighting) in the notebook. The JS cell registers a JS render function that takes a trace and a DOM target element (e.g. a div) and renders the trace into that element. The registration takes a name for the renderer, which the Julia code uses to refer to it. Communication b/w Julia and JS is done using Jupyter's notebook's provide communication channel for widgets (communication_manager)

marcoct commented 7 years ago

Also consider writing a WebGL renderer, that runs in the notebook, for a future version.