# Latest

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

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

**Page:** 875

---

## [Package precompilation error on Julia 1.8](https://discourse.julialang.org/t/package-precompilation-error-on-julia-1-8/89298)

<div class="topic-metadata">

**Author:** [@MatthijsCox](https://discourse.julialang.org/u/MatthijsCox)\
**Replies:** 5\
**Last updated:** [November 4, 2022, 10:07am UTC](https://discourse.julialang.org/t/package-precompilation-error-on-julia-1-8/89298 "2022-11-04T10:07:11Z")

</div>

Hi there, I have an internal company package that is working fine on previous Julia versions, but suddenly throws an error upon precompilation in julia 1.8. See error below. Any help or tips are much appreciated. It lo…

---

## [Flux and Octavian](https://discourse.julialang.org/t/flux-and-octavian/89770)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 10:06am UTC](https://discourse.julialang.org/t/flux-and-octavian/89770 "2022-11-04T10:06:51Z")

</div>

Does Flux use Octavian when run on cpu?

---

## [Parallel execution of a number of lines](https://discourse.julialang.org/t/parallel-execution-of-a-number-of-lines/89765)

<div class="topic-metadata">

**Author:** [@CeterisPartybus](https://discourse.julialang.org/u/CeterisPartybus)\
**Replies:** 2\
**Last updated:** [November 4, 2022, 9:52am UTC](https://discourse.julialang.org/t/parallel-execution-of-a-number-of-lines/89765 "2022-11-04T09:52:15Z")

</div>

Is there a way to run multiple lines of code in parallel on multiple threads? I am familiar with the @threads for loop. But I would like to tell Julia that some lines can be run in parallel instead of sequentially. To …

---

## [MLJ: how to read/interpret \`measure\` from evaluate](https://discourse.julialang.org/t/mlj-how-to-read-interpret-measure-from-evaluate/89689)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 9\
**Last updated:** [November 4, 2022, 9:21am UTC](https://discourse.julialang.org/t/mlj-how-to-read-interpret-measure-from-evaluate/89689 "2022-11-04T09:21:57Z")

</div>

In this toy example I know one config is overtraining: tree1 = EvoTreeClassifier(; nrounds = 10, eta = 0.1, max\_depth=5) tree2 = EvoTreeClassifier(; nrounds = 10, eta = 0.1, max\_depth=10) because I checked it via manu…

---

## [Add points to scatter plot by Mouse.down click using GLMakie](https://discourse.julialang.org/t/add-points-to-scatter-plot-by-mouse-down-click-using-glmakie/89740)

<div class="topic-metadata">

**Author:** [@mgalenb](https://discourse.julialang.org/u/mgalenb)\
**Replies:** 4\
**Last updated:** [November 4, 2022, 8:51am UTC](https://discourse.julialang.org/t/add-points-to-scatter-plot-by-mouse-down-click-using-glmakie/89740 "2022-11-04T08:51:21Z")

</div>

Id like to add points to a GLMakie plot when holding down the keyboard letter “a” and then holding down the left mouse button. The docs have a good demo on how to do this with a click (Point Picking). However when I chan…

---

## [ArgumentError: unable to check bounds for indices of type Index](https://discourse.julialang.org/t/argumenterror-unable-to-check-bounds-for-indices-of-type-index/89759)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 8:14am UTC](https://discourse.julialang.org/t/argumenterror-unable-to-check-bounds-for-indices-of-type-index/89759 "2022-11-04T08:14:18Z")

</div>

This is going to be an easy one, because it’s probably about pointing me to the right place in the docs: My MWE struct Index i::Int64 end Base.getindex(A::AbstractArray,i::Index) = A\[i.i\] index = \[Index(1),Index(3…

---

## [Unpacking struct properties](https://discourse.julialang.org/t/unpacking-struct-properties/89758)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 3\
**Last updated:** [November 4, 2022, 8:03am UTC](https://discourse.julialang.org/t/unpacking-struct-properties/89758 "2022-11-04T08:03:21Z")

</div>

struct A a::Int b::Int end a, b = A(10, 20) I found an anwer before, but I can’t find it anymore. How can I do it?

---

## [How to make it be a memory leak program(without lower function such as GC.xxx used)](https://discourse.julialang.org/t/how-to-make-it-be-a-memory-leak-program-without-lower-function-such-as-gc-xxx-used/89347)

<div class="topic-metadata">

**Author:** [@HANHAOHAN](https://discourse.julialang.org/u/HANHAOHAN)\
**Replies:** 10\
**Last updated:** [November 4, 2022, 7:53am UTC](https://discourse.julialang.org/t/how-to-make-it-be-a-memory-leak-program-without-lower-function-such-as-gc-xxx-used/89347 "2022-11-04T07:53:07Z")

</div>

Again and again, the memory occupation grows to 80%(about 12G) slowly as my program running. My program is simple, as follows: using Images using HTTP using libwebp\_jll using ImageView using CSV using ProgressMeter f…

---

## [Use javascript library pseudocode.js with Documenter.jl](https://discourse.julialang.org/t/use-javascript-library-pseudocode-js-with-documenter-jl/87684)

<div class="topic-metadata">

**Author:** [@amontoison](https://discourse.julialang.org/u/amontoison)\
**Replies:** 0\
**Last updated:** [September 23, 2022, 4:57am UTC](https://discourse.julialang.org/t/use-javascript-library-pseudocode-js-with-documenter-jl/87684 "2022-09-23T04:57:43Z")

</div>

Does anyone know if it is possible to use the external javascript library pseudocode.js with Documenter.jl ? I am trying to replace my algorithms stored in .png files in my documentation of Krylov.jl. I modified the kw…

---

## [Help with erro MethodError](https://discourse.julialang.org/t/help-with-erro-methoderror/89747)

<div class="topic-metadata">

**Author:** [@Ricardo\_Lima](https://discourse.julialang.org/u/Ricardo_Lima)\
**Replies:** 0\
**Last updated:** [November 4, 2022, 12:25am UTC](https://discourse.julialang.org/t/help-with-erro-methoderror/89747 "2022-11-04T00:25:48Z")

</div>

I have method to calculate the inverse of laplace. I’m making a websocket to do the calculation and return the value. This is the calculation that works perfectly. using InverseLaplace import InverseLaplace: talbot t…

---

## [Invalidation Prevention Syntax Needed?](https://discourse.julialang.org/t/invalidation-prevention-syntax-needed/89723)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 8\
**Last updated:** [November 3, 2022, 11:27pm UTC](https://discourse.julialang.org/t/invalidation-prevention-syntax-needed/89723 "2022-11-03T23:27:09Z")

</div>

I am really impressed by recent improvements due to the good fight against invalidations. I’m just wondering if the ubiquity of invalidations doesn’t indicate a missing syntax feature. I know Julia is not at that stage o…

---

## [How to use filter from inmemorydatasets package](https://discourse.julialang.org/t/how-to-use-filter-from-inmemorydatasets-package/89696)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 11:24pm UTC](https://discourse.julialang.org/t/how-to-use-filter-from-inmemorydatasets-package/89696 "2022-11-03T23:24:04Z")

</div>

Hi, I am looking for a way to extract all the rows that match PT from the column employment\_type, I have tried to change dataset into dataframe but there are still same errors, can anyone please give me some adv…

---

## [Optimization using JuMP](https://discourse.julialang.org/t/optimization-using-jump/89720)

<div class="topic-metadata">

**Author:** [@JUL1A](https://discourse.julialang.org/u/JUL1A)\
**Replies:** 12\
**Last updated:** [November 3, 2022, 9:18pm UTC](https://discourse.julialang.org/t/optimization-using-jump/89720 "2022-11-03T21:18:12Z")

</div>

I’m trying to code an optimization problem in Julia using JuMP. The objective function has two matrix multiplications. First, multiply the vector of w with size (10) by the matrix of arr\_C with size (20, 10). So the w s…

---

## [How to replace MATLAB cell array ({}) in Julia](https://discourse.julialang.org/t/how-to-replace-matlab-cell-array-in-julia/89690)

<div class="topic-metadata">

**Author:** [@SSa](https://discourse.julialang.org/u/SSa)\
**Replies:** 6\
**Last updated:** [November 3, 2022, 8:32pm UTC](https://discourse.julialang.org/t/how-to-replace-matlab-cell-array-in-julia/89690 "2022-11-03T20:32:51Z")

</div>

This might be a very basic question. I have a MATLAB version iterative solver where I need to store my solution on each iteration. In MATLAB one can easily store by this sol{}. I was wondering what would be the equivalen…

---

## [The objective function sparse is not supported by JuMP in julia](https://discourse.julialang.org/t/the-objective-function-sparse-is-not-supported-by-jump-in-julia/89726)

<div class="topic-metadata">

**Author:** [@thiagoselias](https://discourse.julialang.org/u/thiagoselias)\
**Replies:** 9\
**Last updated:** [November 3, 2022, 8:28pm UTC](https://discourse.julialang.org/t/the-objective-function-sparse-is-not-supported-by-jump-in-julia/89726 "2022-11-03T20:28:22Z")

</div>

model = Model(Gurobi.Optimizer) @objective(model, Min, DRect + 0.6DBlad + 0.6DBO) The objective function sparse(\[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, …

---

## [Result and summary files not generated with BARON.jl](https://discourse.julialang.org/t/result-and-summary-files-not-generated-with-baron-jl/89722)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 6\
**Last updated:** [November 3, 2022, 8:16pm UTC](https://discourse.julialang.org/t/result-and-summary-files-not-generated-with-baron-jl/89722 "2022-11-03T20:16:12Z")

</div>

I solved the following tutorial problem on JuMP’s documentation page, but the result and summary file are not generated (I do set the result and summary parameters to 1): using JuMP, BARON rocket = Model(BARON.Optimize…

---

## [\[RFC\] HotTest.jl - A tool to make running tests interactively more convenient](https://discourse.julialang.org/t/rfc-hottest-jl-a-tool-to-make-running-tests-interactively-more-convenient/89733)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 0\
**Last updated:** [November 3, 2022, 8:00pm UTC](https://discourse.julialang.org/t/rfc-hottest-jl-a-tool-to-make-running-tests-interactively-more-convenient/89733 "2022-11-03T20:00:53Z")

</div>

I’ve just created a small new package called HotTest.jl which is supposed to make working with Julia’s default testing pipeline interactively a bit more convenient. Let me just copy the README text here, and I would be …

---

## [VS Code 1.7.1.2 and Plots.jl not working](https://discourse.julialang.org/t/vs-code-1-7-1-2-and-plots-jl-not-working/87960)

<div class="topic-metadata">

**Author:** [@dleather](https://discourse.julialang.org/u/dleather)\
**Replies:** 15\
**Last updated:** [November 3, 2022, 7:47pm UTC](https://discourse.julialang.org/t/vs-code-1-7-1-2-and-plots-jl-not-working/87960 "2022-11-03T19:47:36Z")

</div>

I have Julia 1.8.1 installed, and the August 2022 update (1.7.2) of VS Code; the latest at the time of writing. Loading the REPL from the command line, the follow code works: using Pkg; Pkg.add(“Plots”); using Plots; …

---

## [Multidimensional non-linear root search?](https://discourse.julialang.org/t/multidimensional-non-linear-root-search/89680)

<div class="topic-metadata">

**Author:** [@gleyland](https://discourse.julialang.org/u/gleyland)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 7:00pm UTC](https://discourse.julialang.org/t/multidimensional-non-linear-root-search/89680 "2022-11-03T19:00:26Z")

</div>

Hi, Does anyone have any guidance on what’s best practice for non-linear root search? (in this case, relatively small, smooth systems of equations expressed as code that should be AD-able) It looks like NLsolve.jl is …

---

## [How to preallocate LU factorization](https://discourse.julialang.org/t/how-to-preallocate-lu-factorization/89718)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 5:59pm UTC](https://discourse.julialang.org/t/how-to-preallocate-lu-factorization/89718 "2022-11-03T17:59:09Z")

</div>

OK, I see what you mean. Suppose, then, that I’m not using StaticArrays and just want to allocate an empty LU with normal Julia arrays—how do I do that? zeros(LU{Float64, zeros(Matrix{Float64}), zeros(Vector{Int64})}) …

---

## [ODEFunctionExpr and observed variables \[Modeling Toolkit\]](https://discourse.julialang.org/t/odefunctionexpr-and-observed-variables-modeling-toolkit/89728)

<div class="topic-metadata">

**Author:** [@lxsilva](https://discourse.julialang.org/u/lxsilva)\
**Replies:** 0\
**Last updated:** [November 3, 2022, 5:30pm UTC](https://discourse.julialang.org/t/odefunctionexpr-and-observed-variables-modeling-toolkit/89728 "2022-11-03T17:30:44Z")

</div>

Hello! so, I’m using MTK as a tool for modeling. I’m using ModelingToolkitStandardLibrary in order to build my models (great tool btw). After I build my ODESystem and run “structural\_simplify” I would like to save my …

---

## [How to assign a particular method for a function with the exact type signature to an lvalue?](https://discourse.julialang.org/t/how-to-assign-a-particular-method-for-a-function-with-the-exact-type-signature-to-an-lvalue/89707)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 5\
**Last updated:** [November 3, 2022, 4:01pm UTC](https://discourse.julialang.org/t/how-to-assign-a-particular-method-for-a-function-with-the-exact-type-signature-to-an-lvalue/89707 "2022-11-03T16:01:01Z")

</div>

I’d like to be able to set an lvalue to a particular method. Essentially use it as a function pointer so that it can be called later in some other code. I’d like to set the method rather than the function because I’m wor…

---

## [Heatmap plots with X and Y matrix instead of vectors](https://discourse.julialang.org/t/heatmap-plots-with-x-and-y-matrix-instead-of-vectors/89665)

<div class="topic-metadata">

**Author:** [@fontainee](https://discourse.julialang.org/u/fontainee)\
**Replies:** 22\
**Last updated:** [November 3, 2022, 3:57pm UTC](https://discourse.julialang.org/t/heatmap-plots-with-x-and-y-matrix-instead-of-vectors/89665 "2022-11-03T15:57:07Z")

</div>

Hi all, I want to know if it is possible to make heatmap plots type with X and Y matrix instead of using X and Y vectors. In fact my X and Y matrix are longitude and latitude and the Z matrix are geostationnary satellit…

---

## [Update progress name along with percentage in ProgressMeter.jl](https://discourse.julialang.org/t/update-progress-name-along-with-percentage-in-progressmeter-jl/89716)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [November 3, 2022, 3:06pm UTC](https://discourse.julialang.org/t/update-progress-name-along-with-percentage-in-progressmeter-jl/89716 "2022-11-03T15:06:33Z")

</div>

I’m using ProgressMeter.jl and I have a Progress to measure time a task takes. The task has n::Int total steps, but for each n/10th or so step a different parameter is used in my process. I would like to be able to displ…

---

## [How to preallocate a static array for use with \`lu!\`](https://discourse.julialang.org/t/how-to-preallocate-a-static-array-for-use-with-lu/89712)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 2:02pm UTC](https://discourse.julialang.org/t/how-to-preallocate-a-static-array-for-use-with-lu/89712 "2022-11-03T14:02:01Z")

</div>

If you call lu on an SMatrix, you get a static LU factorization—cool: using StaticArrays using LinearAlgebra A = SMatrix{3, 3}(rand(3, 3)) lu(A) # StaticArrays.LU # L factor: # 3×3 LowerTriangular{Float64, SMatrix{3, 3…

---

## [Plots package not working in Pluto using Windows 11](https://discourse.julialang.org/t/plots-package-not-working-in-pluto-using-windows-11/89709)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 5\
**Last updated:** [November 3, 2022, 2:13pm UTC](https://discourse.julialang.org/t/plots-package-not-working-in-pluto-using-windows-11/89709 "2022-11-03T14:13:50Z")

</div>

I wanted to try some of my notebooks on Windows 11 and I found that the Plots.jl package is not able to produce any of the plots I have. This is the code I want to run in Pluto using Plots plot(\[1, 2, 3\], \[1, 2, 3\]) an…

---

## [Address of object](https://discourse.julialang.org/t/address-of-object/89695)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 4\
**Last updated:** [November 3, 2022, 1:49pm UTC](https://discourse.julialang.org/t/address-of-object/89695 "2022-11-03T13:49:34Z")

</div>

passing a variable to a c library by reference, that takes a void\* and size, using Ref(x), Base.summarysize(x) does not work as expected for Arrays: a=\[1,2,3\] b=\[1,2,3\] f(a) f(b) the C function f should return the sam…

---

## [Heat problem in polar coordinates? Method of Lines?](https://discourse.julialang.org/t/heat-problem-in-polar-coordinates-method-of-lines/89713)

<div class="topic-metadata">

**Author:** [@David\_F](https://discourse.julialang.org/u/David_F)\
**Replies:** 0\
**Last updated:** [November 3, 2022, 1:38pm UTC](https://discourse.julialang.org/t/heat-problem-in-polar-coordinates-method-of-lines/89713 "2022-11-03T13:38:46Z")

</div>

Can I solve the heat equation using polar coordinates (a hollow sphere) with Method of Lines? I haven’t found an example with polar or spherical coordinates, although the documentation mentions that a spherical Laplacia…

---

## [Different lags for DDEProblem](https://discourse.julialang.org/t/different-lags-for-ddeproblem/89482)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 2\
**Last updated:** [November 3, 2022, 1:33pm UTC](https://discourse.julialang.org/t/different-lags-for-ddeproblem/89482 "2022-11-03T13:33:08Z")

</div>

Hi! I try to use delay differential equations from DifferentialEquations.jl. I look at docs and make system with different delays, it works but looks not fine: hist1 = h(p, t)\[1\] hist2 = h(p, t - 2)\[2\] hist3 = h(p, …

---

## [How to take the average value for each type in the job title column?](https://discourse.julialang.org/t/how-to-take-the-average-value-for-each-type-in-the-job-title-column/89710)

<div class="topic-metadata">

**Author:** [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 12:36pm UTC](https://discourse.julialang.org/t/how-to-take-the-average-value-for-each-type-in-the-job-title-column/89710 "2022-11-03T12:36:19Z")

</div>

Hi, I have met the problem that for same employment type, there are different salary coressponding to the same job title, but I only need one salary value for one job title, can someone please give me some advices about …

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

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