grahamas
03/10/2023, 9:47 PMMonty Hall
03/11/2023, 11:59 PMaomame
03/12/2023, 3:25 AMari.agustiansa
03/13/2023, 9:00 AMinclude("MyModule.jl")
using .MyModule
and the code running well.
But if change code in file MyModule.jl
, Controller not running as expected.
How to make it work properly?kungfupanda007
03/14/2023, 6:35 AMMonty Hall
03/16/2023, 8:47 PMMonty Hall
03/17/2023, 4:25 AMCallError
03/18/2023, 11:18 AMSchighSchagh
03/19/2023, 6:43 PMMonty Hall
03/22/2023, 11:54 PMMonty Hall
03/23/2023, 1:10 AMNooji
03/24/2023, 4:24 PMFiles and Versions
. This is a copy of one of the original boilerplates from the genie framework 🙂
I ask this also because I have other apps where there is a delay between the styles being applieditsdfish
03/25/2023, 5:44 PMmodule App
using GenieFramework
using Distributions
function update(mu, sigma)
x = range(-5, 5, length=100)
y = pdf.(Normal(mu, sigma), x)
pdf_plot = PlotData(;x, y, mode="lines")
end
@genietools
@handlers begin
@in mu = 0.0
@in sigma = 0.0
@out pdf_plot = PlotData()
@onchange mu, sigma begin
update(mu, sigma)
end
end
@page("/", "app.jl.html")
end
app.jl.html
<h1>Default content</h1>
<div class="row">
<div class="col col-6 col-sm">
<p>mu</p>
<q-slider :min="-5" :step="-.1" v-model="mu"></q-slider>
</div>
<div class="col col-6 col-sm">
<p>sigma</p>
<q-slider :min="0" :max="5" :step=".1" v-model="sigma"></q-slider>
</div>
</div>
<div class="row">
<div class="col col-12 col-sm">
<p>awesome plot<br /></p>
<plotly :data="pdf_plot"></plotly>
</div>
</div>
What am I doing wrong?
I also have a somewhat different question. Suppose I want to run this code outside of the VSCode builder. What is the recommended way to organize the code and run a startup script?Monty Hall
03/26/2023, 1:28 AMgrahamas
03/26/2023, 7:49 AMDearRude
03/26/2023, 2:03 PMhtml
<div v-for="fil in filters">
<q-toggle v-model="fil['active']" :label="fil['name']" />
</div>
It works fine. However, I want my dynamic list to get updated whenever filters
changes.DearRude
03/26/2023, 7:22 PMUnion{Missing, String}
in my model and wanted to pass missing
. However, instead of inserting a null value, the string "missing" is inserted to database.itsdfish
03/27/2023, 10:18 PMkungfupanda007
03/28/2023, 10:51 AMitsdfish
03/29/2023, 8:20 PMDale
03/30/2023, 5:24 AMitsdfish
03/30/2023, 9:41 AM@handlers
block. For example,
@handlers begin
println("hello")
end
Does not print to the REPL. Is there a recommended workflow for debugging?Dale
03/30/2023, 5:47 PMDaveMacMahon
03/31/2023, 4:54 PMkungfupanda007
03/31/2023, 7:30 PMJesse
04/01/2023, 6:25 AMitsdfish
04/03/2023, 10:42 PMCarboxyl
04/06/2023, 3:47 AMdpshade22
04/08/2023, 1:24 AMDale
04/10/2023, 10:38 PMPlotData()
variable for a heatmap? The code below attempts this in two different ways, but neither attempt works
julia
# /dashboard.jl
slice = rand(84, 84)
image_viewer1 = PlotData(z=slice, plot="heatmap")
image_viewer2 = PlotData(slice, plot="heatmap")
# /ui.jl
plot(:image_viewer)
plot(:image_viewer2)
Error 1:
julia
MethodError: no method matching (Vector)(::Matrix{Float64})
Error 2:
julia
MethodError: no method matching StipplePlotly.Charts.PlotData(::Matrix{Float64}; plot="heatmap")