# Latest

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

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

**Page:** 405

---

## [How to add a specific PR of a package to an environment using Pkg](https://discourse.julialang.org/t/how-to-add-a-specific-pr-of-a-package-to-an-environment-using-pkg/114585)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [May 22, 2024, 5:19pm UTC](https://discourse.julialang.org/t/how-to-add-a-specific-pr-of-a-package-to-an-environment-using-pkg/114585 "2024-05-22T17:19:28Z")

</div>

I think someone said this should be possible. There is a specific PR of a package (bring back TermInterface by shashi · Pull Request #598 · JuliaSymbolics/SymbolicUtils.jl · GitHub) which I would like to try out locally…

---

## [Memory allocations](https://discourse.julialang.org/t/memory-allocations/114499)

<div class="topic-metadata">

**Author:** [@LucasMontoya4](https://discourse.julialang.org/u/LucasMontoya4)\
**Replies:** 2\
**Last updated:** [May 22, 2024, 4:25pm UTC](https://discourse.julialang.org/t/memory-allocations/114499 "2024-05-22T16:25:08Z")

</div>

Hi there, I was wondering why the line @allocated A = 100 gives 0, whereas @allocated B = \[1,2,3,4,5\] gives 96. Both can result in a completely fresh REPL, so why does defining A = 100 not use any memory? Surely the info…

---

## [Sol.interp and sol.k DifferentialEquations.jl](https://discourse.julialang.org/t/sol-interp-and-sol-k-differentialequations-jl/114372)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 11\
**Last updated:** [May 22, 2024, 3:04pm UTC](https://discourse.julialang.org/t/sol-interp-and-sol-k-differentialequations-jl/114372 "2024-05-22T15:04:23Z")

</div>

Hello, please help me understand what it is sol.interp, sol.k and is there any way not to save them? I found that they take up quite a lot of RAM, which is why ubuntu 24.04 freezes. Thank you for your helps! Code: usi…

---

## [Can I customize tooltip in Plots using Plotly backend?](https://discourse.julialang.org/t/can-i-customize-tooltip-in-plots-using-plotly-backend/114577)

<div class="topic-metadata">

**Author:** [@Josa9321](https://discourse.julialang.org/u/Josa9321)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 2:47pm UTC](https://discourse.julialang.org/t/can-i-customize-tooltip-in-plots-using-plotly-backend/114577 "2024-05-22T14:47:01Z")

</div>

Hi, Is there any way to customize the tooltip message in Plots using Plotly backend? For instance, I have the example below. using Plots plotly(ticks=:native) my\_plot = plot(\[1, 2, 4\], \[3, 4, 10\], title="Meu gráfico")…

---

## [\`hasmethod\` with a "wildcard"](https://discourse.julialang.org/t/hasmethod-with-a-wildcard/114578)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 2\
**Last updated:** [May 22, 2024, 2:58pm UTC](https://discourse.julialang.org/t/hasmethod-with-a-wildcard/114578 "2024-05-22T14:58:18Z")

</div>

I’d like to check if a type has iterate defined. Of course, iterate needs two methods – iterate(::T) and iterate(::T, state). julia\> hasmethod(iterate, (Vector{Int}, Any)) true julia\> hasmethod(iterate, (Tuple{Int}, An…

---

## [Persistent hash](https://discourse.julialang.org/t/persistent-hash/110001)

<div class="topic-metadata">

**Author:** [@Barvid](https://discourse.julialang.org/u/Barvid)\
**Replies:** 7\
**Last updated:** [May 22, 2024, 2:45pm UTC](https://discourse.julialang.org/t/persistent-hash/110001 "2024-05-22T14:45:09Z")

</div>

Hello everybody I work with continually updated time series and do intensive calculations on that. Say data is in vector x. Sometimes some part of old data changes when an instrument is recalibrated and I need re-do old…

---

## [How to suppress or redirect \`FileIO\` error messages](https://discourse.julialang.org/t/how-to-suppress-or-redirect-fileio-error-messages/114573)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 1\
**Last updated:** [May 22, 2024, 2:27pm UTC](https://discourse.julialang.org/t/how-to-suppress-or-redirect-fileio-error-messages/114573 "2024-05-22T14:27:50Z")

</div>

When loaders or savers throw errors, FileIO.jl outputs error messages to stderr and stdout without Logging functions or macros. The messages are helpful in most cases, but can mess up proper log handling. julia\> using …

---

## [Investigating large latency on a constrained Windows environment](https://discourse.julialang.org/t/investigating-large-latency-on-a-constrained-windows-environment/114482)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 85\
**Last updated:** [May 22, 2024, 2:21pm UTC](https://discourse.julialang.org/t/investigating-large-latency-on-a-constrained-windows-environment/114482 "2024-05-22T14:21:14Z")

</div>

On first start-up in the morning in VSCode, my code takes fully 7 minutes before executing the first line of my actual script (to read a csv file). using DataFrames using CSV using Dates using ZipArchives using GeoStats…

---

## [Bug at solve method for Universall Differential Equations?](https://discourse.julialang.org/t/bug-at-solve-method-for-universall-differential-equations/114566)

<div class="topic-metadata">

**Author:** [@Alergy](https://discourse.julialang.org/u/Alergy)\
**Replies:** 1\
**Last updated:** [May 22, 2024, 2:07pm UTC](https://discourse.julialang.org/t/bug-at-solve-method-for-universall-differential-equations/114566 "2024-05-22T14:07:41Z")

</div>

I am trying to somewhat emulate the Universal Differential Equations tutorial, with a little twist. What I want to do is to learn the parameters of both a Differential Equation AND a Neural Network. Here is the only cod…

---

## [Using more threads than actual number of CPU cores](https://discourse.julialang.org/t/using-more-threads-than-actual-number-of-cpu-cores/114568)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 1\
**Last updated:** [May 22, 2024, 1:44pm UTC](https://discourse.julialang.org/t/using-more-threads-than-actual-number-of-cpu-cores/114568 "2024-05-22T13:44:44Z")

</div>

Hi, I currently run hundreds of tasks on a 10 core CPU, so I set JULIA\_NUM\_THREADS to 10. In my program, each task consumes only 50% of the resources of a core. Is there a downside to increase JULIA\_NUM\_THREADS to 20 …

---

## [Juliausanne - Julia EPFL Lausanne Meetup Group](https://discourse.julialang.org/t/juliausanne-julia-epfl-lausanne-meetup-group/95677)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 4\
**Last updated:** [May 22, 2024, 12:54pm UTC](https://discourse.julialang.org/t/juliausanne-julia-epfl-lausanne-meetup-group/95677 "2024-05-22T12:54:27Z")

</div>

Hi all! In the past days, we gathered a few passionate people in Lausanne / EPFL! We’re trying to organize some meetups in the near future. To stay up-to-date, you can join our meetup group! There is also a #epfl ch…

---

## [@threads and two functions calls inside a loop](https://discourse.julialang.org/t/threads-and-two-functions-calls-inside-a-loop/114512)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 3\
**Last updated:** [May 22, 2024, 12:46pm UTC](https://discourse.julialang.org/t/threads-and-two-functions-calls-inside-a-loop/114512 "2024-05-22T12:46:37Z")

</div>

Hi, I have this use case: @threads loop function(parameters\_1) function(parameters\_2) end I would like to maximize load, problem is that sometimes everything is finished but the last iteration of the loop, mea…

---

## [Replacing some DataFrame values based on their type, for multiple columns - limits of the df.colname syntax](https://discourse.julialang.org/t/replacing-some-dataframe-values-based-on-their-type-for-multiple-columns-limits-of-the-df-colname-syntax/114541)

<div class="topic-metadata">

**Author:** [@mjmat](https://discourse.julialang.org/u/mjmat)\
**Replies:** 6\
**Last updated:** [May 22, 2024, 12:34pm UTC](https://discourse.julialang.org/t/replacing-some-dataframe-values-based-on-their-type-for-multiple-columns-limits-of-the-df-colname-syntax/114541 "2024-05-22T12:34:36Z")

</div>

I have a DataFrame where missing values are indicated by somewhat random strings instead of real numbers, so the only way to know that a value is missing is to test whether it is not a Float64. I am trying to replace the…

---

## [Reading a file from line x to line y](https://discourse.julialang.org/t/reading-a-file-from-line-x-to-line-y/114363)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 28\
**Last updated:** [May 22, 2024, 12:28pm UTC](https://discourse.julialang.org/t/reading-a-file-from-line-x-to-line-y/114363 "2024-05-22T12:28:00Z")

</div>

Hi, I would like to read a portion of a lot of big files, as I know that the lines that interest me are located within line x and line y Currently, I load the files with CSV.File and read parts, but the loading overhea…

---

## [Callback function modifying model parameter](https://discourse.julialang.org/t/callback-function-modifying-model-parameter/114478)

<div class="topic-metadata">

**Author:** [@valerdam](https://discourse.julialang.org/u/valerdam)\
**Replies:** 15\
**Last updated:** [May 22, 2024, 12:17pm UTC](https://discourse.julialang.org/t/callback-function-modifying-model-parameter/114478 "2024-05-22T12:17:19Z")

</div>

I need to modify a parameter in an ODE problem in a callback. I found an example that does exactly what I want in here. (on the page search for PresetTimeCallback and it is the code including the first occurrence). Copie…

---

## [Segmentation fault using multithreaded julia on new server](https://discourse.julialang.org/t/segmentation-fault-using-multithreaded-julia-on-new-server/114557)

<div class="topic-metadata">

**Author:** [@Loic\_Herviou](https://discourse.julialang.org/u/Loic_Herviou)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 11:46am UTC](https://discourse.julialang.org/t/segmentation-fault-using-multithreaded-julia-on-new-server/114557 "2024-05-22T11:46:05Z")

</div>

On our new server, we get random segmentation fault errors when using julia with multithreading. There is no crash for the same scripts with a single thread, or multithreaded on other machines. It seems to be independe…

---

## [How to use Cshort in Julia](https://discourse.julialang.org/t/how-to-use-cshort-in-julia/114506)

<div class="topic-metadata">

**Author:** [@VinodV](https://discourse.julialang.org/u/VinodV)\
**Replies:** 7\
**Last updated:** [May 22, 2024, 10:31am UTC](https://discourse.julialang.org/t/how-to-use-cshort-in-julia/114506 "2024-05-22T10:31:36Z")

</div>

I have a 16-bit hex string a = "4E1A". How to convert a to signed short integer using Cshort. No example usage is found for Cshort. julia\> reinterpret(Int16,\[0x4E1A\]) 1-element reinterpret(Int16, ::Vector{UInt16}): …

---

## [How to show progress when using DifferentialEquations.jl?](https://discourse.julialang.org/t/how-to-show-progress-when-using-differentialequations-jl/104168)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 10\
**Last updated:** [May 22, 2024, 10:16am UTC](https://discourse.julialang.org/t/how-to-show-progress-when-using-differentialequations-jl/104168 "2024-05-22T10:16:48Z")

</div>

The ODEs I’m solving typically takes an hour and I would like it to print the current time step for every, e.g. 10 time steps. I have tried the method shown on this page about progress bar, but it doesn’t work (i.e. noth…

---

## [How to convert a point from a given 2D crs to another one](https://discourse.julialang.org/t/how-to-convert-a-point-from-a-given-2d-crs-to-another-one/114549)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [May 22, 2024, 9:49am UTC](https://discourse.julialang.org/t/how-to-convert-a-point-from-a-given-2d-crs-to-another-one/114549 "2024-05-22T09:49:27Z")

</div>

I thought it would be easy, but I can’t find a way to programmatically convert (and extract the X,Y values) a 2D point from a given well known reference point to another one. For example, I have a point in “EPSG:4326”, …

---

## [jupyter-JuliaFormatter: JuliaFormatter for Jupyter Notebook](https://discourse.julialang.org/t/jupyter-juliaformatter-juliaformatter-for-jupyter-notebook/89715)

<div class="topic-metadata">

**Author:** [@jiangzhuochi](https://discourse.julialang.org/u/jiangzhuochi)\
**Replies:** 6\
**Last updated:** [May 22, 2024, 9:31am UTC](https://discourse.julialang.org/t/jupyter-juliaformatter-juliaformatter-for-jupyter-notebook/89715 "2024-05-22T09:31:08Z")

</div>

GitHub repo GitHub - jiangzhuochi/jupyter-JuliaFormatter: JuliaFormatter for Jupyter Notebook JuliaFormatter for Jupyter Notebook Format Julia with JuliaFormatter in Jupyter Notebook 前置条件 pre-requisites of course, you …

---

## [\[ANN\] BarkerMCMC.jl - robust gradient-based MCMC](https://discourse.julialang.org/t/ann-barkermcmc-jl-robust-gradient-based-mcmc/109381)

<div class="topic-metadata">

**Author:** [@scheidan1](https://discourse.julialang.org/u/scheidan1)\
**Replies:** 3\
**Last updated:** [May 22, 2024, 7:55am UTC](https://discourse.julialang.org/t/ann-barkermcmc-jl-robust-gradient-based-mcmc/109381 "2024-05-22T07:55:16Z")

</div>

BarkerMCMC.jl The package isn’t new, but it hasn’t been introduced here yet and might be beneficial for some. BarkerMCMC.jl Implements the surprisingly simple, gradient based MCMC sampler proposed by Livingstone & Zanel…

---

## [SumOfSquares Code only works for single constraint](https://discourse.julialang.org/t/sumofsquares-code-only-works-for-single-constraint/114001)

<div class="topic-metadata">

**Author:** [@geo](https://discourse.julialang.org/u/geo)\
**Replies:** 7\
**Last updated:** [May 22, 2024, 7:26am UTC](https://discourse.julialang.org/t/sumofsquares-code-only-works-for-single-constraint/114001 "2024-05-22T07:26:39Z")

</div>

Dear All, I am trying out SOS decomposition of a polynomial matrix on a bounded (rectangular) domain. I generate an SOS matrix as the product P’\*P and then multiply that by (1 - x\[i\]^2) for each of the variables that I …

---

## [How does constant propagation impact latency with a Val-based dispatch?](https://discourse.julialang.org/t/how-does-constant-propagation-impact-latency-with-a-val-based-dispatch/114545)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 5:49am UTC](https://discourse.julialang.org/t/how-does-constant-propagation-impact-latency-with-a-val-based-dispatch/114545 "2024-05-22T05:49:57Z")

</div>

The example here is schematic, and isn’t really an MWE. Suppose I have a set of functions like f() = f('A') Base.@constprop :aggressive f(a, args...) = g(Val(a == 'A'), args...) Base.@constprop :aggressive g(::Val{true…

---

## [NLopt for ODE parameter estimation: how to get verbose printed while using build\_loss\_objective](https://discourse.julialang.org/t/nlopt-for-ode-parameter-estimation-how-to-get-verbose-printed-while-using-build-loss-objective/114491)

<div class="topic-metadata">

**Author:** [@Piyush](https://discourse.julialang.org/u/Piyush)\
**Replies:** 4\
**Last updated:** [May 22, 2024, 5:16am UTC](https://discourse.julialang.org/t/nlopt-for-ode-parameter-estimation-how-to-get-verbose-printed-while-using-build-loss-objective/114491 "2024-05-22T05:16:15Z")

</div>

Hi, Is there a way to print the function value while using any NLopt algorithm for parameter estimation while using build\_loss\_objective function to build the cost function?

---

## [Evaluation into closed module - what's wrong?](https://discourse.julialang.org/t/evaluation-into-closed-module-whats-wrong/114526)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 3\
**Last updated:** [May 22, 2024, 5:05am UTC](https://discourse.julialang.org/t/evaluation-into-closed-module-whats-wrong/114526 "2024-05-22T05:05:26Z")

</div>

Hi metaprogramming afficionados, The package SparseConnectivityTracer.jl works by operator overloading, like ForwardDiff.jl or Measurements.jl. We overload operations on new number types called ConnectivityTracer, Gradi…

---

## [\`open\` and \`include\` might point to different folders](https://discourse.julialang.org/t/open-and-include-might-point-to-different-folders/114538)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [May 22, 2024, 3:15am UTC](https://discourse.julialang.org/t/open-and-include-might-point-to-different-folders/114538 "2024-05-22T03:15:40Z")

</div>

So, I have this set-up: I have my active Julia folder in VSCode. Within it I have a folder “subfolder”. I am running stuff in the Julia file “subfolder/my\_script.jl” I am running this script: open("testfile.jl", "w")…

---

## [How to define an overload constructor across an abstract type?](https://discourse.julialang.org/t/how-to-define-an-overload-constructor-across-an-abstract-type/114535)

<div class="topic-metadata">

**Author:** [@lpz18](https://discourse.julialang.org/u/lpz18)\
**Replies:** 1\
**Last updated:** [May 22, 2024, 1:34am UTC](https://discourse.julialang.org/t/how-to-define-an-overload-constructor-across-an-abstract-type/114535 "2024-05-22T01:34:27Z")

</div>

I have various structs of parameters that I am using for things like running ODEs and least squares optimizations, i.e.: abstract type model\_A end struct params1 \<: model\_A a::Float64 end struct params2 \<: model\_A…

---

## [Problem installing issue](https://discourse.julialang.org/t/problem-installing-issue/114534)

<div class="topic-metadata">

**Author:** [@mosby](https://discourse.julialang.org/u/mosby)\
**Replies:** 1\
**Last updated:** [May 22, 2024, 12:08am UTC](https://discourse.julialang.org/t/problem-installing-issue/114534 "2024-05-22T00:08:04Z")

</div>

Hello everyone, I have the Julia version 1.8.5 installed and I successfully add a kernel to Jupiter notebook, and I did the same thing to version 1.7.2. Now I need to add the kernel of Julia 1.5.3, when I add package IJu…

---

## [ANN: Convex.jl v0.16 is released](https://discourse.julialang.org/t/ann-convex-jl-v0-16-is-released/114536)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 1\
**Last updated:** [May 21, 2024, 11:56pm UTC](https://discourse.julialang.org/t/ann-convex-jl-v0-16-is-released/114536 "2024-05-21T23:56:32Z")

</div>

Dear all, We are pleased to announce the release of Convex.jl v0.16.0. This release of Convex involved a substantial internal rewrite of Convex.jl to integrate better with MathOptInterface. The result is a faster, simp…

---

## [JuMP+MAiNGO, no method matching +()](https://discourse.julialang.org/t/jump-maingo-no-method-matching/114514)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 1\
**Last updated:** [May 21, 2024, 8:19pm UTC](https://discourse.julialang.org/t/jump-maingo-no-method-matching/114514 "2024-05-21T20:19:37Z")

</div>

I am using JuMP to solve a nonlinear optimization problem. If I use ipopt, the solver runs. If I use MAiNGO (GitHub - MAiNGO-github/MAiNGO.jl: A Julia Wrapper to use MAiNGO with JuMP) I get an error: Minimal (not)work…

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

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