Hi,
When I run below script in VSCode on Windows:
using CmdStan, Statistics
bm = "
data {
int<lower=1> N;
int<lower=0,upper=1> y[N];
}
parameters {
real<lower=0,upper=1> theta;
}
model {
theta ~ beta(1,1);
y ~ bernoulli(theta);
}
";
data = Dict("N" => 10, "y" => [0, 1, 0, 1, 0, 0, 0, 0, 0, 1])
sm = Stanmodel(name="bernoulli", model=bm, printsummary=false)
sm |> display
rc, samples, cnames = stan(sm, data; summary=false, CmdStanDir=CMDSTAN_HOME);
nt = CmdStan.convert_a3d(samples, cnames, Val(:namedtuple))
mean(nt.theta, dims=1) |> display
then, after the call to stan()
, screen make-up characters are showing up, e.g. in https://user-images.githubusercontent.com/29783567/111507734-f8ea4680-8718-11eb-9a43-33a344851bfb.png .
A typical sequence would be: ā<-[?2004l<-0m<-0m(tree depth__ = [1.0 ā¦ā where the last part is correct and is the beginning of the nt
NamedTuple.
I suggested to switch to Powershell (which has helped in the past, but in this case it doesnāt seem to).
Is this a VSCode issue? Is there another development setup with a separate Powershell that maybe works?
I donāt have access to a Windows machine nor do I normally work in VSCode but if I bring it up on macOS it works fine.
Thanks for your help!