# Latest

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

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

**Page:** 881

---

## [How to satisfy the requirement of LoopVectorization argument check?](https://discourse.julialang.org/t/how-to-satisfy-the-requirement-of-loopvectorization-argument-check/89446)

<div class="topic-metadata">

**Author:** [@mzd1893](https://discourse.julialang.org/u/mzd1893)\
**Replies:** 3\
**Last updated:** [October 29, 2022, 1:10pm UTC](https://discourse.julialang.org/t/how-to-satisfy-the-requirement-of-loopvectorization-argument-check/89446 "2022-10-29T13:10:29Z")

</div>

I want to learn how to use LoopVectorization. It is known that LoopVectorization cannot deal with complex number directly, and it need StructArray, then I write a simple loop for practicing. However there are some errors…

---

## [How to make a plot with multiple titles and labels in Makie](https://discourse.julialang.org/t/how-to-make-a-plot-with-multiple-titles-and-labels-in-makie/89137)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 12:58pm UTC](https://discourse.julialang.org/t/how-to-make-a-plot-with-multiple-titles-and-labels-in-makie/89137 "2022-10-29T12:58:05Z")

</div>

Question from Slack, posting here to keep the solution searchable in the future: This is a figure from IMF blog. Is it possible to create a plot like this: Have title and a write up in the top and caption at the bottom …

---

## [Saving RNG state/reproducibility in large scale Monte Carlo simulations](https://discourse.julialang.org/t/saving-rng-state-reproducibility-in-large-scale-monte-carlo-simulations/89408)

<div class="topic-metadata">

**Author:** [@lweber](https://discourse.julialang.org/u/lweber)\
**Replies:** 17\
**Last updated:** [October 29, 2022, 11:08am UTC](https://discourse.julialang.org/t/saving-rng-state-reproducibility-in-large-scale-monte-carlo-simulations/89408 "2022-10-29T11:08:56Z")

</div>

Hi everyone, (I know this question has been asked in different ways a bunch of times, but for me, I still could not find a good solution) I am currently porting my large scale Quantum Monte Carlo framework to Julia but…

---

## [Splitting time periods in a DataFrame](https://discourse.julialang.org/t/splitting-time-periods-in-a-dataframe/89268)

<div class="topic-metadata">

**Author:** [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)\
**Replies:** 10\
**Last updated:** [October 29, 2022, 10:10am UTC](https://discourse.julialang.org/t/splitting-time-periods-in-a-dataframe/89268 "2022-10-29T10:10:52Z")

</div>

I have a DataFrame with episodes of exposure of the form: PersonId::Int64 DateOfBirth::Date Sex::Int64 StartDate::Date EndDate::Date I would like to split each record on January 1, of each calendar year between :Start…

---

## [GLM with multiplicative coefficients](https://discourse.julialang.org/t/glm-with-multiplicative-coefficients/88995)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 9:56am UTC](https://discourse.julialang.org/t/glm-with-multiplicative-coefficients/88995 "2022-10-29T09:56:42Z")

</div>

Let’s say I’ve got this dataset, where I’m interested in Weight Gain as a function of calories consumed at Breakfast, Lunch, Dinner. 4×6 DataFrame Row │ Participant Day B L D WG │ String …

---

## [Can VSCode linter only analyze the open file not all files in folder?](https://discourse.julialang.org/t/can-vscode-linter-only-analyze-the-open-file-not-all-files-in-folder/89485)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 0\
**Last updated:** [October 29, 2022, 9:53am UTC](https://discourse.julialang.org/t/can-vscode-linter-only-analyze-the-open-file-not-all-files-in-folder/89485 "2022-10-29T09:53:57Z")

</div>

I have dozens of Julia scripts in a folder opened in VSCode. After some private package changes, many of them are broken and are flagged by VSCode as having problems in the Explorer (the left pane that lists files). Can …

---

## [Problem summing multiple dims in NLobjective](https://discourse.julialang.org/t/problem-summing-multiple-dims-in-nlobjective/89442)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 3\
**Last updated:** [October 29, 2022, 8:30am UTC](https://discourse.julialang.org/t/problem-summing-multiple-dims-in-nlobjective/89442 "2022-10-29T08:30:34Z")

</div>

I’m having trouble using matrices in an NLobjective model = Model() @variable(model, 0 .\<= x\[1:100, 1:100\] .\<= 1) @NLexpression(model,x\_con\[ii=1:100, jj=1:100\], x\[ii,jj\] \* abs(x\[ii,jj\])) This works @NLobjective(model…

---

## [Skipping parts of a for loop in the first iteration](https://discourse.julialang.org/t/skipping-parts-of-a-for-loop-in-the-first-iteration/16252)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 20\
**Last updated:** [October 29, 2022, 7:25am UTC](https://discourse.julialang.org/t/skipping-parts-of-a-for-loop-in-the-first-iteration/16252 "2022-10-29T07:25:51Z")

</div>

I crave a macro that does @for x in iter begin dosomethings() if $first\_iteration y = dothings\_differently(x) else y = dothings(y, x) end dootherthings() end branch free by rewritin…

---

## [Reading text files with wrapped numerical data](https://discourse.julialang.org/t/reading-text-files-with-wrapped-numerical-data/89409)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 8\
**Last updated:** [October 29, 2022, 6:46am UTC](https://discourse.julialang.org/t/reading-text-files-with-wrapped-numerical-data/89409 "2022-10-29T06:46:34Z")

</div>

In the following example, the input text file contains numeric data spread over several rows. Assuming that the number of columns (=7) is known and that all input data can be read as Float64, is there a better way to re…

---

## [! vs @view for indexing DataFrame](https://discourse.julialang.org/t/vs-view-for-indexing-dataframe/89462)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 5\
**Last updated:** [October 29, 2022, 6:34am UTC](https://discourse.julialang.org/t/vs-view-for-indexing-dataframe/89462 "2022-10-29T06:34:02Z")

</div>

What is the difference in purpose between ! and @view for indexing a DataFrame? @bkamins’ indexing blog post says When extracting the data from a data frame if you use ! no copying of data is made. Instead, you just ge…

---

## [Implement time out when creating the model](https://discourse.julialang.org/t/implement-time-out-when-creating-the-model/89451)

<div class="topic-metadata">

**Author:** [@dourouc05](https://discourse.julialang.org/u/dourouc05)\
**Replies:** 3\
**Last updated:** [October 28, 2022, 11:36pm UTC](https://discourse.julialang.org/t/implement-time-out-when-creating-the-model/89451 "2022-10-28T23:36:49Z")

</div>

Hi, I’m comparing several ways of solving the same problem. One of these approaches create extremely large models, so large that @variable(model, variable\[e in edges(graph), d in edges(graph2), v in vertices(graph)\]) ta…

---

## [Target variables are functions of Gaussians (aka how to define a deterministic multivariate distribution?)](https://discourse.julialang.org/t/target-variables-are-functions-of-gaussians-aka-how-to-define-a-deterministic-multivariate-distribution/89366)

<div class="topic-metadata">

**Author:** [@peter\_m](https://discourse.julialang.org/u/peter_m)\
**Replies:** 15\
**Last updated:** [October 28, 2022, 8:15pm UTC](https://discourse.julialang.org/t/target-variables-are-functions-of-gaussians-aka-how-to-define-a-deterministic-multivariate-distribution/89366 "2022-10-28T20:15:13Z")

</div>

I have a model where observations come from something of the form @model function predictions(observations) a ~ Normal(…) for i in 1:lastindex(observations) b ~ MvNormal(…) # has some non-trivial covariance matr…

---

## [Hide "Precompiling AbbreviatedStackTraces" message](https://discourse.julialang.org/t/hide-precompiling-abbreviatedstacktraces-message/89461)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [October 28, 2022, 7:41pm UTC](https://discourse.julialang.org/t/hide-precompiling-abbreviatedstacktraces-message/89461 "2022-10-28T19:41:40Z")

</div>

I have using AbbreviatedStackTraces in my startup.jl. Can I hide this message? julia\> using AbbreviatedStackTraces \[ Info: Precompiling AbbreviatedStackTraces \[ac637c84-cc71-43bf-9c33-c1b4316be3d4\] \[ Info: Skipping prec…

---

## [Using simplex method with Mosek with MosekTool package](https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 2\
**Last updated:** [October 28, 2022, 5:56pm UTC](https://discourse.julialang.org/t/using-simplex-method-with-mosek-with-mosektool-package/89416 "2022-10-28T17:56:31Z")

</div>

Hi, I want to solve a linear programming problem with the SumOfSquare package with Mosek. How can I tell the MosekTool package that Mosek use the simplex method instead of the interior point method?

---

## [Can VSCode linter warn undefined functions?](https://discourse.julialang.org/t/can-vscode-linter-warn-undefined-functions/89329)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 3\
**Last updated:** [October 28, 2022, 5:07pm UTC](https://discourse.julialang.org/t/can-vscode-linter-warn-undefined-functions/89329 "2022-10-28T17:07:44Z")

</div>

If my mouse hovers above a function call, VSCode usually tells me information about the function, i.e. the arguments that should be supplied. If the function doesn’t exist, VSCode will tell me nothing, so VSCode is aware…

---

## [\[ANN\] BayesHistogram.jl - for optimal histogramming](https://discourse.julialang.org/t/ann-bayeshistogram-jl-for-optimal-histogramming/89454)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 4:39pm UTC](https://discourse.julialang.org/t/ann-bayeshistogram-jl-for-optimal-histogramming/89454 "2022-10-28T16:39:37Z")

</div>

Hello everyone! @jling and I have developed this package in order to satisfy those who hate the binning rules found in most analysis/plotting libraries. If you’ve ever found yourself writing bins=:fd, :sturges, :scott,…

---

## [Lock in multithreading](https://discourse.julialang.org/t/lock-in-multithreading/89420)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 1\
**Last updated:** [October 28, 2022, 2:28pm UTC](https://discourse.julialang.org/t/lock-in-multithreading/89420 "2022-10-28T14:28:40Z")

</div>

I have a Condition: l = Condition() I need to print something whenever I notify(l), there is discriptive codes (can not run): Threads.@spawn begin for i = 1 : 100 lock(l) do println(i, "done") …

---

## [Julia interact with Python](https://discourse.julialang.org/t/julia-interact-with-python/89417)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 4\
**Last updated:** [October 28, 2022, 2:22pm UTC](https://discourse.julialang.org/t/julia-interact-with-python/89417 "2022-10-28T14:22:38Z")

</div>

I have a python dict a\_dict: using PyCall thread = pyimport("\_thread") py""" from time import sleep from random import randint, random a\_dict = {"A": 0} def keepUpdate(): while True: sleep(random()) …

---

## [Macro for counting the number of times a function is called?](https://discourse.julialang.org/t/macro-for-counting-the-number-of-times-a-function-is-called/3129)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 18\
**Last updated:** [October 28, 2022, 2:05pm UTC](https://discourse.julialang.org/t/macro-for-counting-the-number-of-times-a-function-is-called/3129 "2022-10-28T14:05:37Z")

</div>

Dear All, I’m trying to count the number of times a function is called; rather than assign a global variable by hand inside each function, it makes sense to use a macro. The instrumenting profiler can do this, but it se…

---

## [Fast square root of 3 x 3 matrix](https://discourse.julialang.org/t/fast-square-root-of-3-x-3-matrix/89378)

<div class="topic-metadata">

**Author:** [@AnshPatel7](https://discourse.julialang.org/u/AnshPatel7)\
**Replies:** 8\
**Last updated:** [October 28, 2022, 2:05pm UTC](https://discourse.julialang.org/t/fast-square-root-of-3-x-3-matrix/89378 "2022-10-28T14:05:04Z")

</div>

Hi, I’m currently using sqrt() from LinearAlgebra.jl to compute the square-root of 3 x 3 matrices repeatedly. But this has created a performance bottleneck. So I was wondering if there an implementation of a matrix squa…

---

## [SymPy undefined behavior](https://discourse.julialang.org/t/sympy-undefined-behavior/89432)

<div class="topic-metadata">

**Author:** [@mendeli](https://discourse.julialang.org/u/mendeli)\
**Replies:** 3\
**Last updated:** [October 28, 2022, 12:59pm UTC](https://discourse.julialang.org/t/sympy-undefined-behavior/89432 "2022-10-28T12:59:06Z")

</div>

Being relatively new to Julia, I wrote something like the code below and stumbled on undefined behavior. Since the code below does not use the correct expr.subs() syntax, shouldn’t it issue an error message or warning? T…

---

## [Memory Leak Using OrdinaryDiffEq and Zygote on a HPC Cluster](https://discourse.julialang.org/t/memory-leak-using-ordinarydiffeq-and-zygote-on-a-hpc-cluster/89440)

<div class="topic-metadata">

**Author:** [@alistair.white](https://discourse.julialang.org/u/alistair.white)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 10:26am UTC](https://discourse.julialang.org/t/memory-leak-using-ordinarydiffeq-and-zygote-on-a-hpc-cluster/89440 "2022-10-28T10:26:22Z")

</div>

While attempting to train some neural differential equations on a HPC cluster, I’ve been getting some unexpected OOM errors from Slurm. Here’s a MWE: GC.enable\_logging(true) # Uncomment these lines if running in a Dock…

---

## [Unitful.jl Molarity Calculation Question](https://discourse.julialang.org/t/unitful-jl-molarity-calculation-question/89372)

<div class="topic-metadata">

**Author:** [@brotherjack](https://discourse.julialang.org/u/brotherjack)\
**Replies:** 4\
**Last updated:** [October 28, 2022, 12:42pm UTC](https://discourse.julialang.org/t/unitful-jl-molarity-calculation-question/89372 "2022-10-28T12:42:58Z")

</div>

So, I’ve used Unitful a little bit and I like the library, but there is one oddity I’ve noticed with the Moriarty unit, at least in v1.11.0. If you enter this… 1u"mol/L" \* 20u"L" You get… 20 mol OK, that’s what I…

---

## [Environment Variables in interactive window](https://discourse.julialang.org/t/environment-variables-in-interactive-window/89349)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 11\
**Last updated:** [October 28, 2022, 12:29pm UTC](https://discourse.julialang.org/t/environment-variables-in-interactive-window/89349 "2022-10-28T12:29:16Z")

</div>

In my .zshrc startup script I set some environment variables export FOO="BAR" which I’d like to use in Julia. From a terminal I get julia\> ENV\["FOO"\] "BAR" But from a VS code interactive session using shift+enter # f…

---

## [Are there any plans to support BLIS in Julia?](https://discourse.julialang.org/t/are-there-any-plans-to-support-blis-in-julia/19620)

<div class="topic-metadata">

**Author:** [@cpsarras](https://discourse.julialang.org/u/cpsarras)\
**Replies:** 20\
**Last updated:** [October 28, 2022, 12:21pm UTC](https://discourse.julialang.org/t/are-there-any-plans-to-support-blis-in-julia/19620 "2022-10-28T12:21:40Z")

</div>

Given the flexibility of the BLIS API and the ability to fuse kernels, I was just wondering if there are any plans of incorporating this functionality in Julia.

---

## [What are the extensions to Arrow (Feather) and Parquet and are they supported in Julia?](https://discourse.julialang.org/t/what-are-the-extensions-to-arrow-feather-and-parquet-and-are-they-supported-in-julia/89444)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [October 28, 2022, 11:59am UTC](https://discourse.julialang.org/t/what-are-the-extensions-to-arrow-feather-and-parquet-and-are-they-supported-in-julia/89444 "2022-10-28T11:59:48Z")

</div>

I discovered there’s at least one: I’m not sure it’s supported in Arrow.jl (or needs supporting there), which does support all the (base) primitive types. \[Arrow is the new Feather format.\]

---

## [Declaring an empty set](https://discourse.julialang.org/t/declaring-an-empty-set/89419)

<div class="topic-metadata">

**Author:** [@Muhammad\_Nadeem](https://discourse.julialang.org/u/Muhammad_Nadeem)\
**Replies:** 7\
**Last updated:** [October 28, 2022, 11:35am UTC](https://discourse.julialang.org/t/declaring-an-empty-set/89419 "2022-10-28T11:35:23Z")

</div>

Hello all, I need to declare and empty set and then I have to append some of the other sets to it as follows: main = \[\] K = Set() K\[1\] = union(A,C) K\[2\] = union(B,A,C) K\[3\] = union(A,B) …

---

## [Import graphs in graphml format](https://discourse.julialang.org/t/import-graphs-in-graphml-format/89436)

<div class="topic-metadata">

**Author:** [@ahmad88](https://discourse.julialang.org/u/ahmad88)\
**Replies:** 1\
**Last updated:** [October 28, 2022, 11:14am UTC](https://discourse.julialang.org/t/import-graphs-in-graphml-format/89436 "2022-10-28T11:14:13Z")

</div>

I have more than 700 graphs saved in textfiles in graphml format, I want to import those graphs to my julia code get the edge list from each graph and run a specific code for each graph and save the output for each graph…

---

## [Joint longitudinal + time-to-event modelling in Julia?](https://discourse.julialang.org/t/joint-longitudinal-time-to-event-modelling-in-julia/89388)

<div class="topic-metadata">

**Author:** [@danielinteractive](https://discourse.julialang.org/u/danielinteractive)\
**Replies:** 3\
**Last updated:** [October 28, 2022, 8:49am UTC](https://discourse.julialang.org/t/joint-longitudinal-time-to-event-modelling-in-julia/89388 "2022-10-28T08:49:33Z")

</div>

Hi everyone, I am new to Julia, and curious if somebody did any work on joint modelling of longitudinal and time-to-event data already and can share any code examples as starting points for me? Thanks, cheers Daniel

---

## [What if \`df.col .= v\` was in-place?](https://discourse.julialang.org/t/what-if-df-col-v-was-in-place/89367)

<div class="topic-metadata">

**Author:** [@gustafsson](https://discourse.julialang.org/u/gustafsson)\
**Replies:** 10\
**Last updated:** [October 28, 2022, 8:10am UTC](https://discourse.julialang.org/t/what-if-df-col-v-was-in-place/89367 "2022-10-28T08:10:02Z")

</div>

You may or may not be surprised to learn that for a DataFrame .= isn’t always in-place. It surprised me for sure, but I didn’t follow the announcements so that’s on me. What if it was always in-place for existing column…

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

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