# Latest

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

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

**Page:** 639

---

## [Nbdev but for julia!](https://discourse.julialang.org/t/nbdev-but-for-julia/101951)

<div class="topic-metadata">

**Author:** [@Abdelkareem\_Elkhateb](https://discourse.julialang.org/u/Abdelkareem_Elkhateb)\
**Replies:** 2\
**Last updated:** [July 23, 2023, 10:14am UTC](https://discourse.julialang.org/t/nbdev-but-for-julia/101951 "2023-07-23T10:14:45Z")

</div>

is there any future plans to build a version of nbdev but for julia! nbdev - Getting Started

---

## [Project Specific Startup.jl](https://discourse.julialang.org/t/project-specific-startup-jl/101947)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 3\
**Last updated:** [July 23, 2023, 9:22am UTC](https://discourse.julialang.org/t/project-specific-startup-jl/101947 "2023-07-23T09:22:39Z")

</div>

Hello, I am using DrWatson to manage some simulations for an upcoming conference. I am using some locally developed packages that do not include DrWatson in their dependencies. They create some complicated data structu…

---

## [Convert matrix of 3D arrays to 3D array](https://discourse.julialang.org/t/convert-matrix-of-3d-arrays-to-3d-array/101888)

<div class="topic-metadata">

**Author:** [@mastrof](https://discourse.julialang.org/u/mastrof)\
**Replies:** 12\
**Last updated:** [July 23, 2023, 9:05am UTC](https://discourse.julialang.org/t/convert-matrix-of-3d-arrays-to-3d-array/101888 "2023-07-23T09:05:04Z")

</div>

I have N^2 3D arrays, all with size (nx, ny, nz). These arrays are arranged in a square matrix (N x N). I would like to expand the inner arrays concatenating them along the first two dimensions but not along the third, s…

---

## [Which environment do dependencies need to be loaded from to trigger loading package extensions?](https://discourse.julialang.org/t/which-environment-do-dependencies-need-to-be-loaded-from-to-trigger-loading-package-extensions/101952)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [July 23, 2023, 8:54am UTC](https://discourse.julialang.org/t/which-environment-do-dependencies-need-to-be-loaded-from-to-trigger-loading-package-extensions/101952 "2023-07-23T08:54:27Z")

</div>

I’m a bit confused about how package extensions are loaded. The Pkg docs state An extension will only be loaded if the extension dependencies are loaded from the same environment or environments higher in the environme…

---

## [Change legend entries order in Plots.jl](https://discourse.julialang.org/t/change-legend-entries-order-in-plots-jl/101927)

<div class="topic-metadata">

**Author:** [@teob](https://discourse.julialang.org/u/teob)\
**Replies:** 1\
**Last updated:** [July 22, 2023, 3:24pm UTC](https://discourse.julialang.org/t/change-legend-entries-order-in-plots-jl/101927 "2023-07-22T15:24:27Z")

</div>

Imagine having 6 series of data, labeled using the cardinal numbers. When I split the legend into two columns using legendcolumns = 2 I get the following order: 1 2 3 4 5 6 Is there any way to get the following order…

---

## [Using DataFrames to split overlapping datetime intervals into non overlapping intervals](https://discourse.julialang.org/t/using-dataframes-to-split-overlapping-datetime-intervals-into-non-overlapping-intervals/101149)

<div class="topic-metadata">

**Author:** [@vtomar](https://discourse.julialang.org/u/vtomar)\
**Replies:** 9\
**Last updated:** [July 23, 2023, 7:00am UTC](https://discourse.julialang.org/t/using-dataframes-to-split-overlapping-datetime-intervals-into-non-overlapping-intervals/101149 "2023-07-23T07:00:58Z")

</div>

test = DataFrame(Time1 = \[DateTime(2022, 1, 1, 10, 0, 0), DateTime(2022, 1, 1, 10, 5, 0), DateTime(2022, 1, 1, 10, 14, 0)\], Time2 = \[DateTime(2022, 1, 1, 10, 15, 0), DateTime(2022, 1, 1, 10, 10, 0), DateTime(2022, 1, 1…

---

## [How to Add, Build and Precompile Package that is downloaded from github in Julia?](https://discourse.julialang.org/t/how-to-add-build-and-precompile-package-that-is-downloaded-from-github-in-julia/101949)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [July 23, 2023, 5:20am UTC](https://discourse.julialang.org/t/how-to-add-build-and-precompile-package-that-is-downloaded-from-github-in-julia/101949 "2023-07-23T05:20:31Z")

</div>

I was adding this package: using Pkg Pkg.add(PackageSpec(url="https://github.com/luchr/ComplexPortraits.jl", rev="master")) it is cloning the github and build it and precompile it. If I download a package (any Julia…

---

## [Speed of EnsembleProblem](https://discourse.julialang.org/t/speed-of-ensembleproblem/101929)

<div class="topic-metadata">

**Author:** [@George\_Stepaniants](https://discourse.julialang.org/u/George_Stepaniants)\
**Replies:** 4\
**Last updated:** [July 23, 2023, 1:26am UTC](https://discourse.julialang.org/t/speed-of-ensembleproblem/101929 "2023-07-23T01:26:10Z")

</div>

Here I’ve written a simple MRE that generates 100 simulations of a linear ODE with 100 different controls/forcings. I find that simply writing a for-loop to generate this 100 simulations is 10x faster than generating the…

---

## [Having trouble to release a new version of a package that depends on PyPlot](https://discourse.julialang.org/t/having-trouble-to-release-a-new-version-of-a-package-that-depends-on-pyplot/101918)

<div class="topic-metadata">

**Author:** [@hunKing](https://discourse.julialang.org/u/hunKing)\
**Replies:** 2\
**Last updated:** [July 23, 2023, 12:17am UTC](https://discourse.julialang.org/t/having-trouble-to-release-a-new-version-of-a-package-that-depends-on-pyplot/101918 "2023-07-23T00:17:50Z")

</div>

Hello folks, I am trying to release a new version of a registered package that depends on PyPlot, namely SeisPlot.jl. During the CI job that tries to automerge the new release they check if the packaged can be added. Fr…

---

## [Logical line comparison of a operation cell field and float number](https://discourse.julialang.org/t/logical-line-comparison-of-a-operation-cell-field-and-float-number/101919)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 1\
**Last updated:** [July 22, 2023, 10:46pm UTC](https://discourse.julialang.org/t/logical-line-comparison-of-a-operation-cell-field-and-float-number/101919 "2023-07-22T22:46:26Z")

</div>

Hi, I want to do below if line code but left hand side is an operationcellfield while right hand side is float. do you know how can i make this comparison? actually i need to get the final value of summation over operati…

---

## [Computing Irreducible Inconsistent Subsystem (IIS) to find infeasibility causes](https://discourse.julialang.org/t/computing-irreducible-inconsistent-subsystem-iis-to-find-infeasibility-causes/101864)

<div class="topic-metadata">

**Author:** [@Luiz\_Monteiro](https://discourse.julialang.org/u/Luiz_Monteiro)\
**Replies:** 2\
**Last updated:** [July 22, 2023, 10:11pm UTC](https://discourse.julialang.org/t/computing-irreducible-inconsistent-subsystem-iis-to-find-infeasibility-causes/101864 "2023-07-22T22:11:03Z")

</div>

Hi, I am trying to find infeasibility causes of a MIP model in JuMP with Gurobi solver using the comand: “compute\_conflict!(model1)”. The output result is copied below, but I dont know how to translate these result to i…

---

## [Why can we not easily compile to standalone binary?](https://discourse.julialang.org/t/why-can-we-not-easily-compile-to-standalone-binary/101936)

<div class="topic-metadata">

**Author:** [@The\_Mastermage](https://discourse.julialang.org/u/The_Mastermage)\
**Replies:** 3\
**Last updated:** [July 22, 2023, 6:36pm UTC](https://discourse.julialang.org/t/why-can-we-not-easily-compile-to-standalone-binary/101936 "2023-07-22T18:36:41Z")

</div>

So I am new to Julia and in recent time I was learning abit about Interpreters and Compilers, still dont understand much beyond Lexer and Tokenizer so go easy on me here. I was wondering if Julia does rely on the LLVM Co…

---

## [Profiling tests: how to tell for how long did each test set execute?](https://discourse.julialang.org/t/profiling-tests-how-to-tell-for-how-long-did-each-test-set-execute/101938)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [July 22, 2023, 6:25pm UTC](https://discourse.julialang.org/t/profiling-tests-how-to-tell-for-how-long-did-each-test-set-execute/101938 "2023-07-22T18:25:55Z")

</div>

Sometimes, while developing tests, the test suite will take too long to run. In such a situation I’m interested in optimizing the test suite by removing test cases from some test sets. How to tell which test sets execute…

---

## [Why is objectid not foldable for type arguments?](https://discourse.julialang.org/t/why-is-objectid-not-foldable-for-type-arguments/101928)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 3\
**Last updated:** [July 22, 2023, 6:06pm UTC](https://discourse.julialang.org/t/why-is-objectid-not-foldable-for-type-arguments/101928 "2023-07-22T18:06:31Z")

</div>

For some types, objectid now folds in Julia 1.10-alpha1: julia\> f() = objectid(1); @code\_typed f() CodeInfo( 1 ─ return 0x5bca7c69b0d0ebca ) =\> UInt64 However, it doesn’t fold with a type as argument: julia\> f() =…

---

## [Problem in plotting with cairomakie for rectangular mesh](https://discourse.julialang.org/t/problem-in-plotting-with-cairomakie-for-rectangular-mesh/101907)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 3\
**Last updated:** [July 22, 2023, 4:34pm UTC](https://discourse.julialang.org/t/problem-in-plotting-with-cairomakie-for-rectangular-mesh/101907 "2023-07-22T16:34:40Z")

</div>

hi every one. I want to plot the out put in cairomakie and gridap. I use the code triangular mesh easily but when i have changed the mesh to rectangular one it gives me error. can anyone help me? using CairoMakie, Grida…

---

## [Registrator.jl sudden conda dependency error on GitHub](https://discourse.julialang.org/t/registrator-jl-sudden-conda-dependency-error-on-github/101763)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 2\
**Last updated:** [July 22, 2023, 3:23pm UTC](https://discourse.julialang.org/t/registrator-jl-sudden-conda-dependency-error-on-github/101763 "2023-07-22T15:23:51Z")

</div>

Hi all, I have been releasing new versions of my package using Registrator.jl without any trouble until May 24th of this year. On my latest release, saying @JuliaRegistrator register as a comment to the last GitHub co…

---

## [Derivation of powerflow equations with ideal transformer](https://discourse.julialang.org/t/derivation-of-powerflow-equations-with-ideal-transformer/101926)

<div class="topic-metadata">

**Author:** [@Anton\_Hinneck](https://discourse.julialang.org/u/Anton_Hinneck)\
**Replies:** 1\
**Last updated:** [July 22, 2023, 3:04pm UTC](https://discourse.julialang.org/t/derivation-of-powerflow-equations-with-ideal-transformer/101926 "2023-07-22T15:04:47Z")

</div>

Hi, I am looking for a citable source (book or article) deriving the power flow equations used in PowerModels.jl - including an ideal transformer as such: Mathematical Model · PowerModels (lanl-ansi.github.io) I woul…

---

## [Revise.jl's \`includet\` gives error when \`include\` doesn't](https://discourse.julialang.org/t/revise-jls-includet-gives-error-when-include-doesnt/101914)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 6\
**Last updated:** [July 22, 2023, 2:36pm UTC](https://discourse.julialang.org/t/revise-jls-includet-gives-error-when-include-doesnt/101914 "2023-07-22T14:36:32Z")

</div>

I have a .jl file where I define struct S that I call from another .jl file with using Revise; includet("path\_to\_file"). If this is my definition of S, I do not get an error: struct S{N} x::Array{\<:Real, N} S{…

---

## [Any guideline on which atomic ordering to choose?](https://discourse.julialang.org/t/any-guideline-on-which-atomic-ordering-to-choose/72055)

<div class="topic-metadata">

**Author:** [@findmyway](https://discourse.julialang.org/u/findmyway)\
**Replies:** 2\
**Last updated:** [July 22, 2023, 2:33pm UTC](https://discourse.julialang.org/t/any-guideline-on-which-atomic-ordering-to-choose/72055 "2023-07-22T14:33:37Z")

</div>

In the upcoming Julia@v1.7 Per-field atomics, it mentions several atomic orderings: (:monotonic, :acquire, :release, :acquire\_release, or :sequentially\_consistent). Do you have any general suggestions for which one to …

---

## [All Adjoint Methods Fail on Simple Neural ODE Example](https://discourse.julialang.org/t/all-adjoint-methods-fail-on-simple-neural-ode-example/101836)

<div class="topic-metadata">

**Author:** [@George\_Stepaniants](https://discourse.julialang.org/u/George_Stepaniants)\
**Replies:** 7\
**Last updated:** [July 22, 2023, 1:17pm UTC](https://discourse.julialang.org/t/all-adjoint-methods-fail-on-simple-neural-ode-example/101836 "2023-07-22T13:17:03Z")

</div>

Hello, I have an MRE where if I use any sensitivity algorithm apart from ForwardDiffSensitivity() I get an error. In particular, when I use the sensitivity algorithm InterpolatingAdjoint(autojacvec=ZygoteVJP()) I get the…

---

## [Performance: Julia/JuMP vs. Python/Pyomo](https://discourse.julialang.org/t/performance-julia-jump-vs-python-pyomo/92044)

<div class="topic-metadata">

**Author:** [@Justine](https://discourse.julialang.org/u/Justine)\
**Replies:** 18\
**Last updated:** [July 9, 2023, 9:26pm UTC](https://discourse.julialang.org/t/performance-julia-jump-vs-python-pyomo/92044 "2023-07-09T21:26:06Z")

</div>

Dear all, I could use some good help from the experts here. I was about to translate an optimization model from Python/Pyomo to Julia/JuMP, expecting that Julia/JuMP would outperform Python’s Pyomo. However, model gener…

---

## [FoldsCUDA not working with simple reduction](https://discourse.julialang.org/t/foldscuda-not-working-with-simple-reduction/101917)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 1\
**Last updated:** [July 22, 2023, 7:58am UTC](https://discourse.julialang.org/t/foldscuda-not-working-with-simple-reduction/101917 "2023-07-22T07:58:52Z")

</div>

I was trying to find the largest error between two matrix columns and I wanted to try parallelizing it on the GPU: using FLoops using CUDA using FoldsCUDA #To loop through all column pairs allpairs(v) = ((i,j) for j in…

---

## [Runtime of program using a large amount of memory stalls](https://discourse.julialang.org/t/runtime-of-program-using-a-large-amount-of-memory-stalls/99981)

<div class="topic-metadata">

**Author:** [@ilanggear](https://discourse.julialang.org/u/ilanggear)\
**Replies:** 4\
**Last updated:** [July 22, 2023, 6:41am UTC](https://discourse.julialang.org/t/runtime-of-program-using-a-large-amount-of-memory-stalls/99981 "2023-07-22T06:41:32Z")

</div>

I’m working on code to collect unigram and bigram counts of words and word features. For now I’m just working with less than a dozen smallish documents. Below are the results of @time on the first few docs. After the la…

---

## [Mutable struct and function as parameters. Why can't the function access the new values?](https://discourse.julialang.org/t/mutable-struct-and-function-as-parameters-why-cant-the-function-access-the-new-values/101915)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 2\
**Last updated:** [July 22, 2023, 4:11am UTC](https://discourse.julialang.org/t/mutable-struct-and-function-as-parameters-why-cant-the-function-access-the-new-values/101915 "2023-07-22T04:11:06Z")

</div>

Mutable struct and function as parameters. Why can’t the function access the new values? Both calls to p.f() return the same value, 2.0, despite the new value of x @with\_kw mutable struct Params x = 1.0 f::Fu…

---

## [Better compile-time computation facility](https://discourse.julialang.org/t/better-compile-time-computation-facility/101913)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 3\
**Last updated:** [July 22, 2023, 12:56am UTC](https://discourse.julialang.org/t/better-compile-time-computation-facility/101913 "2023-07-22T00:56:17Z")

</div>

We need better things to ensure certain stuffs (like static array size or complicated types) gets computed at compile time. If only there were some function decorators or some “const-expression” which says “if the input …

---

## [Programatic function (and variable) names](https://discourse.julialang.org/t/programatic-function-and-variable-names/101861)

<div class="topic-metadata">

**Author:** [@Anton\_Hinneck](https://discourse.julialang.org/u/Anton_Hinneck)\
**Replies:** 16\
**Last updated:** [July 22, 2023, 12:07am UTC](https://discourse.julialang.org/t/programatic-function-and-variable-names/101861 "2023-07-22T00:07:06Z")

</div>

I have a use case, where code needs to generate multiple sets of functions. So functions do not get overwritten, I want to add a unique pre-/postfix equal for each function in a set. Specifically, functions init() ru…

---

## [Multi-Threading hangs in Windows](https://discourse.julialang.org/t/multi-threading-hangs-in-windows/101905)

<div class="topic-metadata">

**Author:** [@schev](https://discourse.julialang.org/u/schev)\
**Replies:** 0\
**Last updated:** [July 21, 2023, 7:52pm UTC](https://discourse.julialang.org/t/multi-threading-hangs-in-windows/101905 "2023-07-21T19:52:43Z")

</div>

Hi Julia friends! I have a persistent problem with multi-threading hanging, sometimes for many minutes at a time. Notably, I only witness this when my code is allocating large amounts of memory. Of course, pre-allocating…

---

## [Constructors for structs with NamedTuple fields](https://discourse.julialang.org/t/constructors-for-structs-with-namedtuple-fields/101758)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 23\
**Last updated:** [July 21, 2023, 12:26am UTC](https://discourse.julialang.org/t/constructors-for-structs-with-namedtuple-fields/101758 "2023-07-21T00:26:07Z")

</div>

I am creating a struct with a field that is a named tuple. I am getting different behavior when I define a constructor inside vs. outside the struct. Below, F1() runs fine but F2() gives a “UndefVarError: T not defined” …

---

## [Error \`CURL\_OPENSSL\_4' not found when using Julia and R](https://discourse.julialang.org/t/error-curl-openssl-4-not-found-when-using-julia-and-r/101847)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 1\
**Last updated:** [July 21, 2023, 6:40pm UTC](https://discourse.julialang.org/t/error-curl-openssl-4-not-found-when-using-julia-and-r/101847 "2023-07-21T18:40:17Z")

</div>

I am using Julia 1.9.2 in a package I am developing. The package makes some calls to the R language forecast package, and pulls the outputs back to julia. I am getting this error, but I am not clear on how to read this m…

---

## [Using Numerical Integration and ApproxFun in Turing.jl](https://discourse.julialang.org/t/using-numerical-integration-and-approxfun-in-turing-jl/101850)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 12\
**Last updated:** [July 21, 2023, 5:13pm UTC](https://discourse.julialang.org/t/using-numerical-integration-and-approxfun-in-turing-jl/101850 "2023-07-21T17:13:09Z")

</div>

I’m trying to write some code to “show how it works” when it comes to imposing high quality prior information on a Bayesian regression problem. I’m running into implementation issues and could use some thoughts @stevengj …

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

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