# Latest

**URL:** https://discourse.julialang.org/latest.md?page=945

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 946

---

## [VS Code JuliaSyntax Error from Startup.jl](https://discourse.julialang.org/t/vs-code-juliasyntax-error-from-startup-jl/86166)

<div class="topic-metadata">

**Author:** [@nosewitz](https://discourse.julialang.org/u/nosewitz)\
**Replies:** 0\
**Last updated:** [August 23, 2022, 1:01am UTC](https://discourse.julialang.org/t/vs-code-juliasyntax-error-from-startup-jl/86166 "2022-08-23T01:01:57Z")

</div>

After messing about with my startup.jl file, running a Julia session in VS code threw the error pictured below I tested this and it’s caused by enable\_in\_core!(). This behavior is strictly in VSC and not the REPL, since …

---

## [API choice: \`inversePredict(mod,Xnew)\` vs \`predict(mod,Xnew;inv=true)\`?](https://discourse.julialang.org/t/api-choice-inversepredict-mod-xnew-vs-predict-mod-xnew-inv-true/86123)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [August 23, 2022, 12:01am UTC](https://discourse.julialang.org/t/api-choice-inversepredict-mod-xnew-vs-predict-mod-xnew-inv-true/86123 "2022-08-23T00:01:22Z")

</div>

For a ML library, which would be the arguments in favour to use a new specific function name for the inverse prediction for a model (e.g. a zero-mean/unit variance scaler), something like inversePrediction(mod,Xnew), and…

---

## [Extremely slow OLS simulation \>1h](https://discourse.julialang.org/t/extremely-slow-ols-simulation-1h/86096)

<div class="topic-metadata">

**Author:** [@Mouad](https://discourse.julialang.org/u/Mouad)\
**Replies:** 6\
**Last updated:** [August 22, 2022, 11:29pm UTC](https://discourse.julialang.org/t/extremely-slow-ols-simulation-1h/86096 "2022-08-22T23:29:25Z")

</div>

Hello, I am new to Julia so I put this in this topic instead of others that might be more relevant. I am trying to run a standard OLS simulation. That is, I generate a data frame, run an OLS, repeat for an N number of…

---

## [Video annotation software for Flux project](https://discourse.julialang.org/t/video-annotation-software-for-flux-project/85545)

<div class="topic-metadata">

**Author:** [@franfram](https://discourse.julialang.org/u/franfram)\
**Replies:** 4\
**Last updated:** [August 22, 2022, 11:24pm UTC](https://discourse.julialang.org/t/video-annotation-software-for-flux-project/85545 "2022-08-22T23:24:35Z")

</div>

Hello everyone, For my PhD, I’m working on a accelerometer decoder using flux. But first I need to annotate videos of animal behaviour, and I’d like to have some software or julia code that allows me te predefine the cl…

---

## [PackageCompiler : target GLIBC version when creating an app?](https://discourse.julialang.org/t/packagecompiler-target-glibc-version-when-creating-an-app/86159)

<div class="topic-metadata">

**Author:** [@Gauf](https://discourse.julialang.org/u/Gauf)\
**Replies:** 0\
**Last updated:** [August 22, 2022, 10:49pm UTC](https://discourse.julialang.org/t/packagecompiler-target-glibc-version-when-creating-an-app/86159 "2022-08-22T22:49:51Z")

</div>

I’ve recently created an Ubuntu VM with the latest LTS release (22.04 – jammy) to build and distribute relocatable apps. After transferring an app to another machine with an older Ubuntu install, I get this error: ./my…

---

## [Can't access a live workspace for Julia when using integrated notebooks in VS Code](https://discourse.julialang.org/t/cant-access-a-live-workspace-for-julia-when-using-integrated-notebooks-in-vs-code/82008)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 5\
**Last updated:** [August 22, 2022, 10:26pm UTC](https://discourse.julialang.org/t/cant-access-a-live-workspace-for-julia-when-using-integrated-notebooks-in-vs-code/82008 "2022-08-22T22:26:49Z")

</div>

Well, the title kind of says it. According to the docs for Vs Code Julia support it should be possible to see the Julia workspace while using Notebooks. I can’t get this to work and I see no way to do so. I am using t…

---

## [Track all variables within Julia DifferentialEquations.jl](https://discourse.julialang.org/t/track-all-variables-within-julia-differentialequations-jl/86100)

<div class="topic-metadata">

**Author:** [@t-anton](https://discourse.julialang.org/u/t-anton)\
**Replies:** 6\
**Last updated:** [August 22, 2022, 9:54pm UTC](https://discourse.julialang.org/t/track-all-variables-within-julia-differentialequations-jl/86100 "2022-08-22T21:54:29Z")

</div>

Hi All, I want to track all variables within Julia’s DifferentialEquation’s efficiently (easy and fast). My current solution, on a test function, is: function test2(du,u,p,t) global i global Out\_values …

---

## [Scrollable plots](https://discourse.julialang.org/t/scrollable-plots/85871)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 5\
**Last updated:** [August 22, 2022, 9:42pm UTC](https://discourse.julialang.org/t/scrollable-plots/85871 "2022-08-22T21:42:05Z")

</div>

In this stack overflow post there is a Python solution to produce scrollable plots, which I could not find in Julia plotting packages. Tried running the SO code below but got stuck at the def update(val): part: using P…

---

## [Nonlinear programming function calls involving sine and cosine](https://discourse.julialang.org/t/nonlinear-programming-function-calls-involving-sine-and-cosine/86153)

<div class="topic-metadata">

**Author:** [@sky](https://discourse.julialang.org/u/sky)\
**Replies:** 1\
**Last updated:** [August 22, 2022, 9:22pm UTC](https://discourse.julialang.org/t/nonlinear-programming-function-calls-involving-sine-and-cosine/86153 "2022-08-22T21:22:01Z")

</div>

Dear all, I’m trying to build a nonlinear optimization problem and solve it by Ipopt. I have the following code using MosekTools using JuMP using Ipopt model = Model(Ipopt.Optimizer) @variable(model,x1) cons = \[ (x…

---

## [PyPlot woes in 1.8.0 Intel Mac](https://discourse.julialang.org/t/pyplot-woes-in-1-8-0-intel-mac/86138)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 8\
**Last updated:** [August 22, 2022, 8:30pm UTC](https://discourse.julialang.org/t/pyplot-woes-in-1-8-0-intel-mac/86138 "2022-08-22T20:30:27Z")

</div>

Running lates MAC OS. When I try to use PyPlot I get this \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "\]?" f…

---

## [How to test whether evaluating an expression produces no output at all?](https://discourse.julialang.org/t/how-to-test-whether-evaluating-an-expression-produces-no-output-at-all/86102)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 3\
**Last updated:** [August 22, 2022, 7:58pm UTC](https://discourse.julialang.org/t/how-to-test-whether-evaluating-an-expression-produces-no-output-at-all/86102 "2022-08-22T19:58:08Z")

</div>

@test\_logs tests for log output @test\_nowarn tests that stdout is empty (and, despite the name, isn’t meant strictly for the @warn macro) How to test whether stdout is empty as well? How to test whether an expression…

---

## [Threads not working in julia 1.8.0](https://discourse.julialang.org/t/threads-not-working-in-julia-1-8-0/86083)

<div class="topic-metadata">

**Author:** [@mastrof](https://discourse.julialang.org/u/mastrof)\
**Replies:** 6\
**Last updated:** [August 22, 2022, 7:33pm UTC](https://discourse.julialang.org/t/threads-not-working-in-julia-1-8-0/86083 "2022-08-22T19:33:57Z")

</div>

Just updated to 1.8.0 on my laptop and found out multithreading is not working as expected: loops never leave master thread The basic example code behaves differently on 1.8.0 compared to my 1.6.2 installation a = zero…

---

## [Align axes to each other with Makie.jl](https://discourse.julialang.org/t/align-axes-to-each-other-with-makie-jl/86124)

<div class="topic-metadata">

**Author:** [@nvhoang.3110](https://discourse.julialang.org/u/nvhoang.3110)\
**Replies:** 6\
**Last updated:** [August 22, 2022, 6:18pm UTC](https://discourse.julialang.org/t/align-axes-to-each-other-with-makie-jl/86124 "2022-08-22T18:18:08Z")

</div>

Hello everyone. I’m having trouble with aligning axes of two plots with different scales. Below is a reproducible example: begin fig = Figure(resolution = (1920, 1080)); update\_theme!(fontsize = 24); axis = …

---

## [Changing default parameters](https://discourse.julialang.org/t/changing-default-parameters/86148)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [August 22, 2022, 5:19pm UTC](https://discourse.julialang.org/t/changing-default-parameters/86148 "2022-08-22T17:19:28Z")

</div>

How can I change the default parameters of a function? I have this code: using Plots x=0:0.01:100 y1=sin.(x) p = plot(x,y1, width=2, xtickfontsize=12, ytickfontsize=12, legendfontsize=12, legend=false) I want to be …

---

## [Behavior of \`@time\` when using \`@spawn\` (in Julia 1.8 highlights blog post)](https://discourse.julialang.org/t/behavior-of-time-when-using-spawn-in-julia-1-8-highlights-blog-post/86125)

<div class="topic-metadata">

**Author:** [@pierre-haessig](https://discourse.julialang.org/u/pierre-haessig)\
**Replies:** 2\
**Last updated:** [August 22, 2022, 4:58pm UTC](https://discourse.julialang.org/t/behavior-of-time-when-using-spawn-in-julia-1-8-highlights-blog-post/86125 "2022-08-22T16:58:16Z")

</div>

Hi, I was just reading the Julia 1.8 highlights blog post and I have a question about multithreading (a Julia feature I have never used). In the section about the new default scheduler for @threads, there is the follow…

---

## [macOS with ARM](https://discourse.julialang.org/t/macos-with-arm/86129)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [August 22, 2022, 4:26pm UTC](https://discourse.julialang.org/t/macos-with-arm/86129 "2022-08-22T16:26:45Z")

</div>

Are complex packages that use for example NLopt, Makie, PackageCompiler etc expected to work on macOS with the native ARM version of Julia, or is it more likely that they work with Rosetta? Is it possible to add continu…

---

## [Test on skipmissing failing but on collect(skipmissing) passing](https://discourse.julialang.org/t/test-on-skipmissing-failing-but-on-collect-skipmissing-passing/86140)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [August 22, 2022, 4:09pm UTC](https://discourse.julialang.org/t/test-on-skipmissing-failing-but-on-collect-skipmissing-passing/86140 "2022-08-22T16:09:44Z")

</div>

This is odd. Why ? julia\> using Test julia\> y = \[1.1 1.0 0.0 missing 8.0 2.0 0.952381 1.0 1.0 2.0 7.0 0.0 1.0 0.0 1.0\] 3×5 Matrix{Union{Missing, Float64}}: 1…

---

## [Value function backward induction](https://discourse.julialang.org/t/value-function-backward-induction/45097)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 23\
**Last updated:** [August 22, 2020, 4:57pm UTC](https://discourse.julialang.org/t/value-function-backward-induction/45097 "2020-08-22T16:57:21Z")

</div>

Hello guys, I am doing heterogeneous agents macro in olg. I have a model where the agents have a lot of choices at each point in time, and its becoming very slow to solve, especially when I increase the number of points…

---

## [TimeZone from latitude/longtitude](https://discourse.julialang.org/t/timezone-from-latitude-longtitude/55129)

<div class="topic-metadata">

**Author:** [@lubo](https://discourse.julialang.org/u/lubo)\
**Replies:** 7\
**Last updated:** [August 22, 2022, 3:50pm UTC](https://discourse.julialang.org/t/timezone-from-latitude-longtitude/55129 "2022-08-22T15:50:44Z")

</div>

Hi, maybe very silly question, but can not find solution so far. I have gps coordinates of the city, ie place in Stockholm/Sweden: \[59.3725,18.0\]. I would like to get TimeZone for this place: ‘Europe/Stockholm’ In py…

---

## [Julia equivalent to Python's id function](https://discourse.julialang.org/t/julia-equivalent-to-pythons-id-function/86136)

<div class="topic-metadata">

**Author:** [@Frankiewaang](https://discourse.julialang.org/u/Frankiewaang)\
**Replies:** 3\
**Last updated:** [August 22, 2022, 2:58pm UTC](https://discourse.julialang.org/t/julia-equivalent-to-pythons-id-function/86136 "2022-08-22T14:58:08Z")

</div>

Hi, guys Is there a Julia build-in function existed that has the same functionality as python’s id function?

---

## [RCall and problems installing R-packages](https://discourse.julialang.org/t/rcall-and-problems-installing-r-packages/86135)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 1\
**Last updated:** [August 22, 2022, 1:44pm UTC](https://discourse.julialang.org/t/rcall-and-problems-installing-r-packages/86135 "2022-08-22T13:44:40Z")

</div>

I have installed R to use RCall within Julia. Unfortunately, I am having trouble installing the R-packages that I need to use. I have installed R at the directory C:\\Users\\12345\\AppData\\Local\\Programs\\R\\ But when I try…

---

## [Julia DynamicalSystems package for calculating Recurrence Matrices](https://discourse.julialang.org/t/julia-dynamicalsystems-package-for-calculating-recurrence-matrices/85964)

<div class="topic-metadata">

**Author:** [@Zahra](https://discourse.julialang.org/u/Zahra)\
**Replies:** 1\
**Last updated:** [August 22, 2022, 1:23pm UTC](https://discourse.julialang.org/t/julia-dynamicalsystems-package-for-calculating-recurrence-matrices/85964 "2022-08-22T13:23:52Z")

</div>

I don’t understand what Julia’s “RecurrenceMatrices” is doing. I give a vector of two float numbers \[1.041; 1.066\] as the input, and I set “epsilon = 0.01”, and in the output, it says that these two nodes are near. Am I …

---

## [Cannot find 'discourse.julialang.org' when using the Discourse mobile app](https://discourse.julialang.org/t/cannot-find-discourse-julialang-org-when-using-the-discourse-mobile-app/7375)

<div class="topic-metadata">

**Author:** [@lucatrv](https://discourse.julialang.org/u/lucatrv)\
**Replies:** 4\
**Last updated:** [November 30, 2017, 9:11pm UTC](https://discourse.julialang.org/t/cannot-find-discourse-julialang-org-when-using-the-discourse-mobile-app/7375 "2017-11-30T21:11:56Z")

</div>

I am using the Discourse mobile app on Android 6.0 successfully with a few sites, however when I try to connect to discourse.julialang.org I get the “was not found” error. I found some references online to the “was not …

---

## [Is this a bug? Nested Functions and NLsolve](https://discourse.julialang.org/t/is-this-a-bug-nested-functions-and-nlsolve/86085)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 20\
**Last updated:** [August 22, 2022, 10:53am UTC](https://discourse.julialang.org/t/is-this-a-bug-nested-functions-and-nlsolve/86085 "2022-08-22T10:53:55Z")

</div>

I was using NLsolve and couldn’t get type stability in my model no matter how. I’m new to Julia, so I thought I wasn’t fully understanding how type stability works. But I think this is part of a bug that dates from at le…

---

## [Recurrent struct hierarchy](https://discourse.julialang.org/t/recurrent-struct-hierarchy/86094)

<div class="topic-metadata">

**Author:** [@tfinke](https://discourse.julialang.org/u/tfinke)\
**Replies:** 2\
**Last updated:** [August 22, 2022, 11:32am UTC](https://discourse.julialang.org/t/recurrent-struct-hierarchy/86094 "2022-08-22T11:32:54Z")

</div>

Hi all, I am trying to create a struct that contains a substruct at different levels. An instance foo of that struct should have the following layout: foo.a foo.b foo.x.a foo.x.b foo.y.a foo.y.b foo.z So foo.x and fo…

---

## [Vector, Row Column and Array](https://discourse.julialang.org/t/vector-row-column-and-array/86095)

<div class="topic-metadata">

**Author:** [@tfinke](https://discourse.julialang.org/u/tfinke)\
**Replies:** 2\
**Last updated:** [August 22, 2022, 10:44am UTC](https://discourse.julialang.org/t/vector-row-column-and-array/86095 "2022-08-22T10:44:02Z")

</div>

Hi all, suppose the following code: a = \[2, 3, 4\] z = \[5, 7, 9\] b = a .+ 1 c = (a .+ 1)' d = a' .+ 1 s = (a' .+ 1) \* z t = (a .+ 1)' \* z u = b' \* z v = c \* z w = d \* z The last five lines all calculate the dot produ…

---

## [How to do a OneSampleZTest for the proportion instead of the mean?](https://discourse.julialang.org/t/how-to-do-a-onesampleztest-for-the-proportion-instead-of-the-mean/85779)

<div class="topic-metadata">

**Author:** [@floxo115](https://discourse.julialang.org/u/floxo115)\
**Replies:** 1\
**Last updated:** [August 22, 2022, 10:40am UTC](https://discourse.julialang.org/t/how-to-do-a-onesampleztest-for-the-proportion-instead-of-the-mean/85779 "2022-08-22T10:40:10Z")

</div>

I am playing around with the HypothesisTests package and wanted to do a OneSampleZTest but with the population proportion instead of the populatin mean as the parameter of interest. But I really don’t find anyting in the…

---

## [Comonicon 1.0 release: probably the best CLI generator in Julia](https://discourse.julialang.org/t/comonicon-1-0-release-probably-the-best-cli-generator-in-julia/86122)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 0\
**Last updated:** [August 22, 2022, 9:38am UTC](https://discourse.julialang.org/t/comonicon-1-0-release-probably-the-best-cli-generator-in-julia/86122 "2022-08-22T09:38:05Z")

</div>

The Comonicon package has been stable for quite a while, and after 64 versions including 12 minor versions and 18 patch versions for the last minor version (v0.12), I believe its public interface and APIs have reached a …

---

## [How to load ScaLAPACK library from Intel MKL (library inter-dependencies)?](https://discourse.julialang.org/t/how-to-load-scalapack-library-from-intel-mkl-library-inter-dependencies/81239)

<div class="topic-metadata">

**Author:** [@Sideboard](https://discourse.julialang.org/u/Sideboard)\
**Replies:** 4\
**Last updated:** [August 22, 2022, 8:23am UTC](https://discourse.julialang.org/t/how-to-load-scalapack-library-from-intel-mkl-library-inter-dependencies/81239 "2022-08-22T08:23:42Z")

</div>

Hi, I am trying to use ScaLAPACK with @ccall to solve a linear system with QR decomposition. On my laptop it works fine with OpenMPI and directly searching for the default ScaLAPACK library: const libscalapack = Base.L…

---

## [Julia REPL crashes when downloading artifacts for sysimage](https://discourse.julialang.org/t/julia-repl-crashes-when-downloading-artifacts-for-sysimage/86121)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 0\
**Last updated:** [August 22, 2022, 7:42am UTC](https://discourse.julialang.org/t/julia-repl-crashes-when-downloading-artifacts-for-sysimage/86121 "2022-08-22T07:42:24Z")

</div>

I compiled a custom sysimage for a project (Julia 1.8.0) using the julia-vscode build command. On the first start MKL artifacts have to be downloaded which crashes the REPL in vscode (julia-vscode 1.7.5) after a while. I…

[Previous page](https://discourse.julialang.org/latest.md?page=944)

[Next page](https://discourse.julialang.org/latest.md?page=946)
