# Latest

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

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

**Page:** 611

---

## [Makie - How to clear ax whenever slider value change?](https://discourse.julialang.org/t/makie-how-to-clear-ax-whenever-slider-value-change/103274)

<div class="topic-metadata">

**Author:** [@Ashu](https://discourse.julialang.org/u/Ashu)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 10:31am UTC](https://discourse.julialang.org/t/makie-how-to-clear-ax-whenever-slider-value-change/103274 "2023-08-28T10:31:22Z")

</div>

Hello, How can I clear the ‘ax’ whenever the slider value changes? I don’t want multiple lines at the same time on the scene. The code is using GLMakie # Parameters local m = 0.0 local c = 0.0 # # Create the plot fig…

---

## [Method for Base.\* when at least one argument is of a given type](https://discourse.julialang.org/t/method-for-base-when-at-least-one-argument-is-of-a-given-type/103277)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [August 28, 2023, 9:49am UTC](https://discourse.julialang.org/t/method-for-base-when-at-least-one-argument-is-of-a-given-type/103277 "2023-08-28T09:49:53Z")

</div>

Suppose I want to define a vararg method for Base.\* which is invoked when at least one argument is of a given type Foo (for the purposes of this discussion, struct Foo end suffices). What’s the recommended way of doing …

---

## [Very strange timing results with StaticArrays](https://discourse.julialang.org/t/very-strange-timing-results-with-staticarrays/103269)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 9:35am UTC](https://discourse.julialang.org/t/very-strange-timing-results-with-staticarrays/103269 "2023-08-28T09:35:26Z")

</div>

Running Julia 1.9.3 on an M2 MacBook Air, macOS Ventura 13.4.1. Performing almost any operation requiring a moderate to large StaticArray is extremely slow. I mean extremely slow, measurable in tens of minutes. And this …

---

## [Download images from GitHub from Colab](https://discourse.julialang.org/t/download-images-from-github-from-colab/103280)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 0\
**Last updated:** [August 28, 2023, 9:16am UTC](https://discourse.julialang.org/t/download-images-from-github-from-colab/103280 "2023-08-28T09:16:34Z")

</div>

Hi all, I have a number of jpegs in a GitHub repository that I would like to download in a notebook on Colab, using Julia. I know how to do this using Python but cannot find the Julia equivalent (if it exists). Does anyo…

---

## [State and Parameter vectors for SciML applications](https://discourse.julialang.org/t/state-and-parameter-vectors-for-sciml-applications/69463)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 5\
**Last updated:** [August 28, 2023, 9:05am UTC](https://discourse.julialang.org/t/state-and-parameter-vectors-for-sciml-applications/69463 "2023-08-28T09:05:33Z")

</div>

New State & Parameter Vector Types I’m hoping for others’ thoughts on this idea, including suggestions, alternatives, rotten fruit, etc. All input is welcome. The “Problem” Users have tried to add unit handling to their…

---

## [Fatal: error thrown and no exception handler available for a \* method](https://discourse.julialang.org/t/fatal-error-thrown-and-no-exception-handler-available-for-a-method/103275)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [August 28, 2023, 8:34am UTC](https://discourse.julialang.org/t/fatal-error-thrown-and-no-exception-handler-available-for-a-method/103275 "2023-08-28T08:34:05Z")

</div>

This is an MWE simplified from some code that tries to implement \* for a type and AbstractStrings. In this MWE, the intention is to return a Foo whenever any argument is a Foo. Is this a bug, or user error? I think that…

---

## [Does Flux.jl layers make use of tensor cores in Nvidia GPUs?](https://discourse.julialang.org/t/does-flux-jl-layers-make-use-of-tensor-cores-in-nvidia-gpus/103249)

<div class="topic-metadata">

**Author:** [@lepton01](https://discourse.julialang.org/u/lepton01)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 7:31am UTC](https://discourse.julialang.org/t/does-flux-jl-layers-make-use-of-tensor-cores-in-nvidia-gpus/103249 "2023-08-28T07:31:18Z")

</div>

I was searching for an answer in the Flux.jl, CUDA.jl, cuDNN.jl, but only found \[https://juliagpu.org/2020-10-02-cuda\_2.0/#low--and-mixed-precision-operations\] which talks about independent GPU operations using CUDA.jl. …

---

## [Distributed computing and wasm](https://discourse.julialang.org/t/distributed-computing-and-wasm/103178)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 12:57am UTC](https://discourse.julialang.org/t/distributed-computing-and-wasm/103178 "2023-08-28T00:57:15Z")

</div>

I am saying this as a complete starter to newbie. I am interested about this platform: https://lunatic.solutions/ It basically turns every WASM capable language into an actor language. That means, you do not need to c…

---

## [Make breaking change releases easier to handle. Add release notes to tags via JuliaRegistrator](https://discourse.julialang.org/t/make-breaking-change-releases-easier-to-handle-add-release-notes-to-tags-via-juliaregistrator/103241)

<div class="topic-metadata">

**Author:** [@ianshmean](https://discourse.julialang.org/u/ianshmean)\
**Replies:** 5\
**Last updated:** [August 28, 2023, 12:39am UTC](https://discourse.julialang.org/t/make-breaking-change-releases-easier-to-handle-add-release-notes-to-tags-via-juliaregistrator/103241 "2023-08-28T00:39:03Z")

</div>

The first place I usually go to see why a breaking release is breaking is the package release listing in GitHub. For some reason I’m more likely drawn there than look for a CHANGELOG/HISTORY/NEWS.md However on the relea…

---

## [Tiny executables with all capabilities. was: PackageCompiler.jl a bad name(?) And why can't modules and scripts not be compiled?](https://discourse.julialang.org/t/tiny-executables-with-all-capabilities-was-packagecompiler-jl-a-bad-name-and-why-cant-modules-and-scripts-not-be-compiled/103192)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 4\
**Last updated:** [August 27, 2023, 10:59pm UTC](https://discourse.julialang.org/t/tiny-executables-with-all-capabilities-was-packagecompiler-jl-a-bad-name-and-why-cant-modules-and-scripts-not-be-compiled/103192 "2023-08-27T22:59:19Z")

</div>

People want compiled binary executable for a few reasons, some good, some bad: To distribute just one file, already possible, but it’s not small. It can also be tiny with my idea. To have everything needed in that file…

---

## [Evaluate a formula inside a dataframes to create a new column](https://discourse.julialang.org/t/evaluate-a-formula-inside-a-dataframes-to-create-a-new-column/103208)

<div class="topic-metadata">

**Author:** [@gaspardelanuit](https://discourse.julialang.org/u/gaspardelanuit)\
**Replies:** 15\
**Last updated:** [August 27, 2023, 10:49pm UTC](https://discourse.julialang.org/t/evaluate-a-formula-inside-a-dataframes-to-create-a-new-column/103208 "2023-08-27T22:49:24Z")

</div>

I have a dataset that includes a column which has a formula. The formula is a recipe to get a new column from existing columns. Essentially the data looks like the following \> df = DataFrame(l=1:8, a=\[1, 1, 1, 2, 2, 1…

---

## [Forward compatibility and stability of Julia vs. Packages](https://discourse.julialang.org/t/forward-compatibility-and-stability-of-julia-vs-packages/97968)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 97\
**Last updated:** [August 27, 2023, 7:36pm UTC](https://discourse.julialang.org/t/forward-compatibility-and-stability-of-julia-vs-packages/97968 "2023-08-27T19:36:32Z")

</div>

Totally agree that it’s not common, but: It depends! Take a scenario where you have a project confirmed working, with a set of versions: Julia 1.x.y, PackageA 0.x.y, PackageB 1.x.y, … . And you want to update one of …

---

## [Get iterator "from:to"](https://discourse.julialang.org/t/get-iterator-from-to/103259)

<div class="topic-metadata">

**Author:** [@Denis\_Ivanov](https://discourse.julialang.org/u/Denis_Ivanov)\
**Replies:** 6\
**Last updated:** [August 27, 2023, 7:17pm UTC](https://discourse.julialang.org/t/get-iterator-from-to/103259 "2023-08-27T19:17:18Z")

</div>

Hi, sorry for naive question. I’ve read carefully about iterators , but is there a straightforward method to get “from n to m” elements of iterator, without such as rest(take(iter, m), n)? NB I use complicated generi…

---

## [This month in Julia world - 2023-08](https://discourse.julialang.org/t/this-month-in-julia-world-2023-08/103242)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 5\
**Last updated:** [August 27, 2023, 6:37pm UTC](https://discourse.julialang.org/t/this-month-in-julia-world-2023-08/103242 "2023-08-27T18:37:08Z")

</div>

A monthly newsletter, mostly on julia internals, digestible for casual observers. A biased, incomplete, editorialized list of what I found interesting this month, with contributions from the community. “Internals” Fora …

---

## [How to determine the methods for a callable object without instantiating it?](https://discourse.julialang.org/t/how-to-determine-the-methods-for-a-callable-object-without-instantiating-it/102618)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 18\
**Last updated:** [August 27, 2023, 2:30pm UTC](https://discourse.julialang.org/t/how-to-determine-the-methods-for-a-callable-object-without-instantiating-it/102618 "2023-08-27T14:30:30Z")

</div>

Suppose I have the following: struct A{T} x::T end (a::A)(y) = a.x+y Then I can say julia\> a = A(1); methods(a) # 1 method for callable object: \[1\] (a::A)(y) @ Main REPL\[2\]:1 This list only depends on the type …

---

## [Fix() variables not working with COSMO or Clarabel](https://discourse.julialang.org/t/fix-variables-not-working-with-cosmo-or-clarabel/103255)

<div class="topic-metadata">

**Author:** [@J\_T](https://discourse.julialang.org/u/J_T)\
**Replies:** 1\
**Last updated:** [August 27, 2023, 12:44pm UTC](https://discourse.julialang.org/t/fix-variables-not-working-with-cosmo-or-clarabel/103255 "2023-08-27T12:44:51Z")

</div>

I discoverd the issue trying a non-linear problem, but I can reproduce it with a simple linear example. using JuMP, Tulip, COSMO, Clarabel # const MT = Float64 const MT = Float32 # enough curvature to be interesting x …

---

## [Package addition/tweaking system](https://discourse.julialang.org/t/package-addition-tweaking-system/103253)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [August 27, 2023, 10:29am UTC](https://discourse.julialang.org/t/package-addition-tweaking-system/103253 "2023-08-27T10:29:10Z")

</div>

Imagine there was a package A, which was incomplete for all use cases, but then, you want to add tweaks to it for your use, so you might add some methods to the package function for some compatibility with package B, but…

---

## [Should we make package bundles, test, and document them?](https://discourse.julialang.org/t/should-we-make-package-bundles-test-and-document-them/102394)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 5\
**Last updated:** [August 27, 2023, 10:17am UTC](https://discourse.julialang.org/t/should-we-make-package-bundles-test-and-document-them/102394 "2023-08-27T10:17:29Z")

</div>

I’ve played some Minecraft modpacks and found some insights. First, why does it matter? Because Julia and Minecraft modpacks share many structures, independent modules working together, and the same module in different …

---

## [\`push!\` semantics](https://discourse.julialang.org/t/push-semantics/103234)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 5\
**Last updated:** [August 27, 2023, 2:53am UTC](https://discourse.julialang.org/t/push-semantics/103234 "2023-08-27T02:53:35Z")

</div>

It doesn’t seem to me the behavior of push!, as seen in the program below, is clear from the documentation. Should I file an issue about it, or is this just my confusion? Specifically, I wasn’t sure whether the Vector …

---

## [Can't install any packages with Pkg.jl](https://discourse.julialang.org/t/cant-install-any-packages-with-pkg-jl/103235)

<div class="topic-metadata">

**Author:** [@ssghost](https://discourse.julialang.org/u/ssghost)\
**Replies:** 2\
**Last updated:** [August 27, 2023, 2:17am UTC](https://discourse.julialang.org/t/cant-install-any-packages-with-pkg-jl/103235 "2023-08-27T02:17:40Z")

</div>

OS: MacOSX 12.6 Julia VersionInfo: Julia Version 1.8.5 Commit 17cfb8e65ea (2023-01-08 06:45 UTC) After I typed “\] add \<package\_name\>” in REPL it will always return an Unsatisfiable requirements Error, for example this…

---

## [The method JuMP classifies linear/affine/quadratic/nonlinear... types of constraints](https://discourse.julialang.org/t/the-method-jump-classifies-linear-affine-quadratic-nonlinear-types-of-constraints/103233)

<div class="topic-metadata">

**Author:** [@shawn\_T](https://discourse.julialang.org/u/shawn_T)\
**Replies:** 3\
**Last updated:** [August 26, 2023, 11:08pm UTC](https://discourse.julialang.org/t/the-method-jump-classifies-linear-affine-quadratic-nonlinear-types-of-constraints/103233 "2023-08-26T23:08:19Z")

</div>

I am learning to use Julia optimization package and found that JuMP can identify the above types of constraints from the input constraint expression, I do not quite understand how JuMP does it since I haven’t located the…

---

## [Why is converting from a type to a symbol so slow?](https://discourse.julialang.org/t/why-is-converting-from-a-type-to-a-symbol-so-slow/103212)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 7\
**Last updated:** [August 26, 2023, 9:18pm UTC](https://discourse.julialang.org/t/why-is-converting-from-a-type-to-a-symbol-so-slow/103212 "2023-08-26T21:18:23Z")

</div>

I was experimenting with the sort function where I gave to the by keyword a type related to each element of the array, but types can’t be compared with each others. So I tried to convert the type to a symbol, but it was …

---

## [Problems with Generic numeric type in JuMP](https://discourse.julialang.org/t/problems-with-generic-numeric-type-in-jump/103221)

<div class="topic-metadata">

**Author:** [@J\_T](https://discourse.julialang.org/u/J_T)\
**Replies:** 2\
**Last updated:** [August 26, 2023, 9:45pm UTC](https://discourse.julialang.org/t/problems-with-generic-numeric-type-in-jump/103221 "2023-08-26T21:45:58Z")

</div>

For type T = Float64 the following works, but it fails for either T = Float32 and T = BigFloat: using JuMP, COSMO m = Model( COSMO.Optimizer{T} @variable( m, t \>= zero(T) ) @objective( m, Min, t ) optimize!( m ) It als…

---

## [Not using constants in trees in SymbolicRegression.jl](https://discourse.julialang.org/t/not-using-constants-in-trees-in-symbolicregression-jl/103231)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 0\
**Last updated:** [August 26, 2023, 7:55pm UTC](https://discourse.julialang.org/t/not-using-constants-in-trees-in-symbolicregression-jl/103231 "2023-08-26T19:55:25Z")

</div>

Hi, I wonder how can we tell SymbolicRegression.jl to not use any constants (e.g., 2.0, 15.6) when creating its trees, only the variables. I am using SRRegressor via MLJ interface. Thank you. Regards

---

## [What is the meaning of the @overlay macro?](https://discourse.julialang.org/t/what-is-the-meaning-of-the-overlay-macro/103222)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [August 26, 2023, 8:56pm UTC](https://discourse.julialang.org/t/what-is-the-meaning-of-the-overlay-macro/103222 "2023-08-26T20:56:22Z")

</div>

I saw this here: allow \`@overlay\` for methods with return type declaration by aviatesk · Pull Request #51054 · JuliaLang/julia · GitHub But I could not find any documentation about it. Does someone know?

---

## [How to check if variable is a typed global?](https://discourse.julialang.org/t/how-to-check-if-variable-is-a-typed-global/103172)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 5\
**Last updated:** [August 26, 2023, 8:18pm UTC](https://discourse.julialang.org/t/how-to-check-if-variable-is-a-typed-global/103172 "2023-08-26T20:18:58Z")

</div>

(other then try to assign a wrong-typed value and catch the error)

---

## [Tab views in GLMakie](https://discourse.julialang.org/t/tab-views-in-glmakie/103227)

<div class="topic-metadata">

**Author:** [@tgf314](https://discourse.julialang.org/u/tgf314)\
**Replies:** 1\
**Last updated:** [August 26, 2023, 7:15pm UTC](https://discourse.julialang.org/t/tab-views-in-glmakie/103227 "2023-08-26T19:15:38Z")

</div>

I’d like to implement a tab view using GLMakie. By that I mean an area of a layout with a row of buttons that can select from a set of items (for example Axis objects) to display in the view. Since I’m not sure of the …

---

## [Fix \`ylims!\` so zooming affects only \`xlims!\` (Makie.jl 2D)](https://discourse.julialang.org/t/fix-ylims-so-zooming-affects-only-xlims-makie-jl-2d/103226)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 1\
**Last updated:** [August 26, 2023, 6:42pm UTC](https://discourse.julialang.org/t/fix-ylims-so-zooming-affects-only-xlims-makie-jl-2d/103226 "2023-08-26T18:42:23Z")

</div>

How can fix ylims! so zooming affects only xlims! in Makie 2D? Or alternatively zoom only horizontally? I have a very long trace plot, where this would come in handy.

---

## [\`DateTime\` arithmetic on \`Microsecond\` (or smaller) scale](https://discourse.julialang.org/t/datetime-arithmetic-on-microsecond-or-smaller-scale/102949)

<div class="topic-metadata">

**Author:** [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Replies:** 99\
**Last updated:** [August 26, 2023, 6:15pm UTC](https://discourse.julialang.org/t/datetime-arithmetic-on-microsecond-or-smaller-scale/102949 "2023-08-26T18:15:46Z")

</div>

There is currently a PR on the repo with very lively discussion about what the following operation should do: using Dates a = now() b = a + Nanosecond(1) (the situation is analogous with Microsecond) Currently, the …

---

## [Map a vector to multiple vectors](https://discourse.julialang.org/t/map-a-vector-to-multiple-vectors/103156)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 13\
**Last updated:** [August 26, 2023, 4:45pm UTC](https://discourse.julialang.org/t/map-a-vector-to-multiple-vectors/103156 "2023-08-26T16:45:41Z")

</div>

Is there a simple way to map a vector to multiple vectors? vin = \[1,2,3,4\] v1, v2, v3 = map(v) do x return x, 2x, 3x end The above doesn’t work, but that shows what I mean. Usually, you’d get a vector of tuples from …

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

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