# Latest

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

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

**Page:** 629

---

## [Setting up a structure for a sequence of tests?](https://discourse.julialang.org/t/setting-up-a-structure-for-a-sequence-of-tests/102451)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 2\
**Last updated:** [August 3, 2023, 3:40pm UTC](https://discourse.julialang.org/t/setting-up-a-structure-for-a-sequence-of-tests/102451 "2023-08-03T15:40:36Z")

</div>

EDIT: my issue was unrelated to the question - the problem wound up being improper spacing. I have a package that I’d like to have some tests built in for. There is a structure that wraps some functionality in a C++ lib…

---

## [Minimisation of operator norm—solution does not match evaluated value \[Convex.jl\]](https://discourse.julialang.org/t/minimisation-of-operator-norm-solution-does-not-match-evaluated-value-convex-jl/102319)

<div class="topic-metadata">

**Author:** [@not-fred](https://discourse.julialang.org/u/not-fred)\
**Replies:** 7\
**Last updated:** [August 3, 2023, 3:08pm UTC](https://discourse.julialang.org/t/minimisation-of-operator-norm-solution-does-not-match-evaluated-value-convex-jl/102319 "2023-08-03T15:08:22Z")

</div>

I’m using Convex.jl to minimize the operator norm of a matrix (minimize opnorm(J,Inf)), but the solution (problem.optval) does not match the evaluated value after performing the optimisation (opnorm(evaluate(J,Inf))). A…

---

## [Plots and GR\_jll is not working and fails to precompile](https://discourse.julialang.org/t/plots-and-gr-jll-is-not-working-and-fails-to-precompile/89657)

<div class="topic-metadata">

**Author:** [@Engineering\_Science](https://discourse.julialang.org/u/Engineering_Science)\
**Replies:** 4\
**Last updated:** [August 3, 2023, 3:06pm UTC](https://discourse.julialang.org/t/plots-and-gr-jll-is-not-working-and-fails-to-precompile/89657 "2023-08-03T15:06:50Z")

</div>

Hello I am trying to use julia for my Linear Algebra and Multivariable Calculus courses that requires plotting, however I cannot seem to get the package to work. I have read all the other plotting post as well as stack …

---

## [Cannot Precompile Plots.jl due to GR](https://discourse.julialang.org/t/cannot-precompile-plots-jl-due-to-gr/88230)

<div class="topic-metadata">

**Author:** [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)\
**Replies:** 16\
**Last updated:** [August 3, 2023, 3:05pm UTC](https://discourse.julialang.org/t/cannot-precompile-plots-jl-due-to-gr/88230 "2023-08-03T15:05:25Z")

</div>

Hi there, I recently upgraded to 1.8.0. At some point I lost the ability to precompile plots due to a GR\_jll error. I see other people have had similar issues and have tried the following with no luck: Removing .julia …

---

## [How to Fix Failed to Precompile Plots: Required dependency Xorg\_xcb\_util\_jll \[2def613f-5ad1-5310-b15b-b15d46f528f5\] failed to load from a cache file](https://discourse.julialang.org/t/how-to-fix-failed-to-precompile-plots-required-dependency-xorg-xcb-util-jll-2def613f-5ad1-5310-b15b-b15d46f528f5-failed-to-load-from-a-cache-file/98909)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [May 16, 2023, 9:05am UTC](https://discourse.julialang.org/t/how-to-fix-failed-to-precompile-plots-required-dependency-xorg-xcb-util-jll-2def613f-5ad1-5310-b15b-b15d46f528f5-failed-to-load-from-a-cache-file/98909 "2023-05-16T09:05:52Z")

</div>

I add FresnelIntegrals yesterday and then suddenly Plots can’t be compiled. (can’t believe this FresnelIntegrals package can cause so many damages) I tried this but still not working: ERROR: The following 1 direct d…

---

## [Code organization of a project with multiple simultaneously developed packages](https://discourse.julialang.org/t/code-organization-of-a-project-with-multiple-simultaneously-developed-packages/102447)

<div class="topic-metadata">

**Author:** [@Neodym](https://discourse.julialang.org/u/Neodym)\
**Replies:** 1\
**Last updated:** [August 3, 2023, 2:59pm UTC](https://discourse.julialang.org/t/code-organization-of-a-project-with-multiple-simultaneously-developed-packages/102447 "2023-08-03T14:59:48Z")

</div>

Hi, I’m developing a project that consists of multiple packages and some code that uses those packages. The packages will not be published in the Julia registry as it is a purely personal / learning project. Is there …

---

## [AbstractDataFrame is not iterable, I just want to make a histogram](https://discourse.julialang.org/t/abstractdataframe-is-not-iterable-i-just-want-to-make-a-histogram/102391)

<div class="topic-metadata">

**Author:** [@Axze-rgb](https://discourse.julialang.org/u/Axze-rgb)\
**Replies:** 8\
**Last updated:** [August 3, 2023, 1:01pm UTC](https://discourse.julialang.org/t/abstractdataframe-is-not-iterable-i-just-want-to-make-a-histogram/102391 "2023-08-03T13:01:35Z")

</div>

Hello, why is it this is not iterable? Here is the code begin CairoMakie.activate!(type = “svg”) fig2 = Figure(pt\_per\_unit = 2) ax2 = Axis(fig\[1, 2\], xlabel = “MAPQ”) title2 = (“MAPQ of the hifi reads”) hist!(ax…

---

## [Equivalent of Matlab's deval in DifferentialEquations.jl](https://discourse.julialang.org/t/equivalent-of-matlabs-deval-in-differentialequations-jl/102444)

<div class="topic-metadata">

**Author:** [@jewh](https://discourse.julialang.org/u/jewh)\
**Replies:** 2\
**Last updated:** [August 3, 2023, 12:49pm UTC](https://discourse.julialang.org/t/equivalent-of-matlabs-deval-in-differentialequations-jl/102444 "2023-08-03T12:49:15Z")

</div>

Is there a function like deval in DifferentialEquations.jl?

---

## [Docstring linting (e.g., check for missing argument descriptions in the docstring)](https://discourse.julialang.org/t/docstring-linting-e-g-check-for-missing-argument-descriptions-in-the-docstring/102237)

<div class="topic-metadata">

**Author:** [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Replies:** 3\
**Last updated:** [August 3, 2023, 12:45pm UTC](https://discourse.julialang.org/t/docstring-linting-e-g-check-for-missing-argument-descriptions-in-the-docstring/102237 "2023-08-03T12:45:17Z")

</div>

Is there a package for linting the docstrings? I am looking for something like pydocstyle, but something that just checks that the arguments in the function signature are included in the docstring is already valuable.

---

## [Convex.jl constraints not enforced](https://discourse.julialang.org/t/convex-jl-constraints-not-enforced/102439)

<div class="topic-metadata">

**Author:** [@UgeB](https://discourse.julialang.org/u/UgeB)\
**Replies:** 2\
**Last updated:** [August 3, 2023, 12:35pm UTC](https://discourse.julialang.org/t/convex-jl-constraints-not-enforced/102439 "2023-08-03T12:35:39Z")

</div>

Hi, I am using Convex.jl to solve a simple least squares optimization problem with some monotonicity constraints on my variable \\phi. The least squares objective is minimized to zero which should not be the case as my …

---

## [This month in Julia world - 2023-07](https://discourse.julialang.org/t/this-month-in-julia-world-2023-07/102276)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 6\
**Last updated:** [August 3, 2023, 12:04pm UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2023-07/102276 "2023-08-03T12:04:49Z")

</div>

A (seemingly?) monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesting this month, with contributions from the community. “Int…

---

## [Tracking occupied memory](https://discourse.julialang.org/t/tracking-occupied-memory/102442)

<div class="topic-metadata">

**Author:** [@Jad\_Zeitouni](https://discourse.julialang.org/u/Jad_Zeitouni)\
**Replies:** 0\
**Last updated:** [August 3, 2023, 11:30am UTC](https://discourse.julialang.org/t/tracking-occupied-memory/102442 "2023-08-03T11:30:07Z")

</div>

Is there any way to track occupied memory in Julia? Unfortunately I can’t provide a MWE but the code does something like this: struct State params::@NamedTuple begin ... # Bunch of vectors and matrices of Flo…

---

## [Can we allow the syntax \`v.\[i\]\` to be converted to \`getindex.(v, i)\`?](https://discourse.julialang.org/t/can-we-allow-the-syntax-v-i-to-be-converted-to-getindex-v-i/102414)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 10\
**Last updated:** [August 3, 2023, 11:03am UTC](https://discourse.julialang.org/t/can-we-allow-the-syntax-v-i-to-be-converted-to-getindex-v-i/102414 "2023-08-03T11:03:19Z")

</div>

Hi! I have one scenario that happens all the time. I get a vector of vectors and I need to obtain each component individually to perform some analyses and plot the data. Today, I do: getindex.(v, 1) getindex.(v, 2) get…

---

## [Why stringfy an array of UInt8s empties it?](https://discourse.julialang.org/t/why-stringfy-an-array-of-uint8s-empties-it/102389)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 10\
**Last updated:** [August 3, 2023, 10:57am UTC](https://discourse.julialang.org/t/why-stringfy-an-array-of-uint8s-empties-it/102389 "2023-08-03T10:57:22Z")

</div>

Is this result documented? What is the reason why v is emptied? julia\> v=\[0x41,0x42\] 2-element Vector{UInt8}: 0x41 0x42 julia\> String(v) "AB" julia\> v UInt8\[\] PS Is there a more efficient and side-effect free way…

---

## [Best way to take trace of matrix product in Julia?](https://discourse.julialang.org/t/best-way-to-take-trace-of-matrix-product-in-julia/102380)

<div class="topic-metadata">

**Author:** [@hshackle](https://discourse.julialang.org/u/hshackle)\
**Replies:** 17\
**Last updated:** [August 3, 2023, 10:55am UTC](https://discourse.julialang.org/t/best-way-to-take-trace-of-matrix-product-in-julia/102380 "2023-08-03T10:55:33Z")

</div>

My question is essentially a rehash of the Python question posted here. Given two matrices A and B, I would like to compute the trace of A\*B, which does not require evaluating the full matrix multiplication. I’ve include…

---

## [\[Seeking feedback\] Package for easy customization of startup.jl](https://discourse.julialang.org/t/seeking-feedback-package-for-easy-customization-of-startup-jl/102351)

<div class="topic-metadata">

**Author:** [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Replies:** 8\
**Last updated:** [August 3, 2023, 10:13am UTC](https://discourse.julialang.org/t/seeking-feedback-package-for-easy-customization-of-startup-jl/102351 "2023-08-03T10:13:13Z")

</div>

Hi all, over in the other thread by @gdalle I suggested that his tutorials could include a small generator for startup.jl files with some common configurations like Revise.jl, OhMyREPL.jl, PkgTemplates.jl. He suggested …

---

## [OrderedDict gives error in Mongoc.BSON()](https://discourse.julialang.org/t/ordereddict-gives-error-in-mongoc-bson/102437)

<div class="topic-metadata">

**Author:** [@hansn](https://discourse.julialang.org/u/hansn)\
**Replies:** 0\
**Last updated:** [August 3, 2023, 9:01am UTC](https://discourse.julialang.org/t/ordereddict-gives-error-in-mongoc-bson/102437 "2023-08-03T09:01:10Z")

</div>

I have the following code: lanprops = \[\] for lan in languages # NOTE: OrderedDict gives error in Mongoc.BSON() prop = OrderedDict{String, Any}() prop\["hasPropertyName"\] = "hasLabel" …

---

## [Why HTTP.jl is not in Julia Core?](https://discourse.julialang.org/t/why-http-jl-is-not-in-julia-core/102426)

<div class="topic-metadata">

**Author:** [@DeevsDeevs](https://discourse.julialang.org/u/DeevsDeevs)\
**Replies:** 5\
**Last updated:** [August 3, 2023, 9:01am UTC](https://discourse.julialang.org/t/why-http-jl-is-not-in-julia-core/102426 "2023-08-03T09:01:40Z")

</div>

Hello Julia community, I have been using Julia for some time now and have found it to be an excellent language for various applications. However, I have noticed that HTTP.jl is not integrated into the Julia core, unlike…

---

## [Nested struct as state variable in DifferentialEquations](https://discourse.julialang.org/t/nested-struct-as-state-variable-in-differentialequations/88583)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 7\
**Last updated:** [August 3, 2023, 8:53am UTC](https://discourse.julialang.org/t/nested-struct-as-state-variable-in-differentialequations/88583 "2023-08-03T08:53:41Z")

</div>

I’m learning to use the DifferentialEquations ecosystem, and my goal is to simulate dynamic systems in which the state variable is a custom struct. In the simplest case, my state variable is just the x and y coordinates…

---

## [CUFFT.plan\_fft! take a lot of memory, cannot be freed](https://discourse.julialang.org/t/cufft-plan-fft-take-a-lot-of-memory-cannot-be-freed/102377)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 3\
**Last updated:** [August 3, 2023, 8:03am UTC](https://discourse.julialang.org/t/cufft-plan-fft-take-a-lot-of-memory-cannot-be-freed/102377 "2023-08-03T08:03:06Z")

</div>

Hi, I’m playing with CUDA.jl for FFT computations. I use CUFFT.plan\_fft! to perform in-place FFT on large complex arrays. What I found was the in-place plan itself seems to occupy a large chunk of GPU memory about the sa…

---

## [Documentation explaining function supplied to \`count\` in Julia Docs?](https://discourse.julialang.org/t/documentation-explaining-function-supplied-to-count-in-julia-docs/102428)

<div class="topic-metadata">

**Author:** [@bojohnson02](https://discourse.julialang.org/u/bojohnson02)\
**Replies:** 1\
**Last updated:** [August 3, 2023, 3:15am UTC](https://discourse.julialang.org/t/documentation-explaining-function-supplied-to-count-in-julia-docs/102428 "2023-08-03T03:15:46Z")

</div>

I came across a particular function supplied to count in the documentation I wasn’t aware of previously. The \>(3) in count(\>(3), 1:7, init=0x03) is something I’ve been looking to replicate but didn’t know existed. Is the…

---

## [JuliaSim - Simulating Reality (upcoming product by Julia Computing)](https://discourse.julialang.org/t/juliasim-simulating-reality-upcoming-product-by-julia-computing/58785)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 6\
**Last updated:** [August 2, 2023, 10:48pm UTC](https://discourse.julialang.org/t/juliasim-simulating-reality-upcoming-product-by-julia-computing/58785 "2023-08-02T22:48:56Z")

</div>

JuliaSim: Simulating Reality Coming soon: JuliaSim is a next generation cloud-based simulation platform, combining the latest techniques in SciML with equation-based digital twin modeling and simulation. Surrogatize your…

---

## [ClimatePlots installation](https://discourse.julialang.org/t/climateplots-installation/101609)

<div class="topic-metadata">

**Author:** [@aasdelat](https://discourse.julialang.org/u/aasdelat)\
**Replies:** 2\
**Last updated:** [August 2, 2023, 9:27pm UTC](https://discourse.julialang.org/t/climateplots-installation/101609 "2023-08-02T21:27:05Z")

</div>

I am not able to install the ClimatePlots package, due to a problem with the conda manager, that seems to not properly install matplotlib. I have completely uninstalled julia (executable and configuration-packages direc…

---

## [Modeling constraints with CPLEXCP.jl](https://discourse.julialang.org/t/modeling-constraints-with-cplexcp-jl/102360)

<div class="topic-metadata">

**Author:** [@Matheus\_Diogenes\_And](https://discourse.julialang.org/u/Matheus_Diogenes_And)\
**Replies:** 3\
**Last updated:** [August 2, 2023, 9:17pm UTC](https://discourse.julialang.org/t/modeling-constraints-with-cplexcp-jl/102360 "2023-08-02T21:17:47Z")

</div>

Hello everyone. I am trying to model some constraints through constraint programming, by using CPLEXCP.jl. But I am having some issues with regards to translating the constraints into functions available by the library.…

---

## [Nested array replacement](https://discourse.julialang.org/t/nested-array-replacement/102348)

<div class="topic-metadata">

**Author:** [@Denis\_Ivanov](https://discourse.julialang.org/u/Denis_Ivanov)\
**Replies:** 4\
**Last updated:** [August 2, 2023, 8:40pm UTC](https://discourse.julialang.org/t/nested-array-replacement/102348 "2023-08-02T20:40:57Z")

</div>

Hi! I would like to model this behavior on Julia: Substitution System So if we have rules ( 1 =\> \[\[1, 0\], \[1, 1\]\], 0 =\> \[\[0, 0\], \[0, 0\]\] ) and array \[\[1, 0\], \[1, 1\]\] than output should be \[1, 0, 0, 0\], \[1, 1, 0, 0\],…

---

## [Debugging TSIT5 Internal Stage Steps](https://discourse.julialang.org/t/debugging-tsit5-internal-stage-steps/102416)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 8:35pm UTC](https://discourse.julialang.org/t/debugging-tsit5-internal-stage-steps/102416 "2023-08-02T20:35:34Z")

</div>

Is there an equivalent for step! that pauses after the computation of each internal stage of TSIT5?

---

## [Is Pkg's dependency resolution order-dependent?](https://discourse.julialang.org/t/is-pkgs-dependency-resolution-order-dependent/30899)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 3\
**Last updated:** [August 2, 2023, 8:33pm UTC](https://discourse.julialang.org/t/is-pkgs-dependency-resolution-order-dependent/30899 "2023-08-02T20:33:04Z")

</div>

Here is an example where Pkg.adding first Cairo, then ImageView fails, whereas adding ImageView first works flawlessly. Is it expected that the dependency resolution depends on the order in which packages are added? In…

---

## [Getting performance information from testsets](https://discourse.julialang.org/t/getting-performance-information-from-testsets/102417)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 8:20pm UTC](https://discourse.julialang.org/t/getting-performance-information-from-testsets/102417 "2023-08-02T20:20:39Z")

</div>

Testsets know already how much time they took to execute: using Test ts = @testset "outer" begin sleep(0.1) end # ts.time\_end - ts.time\_start = 0.10119009017944336 However, I would like to also know some other in…

---

## [Get location and variable name from UndefVarError](https://discourse.julialang.org/t/get-location-and-variable-name-from-undefvarerror/102299)

<div class="topic-metadata">

**Author:** [@t-anton](https://discourse.julialang.org/u/t-anton)\
**Replies:** 2\
**Last updated:** [August 2, 2023, 8:14pm UTC](https://discourse.julialang.org/t/get-location-and-variable-name-from-undefvarerror/102299 "2023-08-02T20:14:09Z")

</div>

Hi All, How can I get an undefined variable name and its location? For example, in the code below x = a +1 The output is: UndefVarError: \`a\` not defined Stacktrace: \[1\] top-level scope @ In\[1\]:1 How do I get o…

---

## [Undefined variable Error in a quote block](https://discourse.julialang.org/t/undefined-variable-error-in-a-quote-block/102404)

<div class="topic-metadata">

**Author:** [@shawn\_T](https://discourse.julialang.org/u/shawn_T)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 8:09pm UTC](https://discourse.julialang.org/t/undefined-variable-error-in-a-quote-block/102404 "2023-08-02T20:09:33Z")

</div>

Hi all, I was designing a macro and the code below is the return line of the macro, but it reports “i not defined”, I think it happens at $(result\[i\]) because once I replace it with other expr it is fine, so is there a …

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

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