# Latest

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

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

**Page:** 672

---

## [MethodError: no method matching asprogress in UODE](https://discourse.julialang.org/t/methoderror-no-method-matching-asprogress-in-uode/100296)

<div class="topic-metadata">

**Author:** [@James\_Fernandez](https://discourse.julialang.org/u/James_Fernandez)\
**Replies:** 6\
**Last updated:** [June 14, 2023, 4:04pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-asprogress-in-uode/100296 "2023-06-14T16:04:10Z")

</div>

Hello, I am trying to train a UODE with an extended version of the lotka-voltera equations \[6 equations\] in sciML. However, I keep on getting the error: ┌ Warning: EnzymeVJP tried and failed in the automated AD choice…

---

## [Translating some Python code: Vector of interpolations?](https://discourse.julialang.org/t/translating-some-python-code-vector-of-interpolations/100287)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 4:02pm UTC](https://discourse.julialang.org/t/translating-some-python-code-vector-of-interpolations/100287 "2023-06-14T16:02:09Z")

</div>

In some Python code that I am trying to translate to Julia, I have a numpy array of interpolations, the data starts off as a structured grid (i.e., not rectangular), and there is one variable that points to the sample lo…

---

## [Overload in place =](https://discourse.julialang.org/t/overload-in-place/100331)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 5\
**Last updated:** [June 14, 2023, 3:50pm UTC](https://discourse.julialang.org/t/overload-in-place/100331 "2023-06-14T15:50:08Z")

</div>

I have a custom type that looks like this struct foo{T} A1::Array{T} A2::Array{T} end function Base.:+(x:: foo, y:: foo) return foo(x.A1 + y.A1, x.A2 + y.A2) end function Base.:.=(x:: foo, y:: foo) x.A1 .= y.A1 x…

---

## [Intercept stdin to capture output from ANSI code](https://discourse.julialang.org/t/intercept-stdin-to-capture-output-from-ansi-code/100330)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 3:36pm UTC](https://discourse.julialang.org/t/intercept-stdin-to-capture-output-from-ansi-code/100330 "2023-06-14T15:36:29Z")

</div>

I am informed by this post: linux - How can I get position of cursor in terminal? - Stack Overflow When I run print("\\x1b\[6n"), the current cursor position is written into stdin. However, the start is an escape sequence…

---

## [What is the role of Ref in this function and why is it faster than the alternative?](https://discourse.julialang.org/t/what-is-the-role-of-ref-in-this-function-and-why-is-it-faster-than-the-alternative/100319)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 6\
**Last updated:** [June 14, 2023, 3:15pm UTC](https://discourse.julialang.org/t/what-is-the-role-of-ref-in-this-function-and-why-is-it-faster-than-the-alternative/100319 "2023-06-14T15:15:41Z")

</div>

This function converts a categorical vector to an index: function convert\_factor\_to\_index(cat\_vec::CategoricalVector)::Vector{Int} levs = levels(cat\_vec) int\_vec::Vector{Int} = findfirst.(isequal.(cat\_v…

---

## [\`\]test Package\` errors, but \`include(test\_script)\` succeeds](https://discourse.julialang.org/t/test-package-errors-but-include-test-script-succeeds/100326)

<div class="topic-metadata">

**Author:** [@jtackm](https://discourse.julialang.org/u/jtackm)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 2:48pm UTC](https://discourse.julialang.org/t/test-package-errors-but-include-test-script-succeeds/100326 "2023-06-14T14:48:23Z")

</div>

When testing a package (FlashWeave.jl) via \]test FlashWeave, I’m getting errors related to internal matrix computations (only reliant on SparseArrays.jl), but if I instead manually include(\<test\_script\>) the same test sc…

---

## [The way Gadfly chooses ticks leads to ugly plots very often?](https://discourse.julialang.org/t/the-way-gadfly-chooses-ticks-leads-to-ugly-plots-very-often/100328)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 2:13pm UTC](https://discourse.julialang.org/t/the-way-gadfly-chooses-ticks-leads-to-ugly-plots-very-often/100328 "2023-06-14T14:13:10Z")

</div>

There’s an experiment for evaluating the claim in the title here. See the readme, and the SVG plots, viewable directly there (in the browser, on Gitlab). My conclusion was that a very large percentage of these random Ga…

---

## [Test whether an iterable is strictly increasing](https://discourse.julialang.org/t/test-whether-an-iterable-is-strictly-increasing/100282)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 1:56pm UTC](https://discourse.julialang.org/t/test-whether-an-iterable-is-strictly-increasing/100282 "2023-06-14T13:56:46Z")

</div>

Is there a simple way to test if an iterable (not necessarily instantiated) is strictly increasing? (Cf this long topic on why issorted(itr, lt = \<) does not do this). The solution has to be non-allocating. Simplest I c…

---

## [Speed of evolution of Julia and backwards compatibility](https://discourse.julialang.org/t/speed-of-evolution-of-julia-and-backwards-compatibility/100329)

<div class="topic-metadata">

**Author:** [@schaefer0](https://discourse.julialang.org/u/schaefer0)\
**Replies:** 5\
**Last updated:** [June 14, 2023, 1:39pm UTC](https://discourse.julialang.org/t/speed-of-evolution-of-julia-and-backwards-compatibility/100329 "2023-06-14T13:39:53Z")

</div>

Hi, My context and observations: I’m new to julia (with a goal towards using julia to push data processing to the edge of distributed networks and close to sensors) and as such, first look to language tutorials, and to…

---

## [How to set an objective to minimize the variance in ratio of allocation](https://discourse.julialang.org/t/how-to-set-an-objective-to-minimize-the-variance-in-ratio-of-allocation/100263)

<div class="topic-metadata">

**Author:** [@Ashok\_Khatri](https://discourse.julialang.org/u/Ashok_Khatri)\
**Replies:** 4\
**Last updated:** [June 14, 2023, 1:24pm UTC](https://discourse.julialang.org/t/how-to-set-an-objective-to-minimize-the-variance-in-ratio-of-allocation/100263 "2023-06-14T13:24:37Z")

</div>

I am trying to write a model where I have to distribute fractions of rent from properties to loans. The objective is to distribute the rents as equally as possible given the loan balance. Say there are 5 properties and …

---

## [Start Julia process on Raspberry Pi over SSH, run arbitrary code, get return values on host](https://discourse.julialang.org/t/start-julia-process-on-raspberry-pi-over-ssh-run-arbitrary-code-get-return-values-on-host/100087)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 6\
**Last updated:** [June 13, 2023, 9:15am UTC](https://discourse.julialang.org/t/start-julia-process-on-raspberry-pi-over-ssh-run-arbitrary-code-get-return-values-on-host/100087 "2023-06-13T09:15:43Z")

</div>

I just stumbled over Running commands over ssh - #8 by jw3126, which had me thinking: Could I use Distributed to launch a Julia process on a Raspberry Pi, and then use Distributed.remotecall to run arbitrary commands th…

---

## [How to approximate a noisy spectrum](https://discourse.julialang.org/t/how-to-approximate-a-noisy-spectrum/99519)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 35\
**Last updated:** [June 14, 2023, 11:48am UTC](https://discourse.julialang.org/t/how-to-approximate-a-noisy-spectrum/99519 "2023-06-14T11:48:04Z")

</div>

I have a noisy spectrum, and I want to get a -3db frequency and a -10db frequency somewhat accurately. It looks like this: How would you approach this task? Which approximation method and/or package would you use? (N…

---

## ['missing reference' for defined symbols (LanguageServer + jupyter lab)](https://discourse.julialang.org/t/missing-reference-for-defined-symbols-languageserver-jupyter-lab/100047)

<div class="topic-metadata">

**Author:** [@jtackm](https://discourse.julialang.org/u/jtackm)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 11:32am UTC](https://discourse.julialang.org/t/missing-reference-for-defined-symbols-languageserver-jupyter-lab/100047 "2023-06-14T11:32:24Z")

</div>

I’m trying to get support for LanguageServer features in jupyter lab via. the jupyterlab-lsp extension and LanguageServer.jl. The language server shows as “fully initialized” in the jupyter UI, options like “diagnostics …

---

## [Parallelizing file processing with the least amount of overhead](https://discourse.julialang.org/t/parallelizing-file-processing-with-the-least-amount-of-overhead/100169)

<div class="topic-metadata">

**Author:** [@CodeGodz](https://discourse.julialang.org/u/CodeGodz)\
**Replies:** 2\
**Last updated:** [June 14, 2023, 9:58am UTC](https://discourse.julialang.org/t/parallelizing-file-processing-with-the-least-amount-of-overhead/100169 "2023-06-14T09:58:28Z")

</div>

Hey all! I wrote ViewReader a while ago and now thought adding some parallel file processing might be fun. ViewReader reads UInt8 (chars) to a buffer array so each thread could have its own buffer array. This might be ne…

---

## [Code associated with \`invoke\`](https://discourse.julialang.org/t/code-associated-with-invoke/100109)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 4\
**Last updated:** [June 14, 2023, 9:41am UTC](https://discourse.julialang.org/t/code-associated-with-invoke/100109 "2023-06-14T09:41:29Z")

</div>

Is it possible to obtain the code associated with an invoke call? Specifically, if I were to write: sin(5.0) I know that I can get access to one of various representations of the code via code\_lowered, code\_typed, etc…

---

## [Benchmarking Fallible Code](https://discourse.julialang.org/t/benchmarking-fallible-code/97845)

<div class="topic-metadata">

**Author:** [@AlexanderNenninger](https://discourse.julialang.org/u/AlexanderNenninger)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 8:33am UTC](https://discourse.julialang.org/t/benchmarking-fallible-code/97845 "2023-06-14T08:33:25Z")

</div>

Is there a way to indicate failure in benchmarked code using BenchmarkTools? Say we have the following function using Random function mayfail() if rand() \< 0.1 throw(ErrorException("┻━┻︵ \\(°□°)/ ︵ ┻━┻")) …

---

## [Optim.jl, showing trace](https://discourse.julialang.org/t/optim-jl-showing-trace/55258)

<div class="topic-metadata">

**Author:** [@newb\_gk](https://discourse.julialang.org/u/newb_gk)\
**Replies:** 7\
**Last updated:** [February 15, 2021, 2:39pm UTC](https://discourse.julialang.org/t/optim-jl-showing-trace/55258 "2021-02-15T14:39:16Z")

</div>

Is there a way of not showing the time spent in each iteration in Optim.jl while using the option show\_trace=true? The current output is as follows: I just want the lines with “time” not to be shown. I currently us…

---

## [Plots: margins, positions of axes, etc., within the canvas (paper)](https://discourse.julialang.org/t/plots-margins-positions-of-axes-etc-within-the-canvas-paper/100317)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 0\
**Last updated:** [June 14, 2023, 8:31am UTC](https://discourse.julialang.org/t/plots-margins-positions-of-axes-etc-within-the-canvas-paper/100317 "2023-06-14T08:31:37Z")

</div>

What is the general method to control the positions of the axes in a plot? Below is my first small attempt to push the upper x axis downward, which fails: julia\> using Plots julia\> plot(sin; top\_margin=10mm) ERROR: Un…

---

## [How to enable vectorized fma instruction for multiply-add vectors?](https://discourse.julialang.org/t/how-to-enable-vectorized-fma-instruction-for-multiply-add-vectors/100219)

<div class="topic-metadata">

**Author:** [@xinwu](https://discourse.julialang.org/u/xinwu)\
**Replies:** 10\
**Last updated:** [June 14, 2023, 8:31am UTC](https://discourse.julialang.org/t/how-to-enable-vectorized-fma-instruction-for-multiply-add-vectors/100219 "2023-06-14T08:31:02Z")

</div>

Hi, the vectorized fma instructions (unrolled by 4x) can easily be generated for the C code below via clang -Ofast -S -Wall -std=c11 -march=skylake vecfma.c. void vecfma(float \* restrict c, float \* restrict a, float \* …

---

## [Interactive grid plot](https://discourse.julialang.org/t/interactive-grid-plot/100188)

<div class="topic-metadata">

**Author:** [@tushargayan2324](https://discourse.julialang.org/u/tushargayan2324)\
**Replies:** 20\
**Last updated:** [June 14, 2023, 8:09am UTC](https://discourse.julialang.org/t/interactive-grid-plot/100188 "2023-06-14T08:09:41Z")

</div>

I want to achieve something like the following: Basically, on clicking one of the boxes, they change the state from black and white. And there is script that changes the state of all boxes. (link to the website: Doc…

---

## [Include many files and call the same function from each file in a loop but got wrong result](https://discourse.julialang.org/t/include-many-files-and-call-the-same-function-from-each-file-in-a-loop-but-got-wrong-result/100309)

<div class="topic-metadata">

**Author:** [@YiboXia](https://discourse.julialang.org/u/YiboXia)\
**Replies:** 11\
**Last updated:** [June 14, 2023, 7:51am UTC](https://discourse.julialang.org/t/include-many-files-and-call-the-same-function-from-each-file-in-a-loop-but-got-wrong-result/100309 "2023-06-14T07:51:06Z")

</div>

Hi guys! I have three .jl files, which contains a test() function like this: 1.jl: function test() Dict(\[("A", 1), ("B", 2)\]) end 2.jl: function test() Dict(\[("A", 1), ("B", 2), ("C", 3)\]) end 3.jl: function t…

---

## [Bug about reloading a package](https://discourse.julialang.org/t/bug-about-reloading-a-package/100193)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 21\
**Last updated:** [June 14, 2023, 7:33am UTC](https://discourse.julialang.org/t/bug-about-reloading-a-package/100193 "2023-06-14T07:33:39Z")

</div>

I just found that in the latest version v.1.9.×, reloading a function of a package alters the original behavior of the same function of the package when being called independently. For instance, define a module “test” …

---

## [Getting all types defined in a module](https://discourse.julialang.org/t/getting-all-types-defined-in-a-module/36206)

<div class="topic-metadata">

**Author:** [@Bastien](https://discourse.julialang.org/u/Bastien)\
**Replies:** 5\
**Last updated:** [June 14, 2023, 7:30am UTC](https://discourse.julialang.org/t/getting-all-types-defined-in-a-module/36206 "2023-06-14T07:30:39Z")

</div>

Hi, Is there a way to get all the types defined in a module? For instance I am using DifferentialEquations.jl a lot and I’d like to have a list of all the types defined in that module. I feel like it would help me to ha…

---

## [Import only when code used?](https://discourse.julialang.org/t/import-only-when-code-used/100266)

<div class="topic-metadata">

**Author:** [@nharr](https://discourse.julialang.org/u/nharr)\
**Replies:** 5\
**Last updated:** [June 14, 2023, 2:13am UTC](https://discourse.julialang.org/t/import-only-when-code-used/100266 "2023-06-14T02:13:40Z")

</div>

Is there a way to import a module only if certain code is used? I ideally I would put it in a function, but it’s not allowed: function initialize() using A # create objects using functionality from A # to b…

---

## [Optimzing many linear solves](https://discourse.julialang.org/t/optimzing-many-linear-solves/100304)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 2\
**Last updated:** [June 14, 2023, 1:59am UTC](https://discourse.julialang.org/t/optimzing-many-linear-solves/100304 "2023-06-14T01:59:59Z")

</div>

I have a function that runs many linear solves on subsets of columns from a matrix I give it. Something like: function score(data, parents, child) #Subset columns from the data matrix @views begin X = d…

---

## [Troubleshooting why Adaptive Step Sizes are Failing](https://discourse.julialang.org/t/troubleshooting-why-adaptive-step-sizes-are-failing/100274)

<div class="topic-metadata">

**Author:** [@yoshi](https://discourse.julialang.org/u/yoshi)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 11:34pm UTC](https://discourse.julialang.org/t/troubleshooting-why-adaptive-step-sizes-are-failing/100274 "2023-06-13T23:34:23Z")

</div>

The following is a reduction of a 40 dimensional system (that’s why some of the syntax is weird). This simulation is crashing and I am trying to understand why. sim.t\[end\] shows the last time step at 672.6064966897368. H…

---

## [How to get the derivative of an interpolated function?](https://discourse.julialang.org/t/how-to-get-the-derivative-of-an-interpolated-function/100272)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [June 13, 2023, 11:26pm UTC](https://discourse.julialang.org/t/how-to-get-the-derivative-of-an-interpolated-function/100272 "2023-06-13T23:26:40Z")

</div>

I have the following code: using DataInterpolations Cp=\[0.024384377390186646,0.03811829845979822,0.05731175742000688,0.0803120051369546,0.10526323380995135,0.1312349486430945, 0.1588590278697544,0.1882995422205645,…

---

## [3D plot for linear partial differential system with PINN](https://discourse.julialang.org/t/3d-plot-for-linear-partial-differential-system-with-pinn/100278)

<div class="topic-metadata">

**Author:** [@Ecealp](https://discourse.julialang.org/u/Ecealp)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 11:24pm UTC](https://discourse.julialang.org/t/3d-plot-for-linear-partial-differential-system-with-pinn/100278 "2023-06-13T23:24:44Z")

</div>

How to draw 3D solution of linear partial differential system with PINN in Julia

---

## [A system of PDE and ODE](https://discourse.julialang.org/t/a-system-of-pde-and-ode/100290)

<div class="topic-metadata">

**Author:** [@Reza\_AO](https://discourse.julialang.org/u/Reza_AO)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 11:22pm UTC](https://discourse.julialang.org/t/a-system-of-pde-and-ode/100290 "2023-06-13T23:22:47Z")

</div>

Is PINN capable of solving a time dependent system consisting of a PDE and an ODE? for example if there is a system like below: eq = \[A \* Dt(u1(t,x)) ~ B \* Dx(u(t,x)) - C\* Dt(u2(t)), Dt(u2(t)) ~ D \* u2(t) \* exp(E \* …

---

## [Solving UDE segfaults or runs with poor performance](https://discourse.julialang.org/t/solving-ude-segfaults-or-runs-with-poor-performance/100074)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 7\
**Last updated:** [June 13, 2023, 11:19pm UTC](https://discourse.julialang.org/t/solving-ude-segfaults-or-runs-with-poor-performance/100074 "2023-06-13T23:19:10Z")

</div>

Hi, I’m trying to optimize an a circuit equations with an UDE, following this example from the sciml docs. U = Lux.Chain(Lux.Dense(3, 32, Lux.relu), Lux.Dense(32, 32, Lux.relu), Lux.Dense(32, 32, Lux.relu…

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

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