My experience with Escher is limited to reading the docs and looking at the
sources, but it seems to be related to loading the file (or it's content):
function loadfile(filename)
if isfile(filename)
try
ui = include(filename)
if isa(ui, Function)
return ui
else
warn("$filename did not return a function")
return (w) -> Elem(:p, string(
filename, " did not return a UI function"
))
end
catch err
bt = backtrace()
return (win) -> Elem(:pre, sprint() do io
showerror(io, err)
Base.show_backtrace(io, bt)
end)
end
else
return (w) -> Elem(:p, string(
filename, " could not be found."
))
end
end
in https://github.com/shashi/Escher.jl/blob/master/src/cli/serve.jl
So maybe make sure the example files are accessible (readable)?
You can use the usual communication paths: a new issue in GitHub or
StackOverflow. Also, check if there's a Gitter channel for Escher.
marți, 1 noiembrie 2016, 09:38:11 UTC+2, Reuben Brooks a scris:
>
> When I try to run the examples or basic hello.jl file in Escher, always
> get this in browser: ".../Escher/examples/hello.jl did not return a UI
> function"
>
> I don't see any issues filed on github with this, suspect it's something
> on my end. What would be the appropriate channel for me to get some help on
> this?
>
> On Tuesday, November 1, 2016 at 1:10:18 AM UTC-5, Adrian Salceanu wrote:
>>
>> Sounds like the answer is https://github.com/shashi/Escher.jl
>>
>> It was built exactly for your use case and it's actually inspired by Elm
>>
>>
>>
>> marți, 1 noiembrie 2016, 06:08:01 UTC+2, Reuben Brooks a scris:
>>>
>>> Context: I love julia, and I've never built any kind of webapp. Most of
>>> my programming experience is in Mathematica and Julia...hacking things
>>> together (poorly) in Python when nothing else works.
>>>
>>> Problem: I have a script / notebook in julia that pulls data from
>>> sources, analyzes it, builds fancy plots, and has lots of nice information.
>>> Now I want to build a basic webapp that will allow me to access this
>>> information anywhere, anytime (will be updated regularly).
>>>
>>> Question 1: is there a julia package that suits my needs well, or should
>>> I look at using some other fronted to create the frontend? Elm intrigues
>>> me, as much for the learning as for the actual solution.
>>>
>>> Bottom line: I don't know enough about what I'm wading into to choose
>>> wisely. What does the community suggest?
>>>
>>