Deploying the web app

Deploying the web app

Interact works with the following frontends:

Jupyter notebook/lab and Juno

Simply use display:

using Interact
ui = button()

Note that using Interact in Jupyter Lab requires installing an extension first:

cd(Pkg.dir("WebIO", "assets"))
;jupyter labextension install webio
;jupyter labextension enable webio/jupyterlab_entry

Electron window

To deploy the app as a standalone Electron window, one would use Blink.jl:

using Interact, Blink
w = Window()
body!(w, ui);


The app can also be served in a webpage:

using Interact, Mux
WebIO.webio_serve(page("/", req -> ui), rand(8000:9000)) # serve on a random port