# Latest

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

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

**Page:** 670

---

## [Incremental online learning of Turing.jl models](https://discourse.julialang.org/t/incremental-online-learning-of-turing-jl-models/100386)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [June 16, 2023, 6:59am UTC](https://discourse.julialang.org/t/incremental-online-learning-of-turing-jl-models/100386 "2023-06-16T06:59:21Z")

</div>

Hi there, I am looking for ways to learn probablistic models on timeseries data in an incremental online fashion, processing data point after data point continuously, as they arrive. Hence my question whether there are…

---

## [What is the best machine learning framework in Julia that works with Metal.jl?](https://discourse.julialang.org/t/what-is-the-best-machine-learning-framework-in-julia-that-works-with-metal-jl/100351)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 6:53am UTC](https://discourse.julialang.org/t/what-is-the-best-machine-learning-framework-in-julia-that-works-with-metal-jl/100351 "2023-06-16T06:53:57Z")

</div>

What is the best machine learning framework in Julia that works with Metal.jl?

---

## [JuliaPackages.com or: How I Learned to Stop Worrying and Love the ChatGPT](https://discourse.julialang.org/t/juliapackages-com-or-how-i-learned-to-stop-worrying-and-love-the-chatgpt/100341)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 9\
**Last updated:** [June 16, 2023, 4:42am UTC](https://discourse.julialang.org/t/juliapackages-com-or-how-i-learned-to-stop-worrying-and-love-the-chatgpt/100341 "2023-06-16T04:42:00Z")

</div>

Hello Julians, Big news from JuliaPackages.com. We’ve given the site a major refresh - the first in two years! The headliner? I’ve collaborated with OpenAI’s ChatGPT to categorize a whopping 1,000+ packages. No more re…

---

## [StatsBase.jl package: Possible Trojan:Win32 /Wacatac.H!m?](https://discourse.julialang.org/t/statsbase-jl-package-possible-trojan-win32-wacatac-h-m/100410)

<div class="topic-metadata">

**Author:** [@JJTex](https://discourse.julialang.org/u/JJTex)\
**Replies:** 7\
**Last updated:** [June 15, 2023, 6:31pm UTC](https://discourse.julialang.org/t/statsbase-jl-package-possible-trojan-win32-wacatac-h-m/100410 "2023-06-15T18:31:51Z")

</div>

Hello. My name is Jair, I’m Brazilian (Goiânia/GO), I’m using google translator for this conversation. as I’m new to Julia, I don’t know if this is where I make such an announcement: Today (06/15/2023) when adding the S…

---

## [ArgumentError does not work inside for loops and other blocks](https://discourse.julialang.org/t/argumenterror-does-not-work-inside-for-loops-and-other-blocks/100427)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 12:13am UTC](https://discourse.julialang.org/t/argumenterror-does-not-work-inside-for-loops-and-other-blocks/100427 "2023-06-16T00:13:27Z")

</div>

In the examples below, A1. and A2. which use error break the program and show the error message. B1. and B2., which use ArgumentError do not. I’m using Julia 1.9.0. I’ve tried both of these inside functions, in case that…

---

## [Modify position of axis labels in a PGFPlotsX created with plot()](https://discourse.julialang.org/t/modify-position-of-axis-labels-in-a-pgfplotsx-created-with-plot/100425)

<div class="topic-metadata">

**Author:** [@andresdrenik](https://discourse.julialang.org/u/andresdrenik)\
**Replies:** 0\
**Last updated:** [June 15, 2023, 10:41pm UTC](https://discourse.julialang.org/t/modify-position-of-axis-labels-in-a-pgfplotsx-created-with-plot/100425 "2023-06-15T22:41:19Z")

</div>

Hi, I’m creating the attached figure with pgfplotsx() p1 = plot(𝕊.Ŵ,𝕊.Ĵ, label = "Efficiency", color = 3, linestyle=:dash, legend = :topright, xguide = L"\\hat{W}(\\hat{w})", yguide = L"\\hat{J}(\\hat{w})") #, xguidefontval…

---

## [FlameGraph ProfileView not showing matrix operations](https://discourse.julialang.org/t/flamegraph-profileview-not-showing-matrix-operations/100359)

<div class="topic-metadata">

**Author:** [@hsgg](https://discourse.julialang.org/u/hsgg)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 9:54pm UTC](https://discourse.julialang.org/t/flamegraph-profileview-not-showing-matrix-operations/100359 "2023-06-15T21:54:04Z")

</div>

Hi, I am using FlameGraphs.jl and ProfileView.jl to profile my code with matrix operations. I am fairly new to these profiling tools. On MacOS M1 the matrix operations are not showing up in the flame graph. Here is a MW…

---

## [Efficiently constructing a composition of functions](https://discourse.julialang.org/t/efficiently-constructing-a-composition-of-functions/100420)

<div class="topic-metadata">

**Author:** [@Bizzi](https://discourse.julialang.org/u/Bizzi)\
**Replies:** 4\
**Last updated:** [June 15, 2023, 9:16pm UTC](https://discourse.julialang.org/t/efficiently-constructing-a-composition-of-functions/100420 "2023-06-15T21:16:45Z")

</div>

Hello everyone. I’m trying to build a constructor that (essentially) takes in an array of functions \[f1 f2 f3\] and returns their function composition f1 |\> f2 |\> f3. In this regard, what I want is similar to Flux’s or L…

---

## [Iterator for indexes of true values in BitVector without allocations](https://discourse.julialang.org/t/iterator-for-indexes-of-true-values-in-bitvector-without-allocations/100411)

<div class="topic-metadata">

**Author:** [@gtbil](https://discourse.julialang.org/u/gtbil)\
**Replies:** 5\
**Last updated:** [June 15, 2023, 7:07pm UTC](https://discourse.julialang.org/t/iterator-for-indexes-of-true-values-in-bitvector-without-allocations/100411 "2023-06-15T19:07:11Z")

</div>

I have a BitVector, and I would like to be able to iterate over the indexes in the vector that contain a 1/true, without any allocations. Here’s my attempt - I’m still getting one allocation. bits = BitVector(\[0,1,1,0,1…

---

## [Updating documentation for Interpolations.jl v0.14](https://discourse.julialang.org/t/updating-documentation-for-interpolations-jl-v0-14/84082)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 13\
**Last updated:** [June 15, 2023, 6:22pm UTC](https://discourse.julialang.org/t/updating-documentation-for-interpolations-jl-v0-14/84082 "2023-06-15T18:22:32Z")

</div>

Hello. I’m the current maintainer of Interpolations.jl. We recently released v0.14.0. I would like to follow up with a point release with a focus on the documentation, and I could use your help. JuliaHub tells me that t…

---

## [How to display all minorticks in logscale if axis limit span is too small in Makie?](https://discourse.julialang.org/t/how-to-display-all-minorticks-in-logscale-if-axis-limit-span-is-too-small-in-makie/100403)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [June 15, 2023, 6:20pm UTC](https://discourse.julialang.org/t/how-to-display-all-minorticks-in-logscale-if-axis-limit-span-is-too-small-in-makie/100403 "2023-06-15T18:20:56Z")

</div>

Sometimes when I use log10 as the axis scale and IntervalsBetween(9) as the minorticks, if the data range is not large enough such that less than two majorticks are displayed, all the minorticks are missing. For example,…

---

## [Worker terminated in parallel computation with Gurobi](https://discourse.julialang.org/t/worker-terminated-in-parallel-computation-with-gurobi/100273)

<div class="topic-metadata">

**Author:** [@umbe](https://discourse.julialang.org/u/umbe)\
**Replies:** 5\
**Last updated:** [June 15, 2023, 6:12pm UTC](https://discourse.julialang.org/t/worker-terminated-in-parallel-computation-with-gurobi/100273 "2023-06-15T18:12:25Z")

</div>

Hello to everyone, I am trying to execute in parallel multiple optimizations with Gurobi inside a genetic algorithm written by myself. The code is very long and structured in many parts, here I report the conceptual st…

---

## [Git for Windows/ bash does not like Julia](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 17\
**Last updated:** [June 15, 2023, 5:47pm UTC](https://discourse.julialang.org/t/git-for-windows-bash-does-not-like-julia/100316 "2023-06-15T17:47:33Z")

</div>

I am using git for windows, which installs a bash shell (MINGW64). I can start Julia 1.9.1 in this shell, but then the input gets stuck. I cannot enter anything on the Julia prompt. Bash and Julia are working if I use i…

---

## [Convert Matrix{Vector{Float64}} -\> Array{Float64, 3}?](https://discourse.julialang.org/t/convert-matrix-vector-float64-array-float64-3/100406)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 5\
**Last updated:** [June 15, 2023, 5:45pm UTC](https://discourse.julialang.org/t/convert-matrix-vector-float64-array-float64-3/100406 "2023-06-15T17:45:39Z")

</div>

I have a matrix of vectors, the indices of the matrix serve as (row, column) and the Vector is the z coordinate. Is there some way to convert this? I read data from disk in as Array{Float64, 3} and then try to do a cumu…

---

## [\--heap-size-hint and multithreads](https://discourse.julialang.org/t/heap-size-hint-and-multithreads/100407)

<div class="topic-metadata">

**Author:** [@phymann](https://discourse.julialang.org/u/phymann)\
**Replies:** 1\
**Last updated:** [June 15, 2023, 5:05pm UTC](https://discourse.julialang.org/t/heap-size-hint-and-multithreads/100407 "2023-06-15T17:05:54Z")

</div>

Hi, all When using --heap-size-hint=xG together with -t y, is the total memory size triggering aggressive garbage collection x\*yG or xG?

---

## [Julialang slack channel "join" issues, is the URL out of date?](https://discourse.julialang.org/t/julialang-slack-channel-join-issues-is-the-url-out-of-date/100404)

<div class="topic-metadata">

**Author:** [@schaefer0](https://discourse.julialang.org/u/schaefer0)\
**Replies:** 1\
**Last updated:** [June 15, 2023, 4:31pm UTC](https://discourse.julialang.org/t/julialang-slack-channel-join-issues-is-the-url-out-of-date/100404 "2023-06-15T16:31:19Z")

</div>

at The Julia Language Slack, clicking on the “join us” link returns “this link is no longer active" I just sent email via the link below that, which says: \[Issues using the link above?

---

## [Eating the cake (nat res depletion model) with endogenous time horizon in InfiniteOpt](https://discourse.julialang.org/t/eating-the-cake-nat-res-depletion-model-with-endogenous-time-horizon-in-infiniteopt/100235)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [June 14, 2023, 1:59pm UTC](https://discourse.julialang.org/t/eating-the-cake-nat-res-depletion-model-with-endogenous-time-horizon-in-infiniteopt/100235 "2023-06-14T13:59:50Z")

</div>

Hello, I am trying to numerically solve the dynamic problem of optimal natural resource depletion (aka “eating the cake”) with InfiniteOpt.jl. The script below works fine, but for the time horizon (i.e. the upper bound …

---

## [Is there a way to impose a constraint on the output of a Flux neural network model?](https://discourse.julialang.org/t/is-there-a-way-to-impose-a-constraint-on-the-output-of-a-flux-neural-network-model/100250)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 4\
**Last updated:** [June 15, 2023, 3:24pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-impose-a-constraint-on-the-output-of-a-flux-neural-network-model/100250 "2023-06-15T15:24:23Z")

</div>

Suppose that I have the observed data y\_i\\sim N(0,1/w(x\_i)), where x\_i=i for i=1,...,100. I define the true function w(x\_i)=(x\_i-50)^2 and hope to recover this function with a Flux neural network model. Let’s denote the…

---

## [JuMP + Baron](https://discourse.julialang.org/t/jump-baron/100401)

<div class="topic-metadata">

**Author:** [@selvi-aras](https://discourse.julialang.org/u/selvi-aras)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 3:01pm UTC](https://discourse.julialang.org/t/jump-baron/100401 "2023-06-15T15:01:55Z")

</div>

Dear JuMP community, When I use Baron to solve a small-scale problem, I get an error of following form: =========================================================================== This BARON run may utilize the follow…

---

## [What is going on with the support for arrow-julia?](https://discourse.julialang.org/t/what-is-going-on-with-the-support-for-arrow-julia/100398)

<div class="topic-metadata">

**Author:** [@schaefer0](https://discourse.julialang.org/u/schaefer0)\
**Replies:** 4\
**Last updated:** [June 15, 2023, 2:19pm UTC](https://discourse.julialang.org/t/what-is-going-on-with-the-support-for-arrow-julia/100398 "2023-06-15T14:19:03Z")

</div>

Hi, Please help. the link to “full documentation” is broken at GitHub - apache/arrow-julia: Official Julia implementation of Apache Arrow the link to https://arrow.juliadata.org is broken the link to julia from the f…

---

## [How to add multiple condition for indices on constraints](https://discourse.julialang.org/t/how-to-add-multiple-condition-for-indices-on-constraints/100373)

<div class="topic-metadata">

**Author:** [@Pablo\_Flores](https://discourse.julialang.org/u/Pablo_Flores)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 2:02pm UTC](https://discourse.julialang.org/t/how-to-add-multiple-condition-for-indices-on-constraints/100373 "2023-06-15T14:02:49Z")

</div>

Hello everyone, I’m having problems with my model when I try to add two conditions inside a constraint, where I try to define the constraint where an index cannot be equal to 2 values ​​from a set, and then create spec…

---

## [Is there any command statement to simulate pressing ctrl-c？](https://discourse.julialang.org/t/is-there-any-command-statement-to-simulate-pressing-ctrl-c/100391)

<div class="topic-metadata">

**Author:** [@13299118606](https://discourse.julialang.org/u/13299118606)\
**Replies:** 3\
**Last updated:** [June 15, 2023, 1:39pm UTC](https://discourse.julialang.org/t/is-there-any-command-statement-to-simulate-pressing-ctrl-c/100391 "2023-06-15T13:39:42Z")

</div>

Is there any command statement to simulate pressing ctrl-c to abort the running program, I am designing a gui abort button, and I want it to press the button to stop the running program. Similar to the “interrupt()” func…

---

## [How to avoid messing up x-axis like this?](https://discourse.julialang.org/t/how-to-avoid-messing-up-x-axis-like-this/100394)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 5\
**Last updated:** [June 15, 2023, 12:40pm UTC](https://discourse.julialang.org/t/how-to-avoid-messing-up-x-axis-like-this/100394 "2023-06-15T12:40:27Z")

</div>

How can i make them aligning vertically? i’m using corrplot (from StatsPlots). In one of small plots i have big values in range 10^-5.

---

## [Solving a system of two equations with two variables with certain properties](https://discourse.julialang.org/t/solving-a-system-of-two-equations-with-two-variables-with-certain-properties/100240)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 3\
**Last updated:** [June 15, 2023, 12:39pm UTC](https://discourse.julialang.org/t/solving-a-system-of-two-equations-with-two-variables-with-certain-properties/100240 "2023-06-15T12:39:44Z")

</div>

I wondered if there is any more robust and faster way to solve a system of two equations with two variables than the NLsolve package. The first equation is F(x,y)=0 and the second G(x,y)=0. Both of them are very complic…

---

## [Why Optim.jl does not allow for backwards mode autodifferentiation?](https://discourse.julialang.org/t/why-optim-jl-does-not-allow-for-backwards-mode-autodifferentiation/100346)

<div class="topic-metadata">

**Author:** [@Devetak](https://discourse.julialang.org/u/Devetak)\
**Replies:** 6\
**Last updated:** [June 15, 2023, 12:27pm UTC](https://discourse.julialang.org/t/why-optim-jl-does-not-allow-for-backwards-mode-autodifferentiation/100346 "2023-06-15T12:27:39Z")

</div>

I apologise if this is a silly question. Why Optim.jl does not allow for backwards mode autodifferentiation? If I understand things correctly backwards mode is better for the case when the output dimension is smaller th…

---

## [Readline with default value if no input after timeout](https://discourse.julialang.org/t/readline-with-default-value-if-no-input-after-timeout/100388)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 1\
**Last updated:** [June 15, 2023, 12:12pm UTC](https://discourse.julialang.org/t/readline-with-default-value-if-no-input-after-timeout/100388 "2023-06-15T12:12:21Z")

</div>

I am to write a code that asks for a prompt from the REPL but defaults to some predefined string if the user does not input anything within e.g. 10 seconds. I was thinking of using readline but I can’t seem to find a wa…

---

## [Branch on whether a value is known to the compiler](https://discourse.julialang.org/t/branch-on-whether-a-value-is-known-to-the-compiler/34850)

<div class="topic-metadata">

**Author:** [@Per](https://discourse.julialang.org/u/Per)\
**Replies:** 6\
**Last updated:** [June 15, 2023, 11:00am UTC](https://discourse.julialang.org/t/branch-on-whether-a-value-is-known-to-the-compiler/34850 "2023-06-15T11:00:13Z")

</div>

Here’s something that I’ve been thinking about: What if there was a way to write code that works differently depending on whether some value is known to the compiler? As an example, let’s say I could write: @inline fun…

---

## [ITensor type definition for function input argument](https://discourse.julialang.org/t/itensor-type-definition-for-function-input-argument/100340)

<div class="topic-metadata">

**Author:** [@8me](https://discourse.julialang.org/u/8me)\
**Replies:** 3\
**Last updated:** [June 15, 2023, 10:18am UTC](https://discourse.julialang.org/t/itensor-type-definition-for-function-input-argument/100340 "2023-06-15T10:18:20Z")

</div>

I want to define a function which takes two ITensor of order 1 and dim 4 as input arguments. So my question would be, what is the suggested way of doing this …

---

## [How can I structure a project in multiple modules and have code run in them?](https://discourse.julialang.org/t/how-can-i-structure-a-project-in-multiple-modules-and-have-code-run-in-them/100286)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 10\
**Last updated:** [June 15, 2023, 10:05am UTC](https://discourse.julialang.org/t/how-can-i-structure-a-project-in-multiple-modules-and-have-code-run-in-them/100286 "2023-06-15T10:05:51Z")

</div>

Hi all! Sorry this is probably noobish but I couldn’t figure it out easily from the docs/Google. I’m developing a small project for my thesis. I generated a project structure (src/, Project.toml and Manifest.toml), and …

---

## [How to re-define a variable completely?](https://discourse.julialang.org/t/how-to-re-define-a-variable-completely/100322)

<div class="topic-metadata">

**Author:** [@Lukas\_Hebing](https://discourse.julialang.org/u/Lukas_Hebing)\
**Replies:** 35\
**Last updated:** [June 15, 2023, 9:15am UTC](https://discourse.julialang.org/t/how-to-re-define-a-variable-completely/100322 "2023-06-15T09:15:02Z")

</div>

When I define a wrong (or unuseful) type to a variable declaration I get an error as expected: my\_var::Int64 = 3.2 However, when I continue to work in the REPL, it is impossible to re-define the variable: my\_var = 3.2…

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

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