Hello,
I'm a newbie in Julia but I'm very interested to use it in scientific / 
numeric application with some minimal User Interface, and I think that 
Escher is great for this scope, useful also for remote computation.

Unfortunately I've some problem running simple demos (I use win32 Julia in 
Win7 with latest Firefox)

Trying to understand use of buttons, I've found example *form.jl *included 
in Escher, but it display at the bottom of page Dict{Any,Any}() and button 
doesn't work.

Moreover I've extracted from *Reactive Programming Guide* (*reactive.jl* 
doc included in Escher) a simple hue example (attached), but doesn't work 
in original version because julia cannot found consume()
using Escher
using Color


xt = Input(0)

with_hue(hue, tile=size(4em, 4em, empty)) =
    fillcolor(HSV(hue, 0.6, 0.6), tile)

function main(window)
    # Load HTML dependencies related to widgets
    push!(window.assets, "widgets")
    
    lift(xt) do x
        slider_and_huebox(x) = vbox(
            subscribe(slider(0:360), xt),
            "The current hue is: $x",
            with_hue(x)
        )
        
        consume(slider_and_huebox,xt)
    end
end

(I've found a consume()in Julia in file *task.jl*, but it has a completely 
different signature and use)


Maybe I made trivial mistakes, but I cannot found right solutions.
Someone can help me?

Many thanks in advance

Leonardo

Attachment: hue_wrong.jl
Description: Binary data

Attachment: hue_work.jl
Description: Binary data

Reply via email to