# Latest

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

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

**Page:** 493

---

## [Using Hugo template in Franklin](https://discourse.julialang.org/t/using-hugo-template-in-franklin/109756)

<div class="topic-metadata">

**Author:** [@marcoherrera-s](https://discourse.julialang.org/u/marcoherrera-s)\
**Replies:** 0\
**Last updated:** [February 5, 2024, 5:37pm UTC](https://discourse.julialang.org/t/using-hugo-template-in-franklin/109756 "2024-02-05T17:37:27Z")

</div>

Hi!, as the title says, I would like to use a Hugo template (hello-friend-ng | Hugo Themes) in Franklin. I didn’t think I could , but I’ve seen websites made with Franklin that use a Hugo template. I tried to find inform…

---

## [Model a first-order-plus-delay system in ModelingToolkit](https://discourse.julialang.org/t/model-a-first-order-plus-delay-system-in-modelingtoolkit/109695)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 11\
**Last updated:** [February 5, 2024, 5:34pm UTC](https://discourse.julialang.org/t/model-a-first-order-plus-delay-system-in-modelingtoolkit/109695 "2024-02-05T17:34:35Z")

</div>

Hi, I wonder if there is any straightforward way to model a system consisting of a first-order-plus-delay plant T(s) = K.exp(-delay.s)/(tau.s + 1) and a PI controller using components from ModelingToolkitStandardLibrary…

---

## [Symbolics build\_function issues on complicated expressions](https://discourse.julialang.org/t/symbolics-build-function-issues-on-complicated-expressions/109727)

<div class="topic-metadata">

**Author:** [@Johan-Gronqvist](https://discourse.julialang.org/u/Johan-Gronqvist)\
**Replies:** 6\
**Last updated:** [February 5, 2024, 4:48pm UTC](https://discourse.julialang.org/t/symbolics-build-function-issues-on-complicated-expressions/109727 "2024-02-05T16:48:13Z")

</div>

I am trying to use Symbolics to define and manipulate my problem before moving to numerical methods to actually solve my problem. After initial manipulations, I want to replace all symbolic variables with their actual v…

---

## [Sub2ind on julia](https://discourse.julialang.org/t/sub2ind-on-julia/109717)

<div class="topic-metadata">

**Author:** [@Afonso\_Britto](https://discourse.julialang.org/u/Afonso_Britto)\
**Replies:** 6\
**Last updated:** [February 5, 2024, 3:39pm UTC](https://discourse.julialang.org/t/sub2ind-on-julia/109717 "2024-02-05T15:39:38Z")

</div>

I have this matlab code I want to convert it to julia, but there is no sub2ind in julia. Does anyone have any ideia how i can translate it? ‘’’ for c = 1:num\_channels l1\_c = sub2ind(size(SAT), row\_indices, l\_idx, …

---

## [Offline Development on an Air Gapped Machine](https://discourse.julialang.org/t/offline-development-on-an-air-gapped-machine/104959)

<div class="topic-metadata">

**Author:** [@bamdone](https://discourse.julialang.org/u/bamdone)\
**Replies:** 16\
**Last updated:** [February 5, 2024, 3:39pm UTC](https://discourse.julialang.org/t/offline-development-on-an-air-gapped-machine/104959 "2024-02-05T15:39:14Z")

</div>

I’ve been using Julia off and on for a number of years and the one thing that keeps pushing me away from Julia is offline development. While Matlab has a core set of tools that are extensive, it lends itself to scientifi…

---

## [Raw"\\nabla" fails in labels](https://discourse.julialang.org/t/raw-nabla-fails-in-labels/109739)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 2\
**Last updated:** [February 5, 2024, 3:09pm UTC](https://discourse.julialang.org/t/raw-nabla-fails-in-labels/109739 "2024-02-05T15:09:49Z")

</div>

I am trying to get “nice” labels for a plot and the unicode characters work properly only sometimes: using Plots plot(rand(10),label="δ works") plot!(rand(10),label=raw"\\delta works") …

---

## [Solving ODE using RK4](https://discourse.julialang.org/t/solving-ode-using-rk4/109697)

<div class="topic-metadata">

**Author:** [@Ahad\_Jhumka](https://discourse.julialang.org/u/Ahad_Jhumka)\
**Replies:** 7\
**Last updated:** [February 5, 2024, 2:01pm UTC](https://discourse.julialang.org/t/solving-ode-using-rk4/109697 "2024-02-05T14:01:47Z")

</div>

I have a series of ODE which I want to solve in Julia Programming Language. Anyone have the coding for RK4 solver. Thanks

---

## [How can I fix the type instability](https://discourse.julialang.org/t/how-can-i-fix-the-type-instability/109730)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 3\
**Last updated:** [February 5, 2024, 1:45pm UTC](https://discourse.julialang.org/t/how-can-i-fix-the-type-instability/109730 "2024-02-05T13:45:49Z")

</div>

Hello, I have the following MWE, where I cannot remove the type instability that appears from the call on the last line. abstract type FrictionLaw end struct Cubic{T \<: Real} \<: FrictionLaw γ::T end g(x, law::Cub…

---

## [Another way of installing a package](https://discourse.julialang.org/t/another-way-of-installing-a-package/109732)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 1\
**Last updated:** [February 5, 2024, 1:42pm UTC](https://discourse.julialang.org/t/another-way-of-installing-a-package/109732 "2024-02-05T13:42:00Z")

</div>

Generally, we use Pkg to install a package. But in my case (I am using vscode and windows 10), when I try to install some package like PyCall, the connection to github always fails (possibly because I am in china?) Is t…

---

## [How to strip tuple type of the element types](https://discourse.julialang.org/t/how-to-strip-tuple-type-of-the-element-types/109664)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 6\
**Last updated:** [February 3, 2024, 9:09pm UTC](https://discourse.julialang.org/t/how-to-strip-tuple-type-of-the-element-types/109664 "2024-02-03T21:09:57Z")

</div>

I want a function taking a type T\<:Tuple type and returning S\<:Tuple type such that T\<:S and the element types are stripped from the input, but with preserved length information. Desired behavior examples: f(Tuple{}) =…

---

## [Time limits for unfocused discourse threads?](https://discourse.julialang.org/t/time-limits-for-unfocused-discourse-threads/106739)

<div class="topic-metadata">

**Author:** [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Replies:** 50\
**Last updated:** [February 5, 2024, 1:00pm UTC](https://discourse.julialang.org/t/time-limits-for-unfocused-discourse-threads/106739 "2024-02-05T13:00:10Z")

</div>

As commented by @mbauman in How do we Julians win big when the situation is so unfair? - #75 by mbauman “open-ended” threads (ala “how can Julia be more popular” or “what don’t you like about Julia”) rarely seem to go an…

---

## [Parser for safetensors](https://discourse.julialang.org/t/parser-for-safetensors/109366)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 6\
**Last updated:** [February 5, 2024, 12:35pm UTC](https://discourse.julialang.org/t/parser-for-safetensors/109366 "2024-02-05T12:35:15Z")

</div>

There is a new format to store weights of neural networks advocated by huggingface, called safetensors. I have encountered when I wanted to download phi-2 model to Transformers.jl (see this pull request Add Phi model by…

---

## [MethodError Mystery: Unexpected Third Argument in Constructor Call After Julia Kernel Upgrade (1.5 to 1.9)](https://discourse.julialang.org/t/methoderror-mystery-unexpected-third-argument-in-constructor-call-after-julia-kernel-upgrade-1-5-to-1-9/109636)

<div class="topic-metadata">

**Author:** [@lisapisa](https://discourse.julialang.org/u/lisapisa)\
**Replies:** 4\
**Last updated:** [February 5, 2024, 10:41am UTC](https://discourse.julialang.org/t/methoderror-mystery-unexpected-third-argument-in-constructor-call-after-julia-kernel-upgrade-1-5-to-1-9/109636 "2024-02-05T10:41:41Z")

</div>

Sorry in advance if this question is stupid and belongs in the ‘new to julia’ subforum. From what I could gather that one is focused more on installing julia, so I put it here instead. Hey! I am trying to get some code…

---

## [Converting UK National Grid to Lat Lon and vice versa](https://discourse.julialang.org/t/converting-uk-national-grid-to-lat-lon-and-vice-versa/109628)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 17\
**Last updated:** [February 5, 2024, 9:59am UTC](https://discourse.julialang.org/t/converting-uk-national-grid-to-lat-lon-and-vice-versa/109628 "2024-02-05T09:59:43Z")

</div>

Just getting started on what I expect to be a long learning curve with maps (no prior experience). I have a UK postcode picked more or less at random: BT3 9DT. Google tells me this has the following properties: Latitu…

---

## [Rewriting a MATLAB library in Julia](https://discourse.julialang.org/t/rewriting-a-matlab-library-in-julia/109515)

<div class="topic-metadata">

**Author:** [@jackmarry](https://discourse.julialang.org/u/jackmarry)\
**Replies:** 11\
**Last updated:** [February 5, 2024, 9:34am UTC](https://discourse.julialang.org/t/rewriting-a-matlab-library-in-julia/109515 "2024-02-05T09:34:19Z")

</div>

I am rewriting a MATLAB library in Julia, but I’ve noticed significant differences between Julia syntax and MATLAB. Additionally, GPT often provides incorrect responses. Is there a website that collects tables mapping MA…

---

## [Stop Criteria using JuMP with HiGHS when find the first feasible solution](https://discourse.julialang.org/t/stop-criteria-using-jump-with-highs-when-find-the-first-feasible-solution/109520)

<div class="topic-metadata">

**Author:** [@grem](https://discourse.julialang.org/u/grem)\
**Replies:** 4\
**Last updated:** [February 5, 2024, 9:12am UTC](https://discourse.julialang.org/t/stop-criteria-using-jump-with-highs-when-find-the-first-feasible-solution/109520 "2024-02-05T09:12:16Z")

</div>

Hello, I have a MILP problem, which is feasible, and I would like to stop the model run when the solver find the first feasible solution. Is it possible to use a stop criteria like that? I can only find one about time…

---

## [\[ANN\] TypeUtils: dealing with types in Julia](https://discourse.julialang.org/t/ann-typeutils-dealing-with-types-in-julia/101584)

<div class="topic-metadata">

**Author:** [@emmt](https://discourse.julialang.org/u/emmt)\
**Replies:** 17\
**Last updated:** [February 5, 2024, 8:45am UTC](https://discourse.julialang.org/t/ann-typeutils-dealing-with-types-in-julia/101584 "2024-02-05T08:45:06Z")

</div>

New package TypeUtils provides useful methods to deal with types in Julia. Cast value to type The method, as is designed to cast a value to a given type. The name was inspired by the built-in Zig function @as. A first …

---

## [Get x and y limits of Makie plot](https://discourse.julialang.org/t/get-x-and-y-limits-of-makie-plot/109716)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 5\
**Last updated:** [February 5, 2024, 7:40am UTC](https://discourse.julialang.org/t/get-x-and-y-limits-of-makie-plot/109716 "2024-02-05T07:40:16Z")

</div>

How to get axis limits? scatter(50randn(5), 50randn(5))

---

## [Correct way to save Makie plot to IOBuffer](https://discourse.julialang.org/t/correct-way-to-save-makie-plot-to-iobuffer/87793)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 6\
**Last updated:** [February 5, 2024, 6:41am UTC](https://discourse.julialang.org/t/correct-way-to-save-makie-plot-to-iobuffer/87793 "2024-02-05T06:41:06Z")

</div>

I am generating a web page including a data URL for a Makie plot. I would like to avoid saving the plot to a file if possible. I figured this out but I would like to know if there is a better way. using Makie, CairoMaki…

---

## [Plotting to multiple separate figures](https://discourse.julialang.org/t/plotting-to-multiple-separate-figures/109681)

<div class="topic-metadata">

**Author:** [@cbarring](https://discourse.julialang.org/u/cbarring)\
**Replies:** 5\
**Last updated:** [February 5, 2024, 1:54am UTC](https://discourse.julialang.org/t/plotting-to-multiple-separate-figures/109681 "2024-02-05T01:54:34Z")

</div>

Hi. I would like to generate 2 separate figures. These are shown below. Figure 1 shows the numerical solution, plus the actual solution. Figure 2 shows the (tiny) error. I can’t put all this on a single plot since t…

---

## [Should I use multiple threads for parallel GC with otherwise sequential code?](https://discourse.julialang.org/t/should-i-use-multiple-threads-for-parallel-gc-with-otherwise-sequential-code/109719)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 1\
**Last updated:** [February 5, 2024, 12:51am UTC](https://discourse.julialang.org/t/should-i-use-multiple-threads-for-parallel-gc-with-otherwise-sequential-code/109719 "2024-02-05T00:51:10Z")

</div>

As Julia v10 has added parallel GC, is it advisable to use multiple threads with the -t command line option of julia even if the code to be run is non-parallel? Is there any possible performance regression compared with …

---

## [Optimization constraints](https://discourse.julialang.org/t/optimization-constraints/109653)

<div class="topic-metadata">

**Author:** [@Lemma](https://discourse.julialang.org/u/Lemma)\
**Replies:** 7\
**Last updated:** [February 4, 2024, 11:49pm UTC](https://discourse.julialang.org/t/optimization-constraints/109653 "2024-02-04T23:49:07Z")

</div>

I’m working on an optimization model in JuMP where I need to implement conditional constraints based on the sign of the right-hand side (RHS) of certain conditions. This is typically handled using the Big-M method, which…

---

## [Why does JET say this leads to a dispatch error?](https://discourse.julialang.org/t/why-does-jet-say-this-leads-to-a-dispatch-error/109684)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 11\
**Last updated:** [February 4, 2024, 11:12pm UTC](https://discourse.julialang.org/t/why-does-jet-say-this-leads-to-a-dispatch-error/109684 "2024-02-04T23:12:48Z")

</div>

Hello! I am using JET to improve my package. I have a function looking like this: function ResetArrays!(arrays...) @inbounds for array in arrays fill!(array,zero(eltype(array))) end end Which I feed in…

---

## [Survey of Non-Linear Optimization Modeling Layers in Julia](https://discourse.julialang.org/t/survey-of-non-linear-optimization-modeling-layers-in-julia/78168)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 63\
**Last updated:** [February 4, 2024, 10:34pm UTC](https://discourse.julialang.org/t/survey-of-non-linear-optimization-modeling-layers-in-julia/78168 "2024-02-04T22:34:44Z")

</div>

I am doing a survey of the NLP modeling layers in Julia to see which might be applicable to the kinds of problems that I regularly solve. I have the following basic requirements of the modeling layer, Support for non-…

---

## [Proposal: function for mutating operators?](https://discourse.julialang.org/t/proposal-function-for-mutating-operators/109707)

<div class="topic-metadata">

**Author:** [@aryavorskiy](https://discourse.julialang.org/u/aryavorskiy)\
**Replies:** 9\
**Last updated:** [February 4, 2024, 10:23pm UTC](https://discourse.julialang.org/t/proposal-function-for-mutating-operators/109707 "2024-02-04T22:23:23Z")

</div>

I want my custom type to implement indexed increments A\[...\] += B, but not assignments A\[...\] = B. Currently, syntax like A\[1:3\] += \[1, 2, 3\] is parsed A\[1:3\] = A\[1:3\] + \[1, 2, 3\]. This is straightforward, but unoptimal…

---

## [Suggestion: Explicit anonymous functors?](https://discourse.julialang.org/t/suggestion-explicit-anonymous-functors/109692)

<div class="topic-metadata">

**Author:** [@sgaure](https://discourse.julialang.org/u/sgaure)\
**Replies:** 23\
**Last updated:** [February 4, 2024, 10:12pm UTC](https://discourse.julialang.org/t/suggestion-explicit-anonymous-functors/109692 "2024-02-04T22:12:37Z")

</div>

Before coming to the point, for your amusement I’ll share a well known footgun I er… stumbled across. A simplified version. using .Threads function boxingday(n) result = sum(fetch.(\[ @spawn begin …

---

## [Rayshader?](https://discourse.julialang.org/t/rayshader/109710)

<div class="topic-metadata">

**Author:** [@dlpnet](https://discourse.julialang.org/u/dlpnet)\
**Replies:** 2\
**Last updated:** [February 4, 2024, 10:12pm UTC](https://discourse.julialang.org/t/rayshader/109710 "2024-02-04T22:12:25Z")

</div>

Hello, I am brand new to Julia and exploring the possibilities. Is there any equivalent for Rayshader (https://www.rayshader.com/) in Julia? Thanks

---

## [\[ANN\] TemplateMatching.jl](https://discourse.julialang.org/t/ann-templatematching-jl/109705)

<div class="topic-metadata">

**Author:** [@mleseach](https://discourse.julialang.org/u/mleseach)\
**Replies:** 0\
**Last updated:** [February 4, 2024, 6:42pm UTC](https://discourse.julialang.org/t/ann-templatematching-jl/109705 "2024-02-04T18:42:37Z")

</div>

I’m thrilled to announce the release of my very first package called TemplateMatching.jl, a native Julia implementation for template matching functionalities, inspired by those available in OpenCV. Although slightly tra…

---

## [Error while running julia executable](https://discourse.julialang.org/t/error-while-running-julia-executable/109699)

<div class="topic-metadata">

**Author:** [@ShrutiD](https://discourse.julialang.org/u/ShrutiD)\
**Replies:** 2\
**Last updated:** [February 4, 2024, 4:38pm UTC](https://discourse.julialang.org/t/error-while-running-julia-executable/109699 "2024-02-04T16:38:36Z")

</div>

Hi, I’m new to Julia and I was trying to build and run the executable from the Julia directory( I’m on the master branch) I got the following error when I run ./julia LoadError: ArgumentError: Package REPL does not hav…

---

## [Grayshade image into 3d array](https://discourse.julialang.org/t/grayshade-image-into-3d-array/109701)

<div class="topic-metadata">

**Author:** [@Afonso\_Britto](https://discourse.julialang.org/u/Afonso_Britto)\
**Replies:** 0\
**Last updated:** [February 4, 2024, 3:29pm UTC](https://discourse.julialang.org/t/grayshade-image-into-3d-array/109701 "2024-02-04T15:29:11Z")

</div>

I have this code, where I’m trying to apply a filter to an image based on another one. img is an rgb image and joint\_image is a grayshade image, I need to make the grayshade image into a 3d array, that’s why I’m using ch…

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

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