# Latest

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

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

**Page:** 840

---

## [Discontinuation of ParallelDataTransfer.jl?](https://discourse.julialang.org/t/discontinuation-of-paralleldatatransfer-jl/91294)

<div class="topic-metadata">

**Author:** [@phlavenk](https://discourse.julialang.org/u/phlavenk)\
**Replies:** 4\
**Last updated:** [December 12, 2022, 4:26pm UTC](https://discourse.julialang.org/t/discontinuation-of-paralleldatatransfer-jl/91294 "2022-12-12T16:26:28Z")

</div>

It seems to me that ParallelDataTransfer.jl is discontinued - the project still misses project.toml file and uses REQUIRE - this blocks the package from being installed in recent versions of Julia. My question is - is t…

---

## [@btime with local function --\> not defined](https://discourse.julialang.org/t/btime-with-local-function-not-defined/10204)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 4:06pm UTC](https://discourse.julialang.org/t/btime-with-local-function-not-defined/10204 "2022-12-12T16:06:13Z")

</div>

dear J wizards—how do I use @btime inside a function with a passed argument? julia\> function testme( afun ); @btime begin afun(2) end end testme (generic function with 1 method) julia\> testme( println ) ERROR: UndefVar…

---

## [How to make one legend entry for same colour?](https://discourse.julialang.org/t/how-to-make-one-legend-entry-for-same-colour/44176)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 3:59pm UTC](https://discourse.julialang.org/t/how-to-make-one-legend-entry-for-same-colour/44176 "2022-12-12T15:59:19Z")

</div>

Is there a way to make one legend entry per colour? I’d like to specify that green represents plants and brown represents nutrients. I am using Plots.jl MWE foo = 1:10; bar = rand(10, 2) my\_plot = plot(foo, bar) bart…

---

## [Can threads communicate with each other while in multithreading?](https://discourse.julialang.org/t/can-threads-communicate-with-each-other-while-in-multithreading/91550)

<div class="topic-metadata">

**Author:** [@le\_ackerman](https://discourse.julialang.org/u/le_ackerman)\
**Replies:** 2\
**Last updated:** [December 12, 2022, 1:07pm UTC](https://discourse.julialang.org/t/can-threads-communicate-with-each-other-while-in-multithreading/91550 "2022-12-12T13:07:28Z")

</div>

Hi! I am a beginner in parallel computing and been fooling around with different packages in multithreading. My question is very specific: I want to write a code to do multithreading… and i want to know is there any …

---

## ["Tuple type used as state" error in solve](https://discourse.julialang.org/t/tuple-type-used-as-state-error-in-solve/91541)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [December 12, 2022, 11:07am UTC](https://discourse.julialang.org/t/tuple-type-used-as-state-error-in-solve/91541 "2022-12-12T11:07:15Z")

</div>

I am solving a system of two equations two unknowns using ODEProblem/solve pair. This works as long as I do not include them within a function. If I do, I get an error: ERROR: Tuple type used as a state. Since a tuple d…

---

## [Documenter keeps asking me for GitHub credentials](https://discourse.julialang.org/t/documenter-keeps-asking-me-for-github-credentials/91509)

<div class="topic-metadata">

**Author:** [@dgagnon](https://discourse.julialang.org/u/dgagnon)\
**Replies:** 2\
**Last updated:** [December 12, 2022, 10:50am UTC](https://discourse.julialang.org/t/documenter-keeps-asking-me-for-github-credentials/91509 "2022-12-12T10:50:47Z")

</div>

Why do I get a GitHub prompt every time I run documenter? Even if I simply open make.jl I get the request. Then I get a second window asking again for my github login and a third asking again for my password. I can en…

---

## [Sampler for Categorical Rational Distributions](https://discourse.julialang.org/t/sampler-for-categorical-rational-distributions/55077)

<div class="topic-metadata">

**Author:** [@Ian\_Slagle](https://discourse.julialang.org/u/Ian_Slagle)\
**Replies:** 3\
**Last updated:** [February 11, 2021, 7:46pm UTC](https://discourse.julialang.org/t/sampler-for-categorical-rational-distributions/55077 "2021-02-11T19:46:27Z")

</div>

With the new Distributions update (this did not appear to happen several versions ago), this works rand(Categorical(\[0.5, 0.5\])) and this works Categorical(\[1//2, 1//2\]) but this causes an error (“ArgumentError: Samp…

---

## [Vectorized sprintf?](https://discourse.julialang.org/t/vectorized-sprintf/91526)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 7\
**Last updated:** [December 12, 2022, 7:58am UTC](https://discourse.julialang.org/t/vectorized-sprintf/91526 "2022-12-12T07:58:07Z")

</div>

In R I can easily generate vectors of formatted strings like this: \> sprintf("a%.2d", 1:10) \[1\] "a01" "a02" "a03" "a04" "a05" "a06" "a07" "a08" "a09" "a10" What is the closest in julia? As @sprintf is a macro I canno…

---

## [Parametric Type for Uninitialized/Undef Objects](https://discourse.julialang.org/t/parametric-type-for-uninitialized-undef-objects/91543)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 0\
**Last updated:** [December 12, 2022, 6:06am UTC](https://discourse.julialang.org/t/parametric-type-for-uninitialized-undef-objects/91543 "2022-12-12T06:06:47Z")

</div>

I’ve learned that you can create type-stable references to uninitialized objects like so: julia\> struct Foo{A} a::A end julia\> x = Ref{Foo{Int}}() Base.RefValue{Foo{Int64}}(Foo{Int64}(1847082903376)) julia\> x\[\] = Foo(…

---

## [How to convert range (given as string) to true vector](https://discourse.julialang.org/t/how-to-convert-range-given-as-string-to-true-vector/91536)

<div class="topic-metadata">

**Author:** [@ceysa75](https://discourse.julialang.org/u/ceysa75)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 5:36am UTC](https://discourse.julialang.org/t/how-to-convert-range-given-as-string-to-true-vector/91536 "2022-12-12T05:36:41Z")

</div>

Hi to you all, suppose I have given the string expression “1-5”. I would like to convert this to a true integer vector, i.e. \[1, 2, 3, 4, 5\]. That seems to be a bit tricky to me. Could someone give me a hint ? Thanks

---

## [Erroneous Unused Binding Errors](https://discourse.julialang.org/t/erroneous-unused-binding-errors/91324)

<div class="topic-metadata">

**Author:** [@jrbaxter0](https://discourse.julialang.org/u/jrbaxter0)\
**Replies:** 3\
**Last updated:** [December 12, 2022, 2:17am UTC](https://discourse.julialang.org/t/erroneous-unused-binding-errors/91324 "2022-12-12T02:17:45Z")

</div>

The linter is reporting Variable has been assigned but not used.Julia(UnusedBinding) for nearly every variable inside a function. Here’s an example: normal is very clearly used on the following line. I assume this is …

---

## [Is it possible to suppress a message printed by a function?](https://discourse.julialang.org/t/is-it-possible-to-suppress-a-message-printed-by-a-function/91506)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 8\
**Last updated:** [December 12, 2022, 1:05am UTC](https://discourse.julialang.org/t/is-it-possible-to-suppress-a-message-printed-by-a-function/91506 "2022-12-12T01:05:18Z")

</div>

Hello, In R there are two function to print a message in the console: cat and message. The message function is better because it is possible to turn off the message it displays (with the suppressMessages function). This…

---

## [Wrong interpolated value in \`SavingCallback\` output](https://discourse.julialang.org/t/wrong-interpolated-value-in-savingcallback-output/91405)

<div class="topic-metadata">

**Author:** [@cuihantao](https://discourse.julialang.org/u/cuihantao)\
**Replies:** 13\
**Last updated:** [December 12, 2022, 12:31am UTC](https://discourse.julialang.org/t/wrong-interpolated-value-in-savingcallback-output/91405 "2022-12-12T00:31:54Z")

</div>

This is a follow-up question on DiffEq skips over event in the first \`solve\` but works after \`reinit!\` - #16 by ChrisRackauckas. The code simulates a circuit in which an AC power source is supplying an RL load through a …

---

## [Why aren't expressions such as \`isinteger\` simplified in case that the result is inferrable from the arguments?](https://discourse.julialang.org/t/why-arent-expressions-such-as-isinteger-simplified-in-case-that-the-result-is-inferrable-from-the-arguments/91297)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 8\
**Last updated:** [December 11, 2022, 7:59pm UTC](https://discourse.julialang.org/t/why-arent-expressions-such-as-isinteger-simplified-in-case-that-the-result-is-inferrable-from-the-arguments/91297 "2022-12-11T19:59:48Z")

</div>

julia\> @code\_typed (n -\> isinteger(n+0.5))(2) CodeInfo( 1 ─ %1 = Base.sitofp(Float64, n)::Float64 │ %2 = Base.add\_float(%1, 0.5)::Float64 │ %3 = Base.trunc\_llvm(%2)::Float64 │ %4 = Base.sub\_float(%2, %3)::Float64 │…

---

## [Decent QP solver?](https://discourse.julialang.org/t/decent-qp-solver/89939)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [December 11, 2022, 7:58pm UTC](https://discourse.julialang.org/t/decent-qp-solver/89939 "2022-12-11T19:58:44Z")

</div>

I’m looking for a QP solver to do a “quick-and-dirty” Optimal Control/MPC implementation for a linear-quadratic system. Does GalacticOptim or Optim support a pure QP solver? A year ago, someone suggested COSMO.jl. Any …

---

## [Read a csv tabular data to use in a p median model](https://discourse.julialang.org/t/read-a-csv-tabular-data-to-use-in-a-p-median-model/91515)

<div class="topic-metadata">

**Author:** [@aninha](https://discourse.julialang.org/u/aninha)\
**Replies:** 2\
**Last updated:** [December 11, 2022, 7:55pm UTC](https://discourse.julialang.org/t/read-a-csv-tabular-data-to-use-in-a-p-median-model/91515 "2022-12-11T19:55:16Z")

</div>

Can u help me to to print an objective function? @objective(m, Min, sum(custo\[j,i\]\*x\[i,j\] for i in destino, j in origem))

---

## [DataDrivenProblem signature not found](https://discourse.julialang.org/t/datadrivenproblem-signature-not-found/91518)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 9\
**Last updated:** [December 11, 2022, 7:17pm UTC](https://discourse.julialang.org/t/datadrivenproblem-signature-not-found/91518 "2022-12-11T19:17:16Z")

</div>

@Julius\_Martensen, @ChrisRackauckas I am symbolically fitting a function using DataDrivenProblem, which is part of the DataDrivenDiffEq ecosystem. I am using the documentation of version 0.8.6 (the documentation of ver…

---

## [Computing titration curves](https://discourse.julialang.org/t/computing-titration-curves/81415)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 12\
**Last updated:** [December 11, 2022, 1:35pm UTC](https://discourse.julialang.org/t/computing-titration-curves/81415 "2022-12-11T13:35:17Z")

</div>

Is there a Julia package for computing titration curves? I’ll like to simulate a titration experiment where a weak acid with several pKa values is titrated by a strong base. Something similar to figure 17.3.5 here: 17.3…

---

## [Functions with recursion for mutidispatch](https://discourse.julialang.org/t/functions-with-recursion-for-mutidispatch/91508)

<div class="topic-metadata">

**Author:** [@xuanquansheng](https://discourse.julialang.org/u/xuanquansheng)\
**Replies:** 4\
**Last updated:** [December 11, 2022, 11:40am UTC](https://discourse.julialang.org/t/functions-with-recursion-for-mutidispatch/91508 "2022-12-11T11:40:30Z")

</div>

Julia packages often have many different types of functions with the same name to achieve multidispatch, but these functions are usually called recursively, and finally stop at a certain function（an orthorhombic design）. …

---

## [Dev version of Documenter.jl on GitHub Actions](https://discourse.julialang.org/t/dev-version-of-documenter-jl-on-github-actions/91498)

<div class="topic-metadata">

**Author:** [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Replies:** 3\
**Last updated:** [December 10, 2022, 6:40pm UTC](https://discourse.julialang.org/t/dev-version-of-documenter-jl-on-github-actions/91498 "2022-12-10T18:40:20Z")

</div>

I installed an unreleased version of Documenter in a package’s docs/Project.toml (docs/Manifest.toml is committed). Local docs build works. But, on github, julia-actions/julia-docdeploy gives: ERROR: expected package …

---

## [Using LinearMap with MPI.jl](https://discourse.julialang.org/t/using-linearmap-with-mpi-jl/91464)

<div class="topic-metadata">

**Author:** [@devanshu](https://discourse.julialang.org/u/devanshu)\
**Replies:** 5\
**Last updated:** [December 11, 2022, 6:34am UTC](https://discourse.julialang.org/t/using-linearmap-with-mpi-jl/91464 "2022-12-11T06:34:24Z")

</div>

Hi, I am finding difficulty in using LinearMaps while also trying to parallelize the code using MPI.jl. Actually, I am using ArnoldiMethod.jl in order to implement shift-invert diagonalization technique. The minimal co…

---

## [Trouble using for loop for SARIMA](https://discourse.julialang.org/t/trouble-using-for-loop-for-sarima/91519)

<div class="topic-metadata">

**Author:** [@Agnes\_H](https://discourse.julialang.org/u/Agnes_H)\
**Replies:** 1\
**Last updated:** [December 11, 2022, 2:30am UTC](https://discourse.julialang.org/t/trouble-using-for-loop-for-sarima/91519 "2022-12-11T02:30:31Z")

</div>

Hi, I apologize in advance, most of my programming skills are self-taught, if there are any weird errors. My goal with this code was to basically create a for-loop that iterates over every column in my data frame separa…

---

## [Why the 1x1 matrix \[2\] is printed \[2;;\]?](https://discourse.julialang.org/t/why-the-1x1-matrix-2-is-printed-2/91486)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 12\
**Last updated:** [December 10, 2022, 8:49pm UTC](https://discourse.julialang.org/t/why-the-1x1-matrix-2-is-printed-2/91486 "2022-12-10T20:49:30Z")

</div>

Hello, julia\> x = repeat(\[2\], 1, 1) 1x1 Matrix{Int64}: 2 julia\> print(x) \[2;;\] Why \[2;;\]?

---

## [Version of Libgit2 on Windows different from from Linux?](https://discourse.julialang.org/t/version-of-libgit2-on-windows-different-from-from-linux/90695)

<div class="topic-metadata">

**Author:** [@hellemo](https://discourse.julialang.org/u/hellemo)\
**Replies:** 1\
**Last updated:** [December 10, 2022, 12:13am UTC](https://discourse.julialang.org/t/version-of-libgit2-on-windows-different-from-from-linux/90695 "2022-12-10T00:13:42Z")

</div>

We have some issues accessing packages hosted on private repos at GitHub. Long story short, using v1.8.3 on windows and ssh-agent with the appropriate key added to known\_hosts, and get the error: SSH host verification: …

---

## [\[ANN\] Tally.jl: Counting things for you](https://discourse.julialang.org/t/ann-tally-jl-counting-things-for-you/91189)

<div class="topic-metadata">

**Author:** [@thofma](https://discourse.julialang.org/u/thofma)\
**Replies:** 18\
**Last updated:** [December 10, 2022, 8:20pm UTC](https://discourse.julialang.org/t/ann-tally-jl-counting-things-for-you/91189 "2022-12-10T20:20:28Z")

</div>

Hi all, I am excited to announce that I have just registered Tally.jl, which is a small package to do tallies, which are also known as frequency counts or bar charts (without the chart). It will tally any iterable objec…

---

## [Removing a Solid Color Background from an image](https://discourse.julialang.org/t/removing-a-solid-color-background-from-an-image/91513)

<div class="topic-metadata">

**Author:** [@GameDungeon](https://discourse.julialang.org/u/GameDungeon)\
**Replies:** 1\
**Last updated:** [December 10, 2022, 7:58pm UTC](https://discourse.julialang.org/t/removing-a-solid-color-background-from-an-image/91513 "2022-12-10T19:58:15Z")

</div>

I have an image with a solid color background. I don’t know what color it will be in advance. I want to take this background and use it as a mask. I’ve tried the image segmentation library, but I don’t know how to make i…

---

## [About adding interface to agda, for allowing code generation of Computer Algebra present on Julia from proof](https://discourse.julialang.org/t/about-adding-interface-to-agda-for-allowing-code-generation-of-computer-algebra-present-on-julia-from-proof/91512)

<div class="topic-metadata">

**Author:** [@jfferson](https://discourse.julialang.org/u/jfferson)\
**Replies:** 0\
**Last updated:** [December 10, 2022, 4:27pm UTC](https://discourse.julialang.org/t/about-adding-interface-to-agda-for-allowing-code-generation-of-computer-algebra-present-on-julia-from-proof/91512 "2022-12-10T16:27:34Z")

</div>

Agda is a logical programming language and theorem prover, that have bring my attention for being compiled by default and by providing support for Category Theory, which allows it to be used at some very elementary level…

---

## [Issues implementing Copula regression using copula and Turing](https://discourse.julialang.org/t/issues-implementing-copula-regression-using-copula-and-turing/90907)

<div class="topic-metadata">

**Author:** [@Kokora](https://discourse.julialang.org/u/Kokora)\
**Replies:** 23\
**Last updated:** [December 10, 2022, 4:23pm UTC](https://discourse.julialang.org/t/issues-implementing-copula-regression-using-copula-and-turing/90907 "2022-12-10T16:23:49Z")

</div>

I am trying to implement a copula regression model by leveraging Turing and copulas in Julia. The author of copula implemented a nice working example as below using Copulas, Distributions, Random, Turing, Plots, StatsP…

---

## [Unexpected result from ==](https://discourse.julialang.org/t/unexpected-result-from/91499)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 8\
**Last updated:** [December 10, 2022, 4:11pm UTC](https://discourse.julialang.org/t/unexpected-result-from/91499 "2022-12-10T16:11:28Z")

</div>

A dictionary in my code is not working because keys that are supposed to be equal are comparing as unequal. Here is a snippet (Julia 1.8.2). Is this a bug, or am I misunderstanding how == is supposed to work? julia\> ab…

---

## [The latex symbol is not working in a plot title](https://discourse.julialang.org/t/the-latex-symbol-is-not-working-in-a-plot-title/90768)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 9\
**Last updated:** [December 10, 2022, 3:22pm UTC](https://discourse.julialang.org/t/the-latex-symbol-is-not-working-in-a-plot-title/90768 "2022-12-10T15:22:25Z")

</div>

I’m using the symbol latex \\lambda in Julia scripts (\\lambda = 5). When I plot, I need to put the \\lambda symbol in the Title, but it’s not working. I am using the Jupyter Notebook on Chrome! using Plots title\_ = \["λ …

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

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