# Latest

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

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

**Page:** 538

---

## [How do I add a command to a button in Tk?](https://discourse.julialang.org/t/how-do-i-add-a-command-to-a-button-in-tk/107237)

<div class="topic-metadata">

**Author:** [@Cyberbully](https://discourse.julialang.org/u/Cyberbully)\
**Replies:** 0\
**Last updated:** [December 6, 2023, 10:48pm UTC](https://discourse.julialang.org/t/how-do-i-add-a-command-to-a-button-in-tk/107237 "2023-12-06T22:48:07Z")

</div>

I’m familiar with python Tkinter and I’m also learning Julia Tk. Today I was experimenting with creating buttons but I couldn’t figure out how to execute a function when the button is pressed. Example of my code: funct…

---

## [Matrix Free Differentiation](https://discourse.julialang.org/t/matrix-free-differentiation/107134)

<div class="topic-metadata">

**Author:** [@nicrummel](https://discourse.julialang.org/u/nicrummel)\
**Replies:** 7\
**Last updated:** [December 6, 2023, 10:36pm UTC](https://discourse.julialang.org/t/matrix-free-differentiation/107134 "2023-12-06T22:36:31Z")

</div>

Hello all, I am an Applied Mathematics PhD student at CU Boulder, and I want to implement fast matrix free finite difference methods using Julia. This appeared at first glance to be quite simple task, but when I compare…

---

## [Debugger not stopping inside open do blocks](https://discourse.julialang.org/t/debugger-not-stopping-inside-open-do-blocks/107190)

<div class="topic-metadata">

**Author:** [@feribg](https://discourse.julialang.org/u/feribg)\
**Replies:** 8\
**Last updated:** [December 6, 2023, 10:20pm UTC](https://discourse.julialang.org/t/debugger-not-stopping-inside-open-do-blocks/107190 "2023-12-06T22:20:49Z")

</div>

Using VSCode with latest Julia ext and Julia 1.9.4 Consider the following example: current\_files = 0 n\_markets = 0 open("report.log", "w") do fpReport println(fpReport, "CHOOSER log with IS\_n=$(is\_…

---

## [What happened to the \`..\` operator?](https://discourse.julialang.org/t/what-happened-to-the-operator/107224)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 7\
**Last updated:** [December 6, 2023, 9:33pm UTC](https://discourse.julialang.org/t/what-happened-to-the-operator/107224 "2023-12-06T21:33:51Z")

</div>

I was trying the example from Makie for a Streamplot which involves the .. operator which is listed as an operator in the docs. However, on Julia 1.9.4 I receive julia\> 1..42 ERROR: UndefVarError: \`..\` not defined Stac…

---

## [Logarithmic colorbar for multiple colored plots](https://discourse.julialang.org/t/logarithmic-colorbar-for-multiple-colored-plots/107205)

<div class="topic-metadata">

**Author:** [@maltee1](https://discourse.julialang.org/u/maltee1)\
**Replies:** 4\
**Last updated:** [December 6, 2023, 7:47pm UTC](https://discourse.julialang.org/t/logarithmic-colorbar-for-multiple-colored-plots/107205 "2023-12-06T19:47:55Z")

</div>

Hi, I have a series of plots, each associated with a different value of a parameter called k. The idea was to plot each line with a different color from a colormap and have the colorbar indicate which value of k each pl…

---

## [Error: Missing from the variable map](https://discourse.julialang.org/t/error-missing-from-the-variable-map/106853)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 4\
**Last updated:** [December 6, 2023, 7:20pm UTC](https://discourse.julialang.org/t/error-missing-from-the-variable-map/106853 "2023-12-06T19:20:55Z")

</div>

Hi there, I am trying to modelling the circulatory system as an electrical circuit, based on the following image: My code is as follows, with resistors, capacitors and inductors based on those in the RC model exampl…

---

## [Possible to emulate Plots.jl's zerolines layout in Makie?](https://discourse.julialang.org/t/possible-to-emulate-plots-jls-zerolines-layout-in-makie/107230)

<div class="topic-metadata">

**Author:** [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 6:52pm UTC](https://discourse.julialang.org/t/possible-to-emulate-plots-jls-zerolines-layout-in-makie/107230 "2023-12-06T18:52:18Z")

</div>

Is there a built-in option in Makie to format an Axis to emulate the style of plot(x,y, framestyle=:zerolines), i.e. no outer spines and axis lines drawn through x=0 and y=0? Essentially, trying to achieve something like…

---

## [Is software-checked integer division actually necessary?](https://discourse.julialang.org/t/is-software-checked-integer-division-actually-necessary/107226)

<div class="topic-metadata">

**Author:** [@mikmoore](https://discourse.julialang.org/u/mikmoore)\
**Replies:** 5\
**Last updated:** [December 6, 2023, 5:26pm UTC](https://discourse.julialang.org/t/is-software-checked-integer-division-actually-necessary/107226 "2023-12-06T17:26:01Z")

</div>

Continuing the discussion from zero(a::Real)?: I’m getting out of my depth now, but it appears that a big limitation in avoiding checks on integer division is that division is handled via LLVM’s sdiv/udiv intrinsics. sd…

---

## [How to clear the terminal of VS code?](https://discourse.julialang.org/t/how-to-clear-the-terminal-of-vs-code/107216)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 2:34pm UTC](https://discourse.julialang.org/t/how-to-clear-the-terminal-of-vs-code/107216 "2023-12-06T14:34:50Z")

</div>

How to clear the terminal of VS code? In MATLAB, we have ‘clc’.

---

## [ERROR: MethodError: Cannot \`convert\` an object of type Missing to an object of type String](https://discourse.julialang.org/t/error-methoderror-cannot-convert-an-object-of-type-missing-to-an-object-of-type-string/107183)

<div class="topic-metadata">

**Author:** [@steveo314](https://discourse.julialang.org/u/steveo314)\
**Replies:** 18\
**Last updated:** [December 6, 2023, 4:09pm UTC](https://discourse.julialang.org/t/error-methoderror-cannot-convert-an-object-of-type-missing-to-an-object-of-type-string/107183 "2023-12-06T16:09:46Z")

</div>

I get this when trying to run CSV.read("chuckle/random.csv", DataFrame) But when running the same thing on another CSV in the same directory, it works fine.

---

## [Performance and memory in large tensor: Julia vs Fortran](https://discourse.julialang.org/t/performance-and-memory-in-large-tensor-julia-vs-fortran/107218)

<div class="topic-metadata">

**Author:** [@fordonez](https://discourse.julialang.org/u/fordonez)\
**Replies:** 3\
**Last updated:** [December 6, 2023, 3:35pm UTC](https://discourse.julialang.org/t/performance-and-memory-in-large-tensor-julia-vs-fortran/107218 "2023-12-06T15:35:23Z")

</div>

I have a tensor with dimensions (I, J, K, L, M, N), which I am modifying through a loop. I am trying to reach Fortran’s speed in Julia (if (I, J, K, L, M, N) = (100, 100, 100, 100, 10, 10) the Julia/Fortran time ratio is…

---

## [Best way to shift a window around a multidimensional Array?](https://discourse.julialang.org/t/best-way-to-shift-a-window-around-a-multidimensional-array/107219)

<div class="topic-metadata">

**Author:** [@capri](https://discourse.julialang.org/u/capri)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 2:53pm UTC](https://discourse.julialang.org/t/best-way-to-shift-a-window-around-a-multidimensional-array/107219 "2023-12-06T14:53:55Z")

</div>

Okay so let’s say I have a multidimensional Array m and I want to extract a window around a center point that has a size of 3 (for example) in every dimension. The following code does what I want: m = rand(5,5,5) cent…

---

## [Assign a float value to a vector originally of integer type](https://discourse.julialang.org/t/assign-a-float-value-to-a-vector-originally-of-integer-type/107215)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 4\
**Last updated:** [December 6, 2023, 1:24pm UTC](https://discourse.julialang.org/t/assign-a-float-value-to-a-vector-originally-of-integer-type/107215 "2023-12-06T13:24:51Z")

</div>

I created a vector: a = \[1, 2, 3 \] Then I tried to modify its value: a\[2\] = 0.1 I got an error. This kind of performace is ok in MATLAB. How to make it work in Julia? I have to declare that ‘a’ is a float vector at…

---

## [zero(a::Real)?](https://discourse.julialang.org/t/zero-a-real/107175)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 24\
**Last updated:** [December 6, 2023, 12:29pm UTC](https://discourse.julialang.org/t/zero-a-real/107175 "2023-12-06T12:29:20Z")

</div>

Why is zero() of a Real an Int(0) ? The example below looks weird, because it’s as if zero(0.3333333333) == 0::Int. It took me some time to locate the cause of my bug. The bug was that I was getting Vector{Int64} from…

---

## [Reload theme in Makie](https://discourse.julialang.org/t/reload-theme-in-makie/107191)

<div class="topic-metadata">

**Author:** [@danbulnet](https://discourse.julialang.org/u/danbulnet)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 10:55am UTC](https://discourse.julialang.org/t/reload-theme-in-makie/107191 "2023-12-06T10:55:58Z")

</div>

Hello, I am trying to make a simple GUI using Makie.jl. I would like to allow users to change themes by pressing a button. I found that the following code doesn’t work: set\_theme!(theme\_light()) while that snippet w…

---

## [\[ANN\] AllocCheck.jl: Static code analysis to prove allocation-free behavior](https://discourse.julialang.org/t/ann-alloccheck-jl-static-code-analysis-to-prove-allocation-free-behavior/106414)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 27\
**Last updated:** [December 6, 2023, 10:56am UTC](https://discourse.julialang.org/t/ann-alloccheck-jl-static-code-analysis-to-prove-allocation-free-behavior/106414 "2023-12-06T10:56:02Z")

</div>

JuliaHub is happy to announce a new open source tool for static code analysis to prove that a Julia function is allocation-free. Use this to ensure that codes are safe for real-time applications, such as how we use it fo…

---

## [Inplace axpy! but storing to a third arguement rather than y](https://discourse.julialang.org/t/inplace-axpy-but-storing-to-a-third-arguement-rather-than-y/107188)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 4\
**Last updated:** [December 6, 2023, 10:49am UTC](https://discourse.julialang.org/t/inplace-axpy-but-storing-to-a-third-arguement-rather-than-y/107188 "2023-12-06T10:49:32Z")

</div>

Hello, from the BLAS package, I know that axpy!(a,X,Y) computes Y += a X, where a is a scalar and X and Y are a matrix or a vector. Now I want instead something like Z = a X + Y So, something like axpyz!(a,X,Y,Z). I…

---

## [Tests pass on github, fail locally](https://discourse.julialang.org/t/tests-pass-on-github-fail-locally/107204)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 10:29am UTC](https://discourse.julialang.org/t/tests-pass-on-github-fail-locally/107204 "2023-12-06T10:29:41Z")

</div>

If I executing: using PkgHelpers, Pkg Pkg.test("PkgHelpers") this fails with: freeze: Error During Test at /home/ufechner/.julia/packages/PkgHelpers/UHq7F/test/runtests.jl:28 Got exception outside of a @test Syste…

---

## [Median doesn't behave like mean on a vector of vectors](https://discourse.julialang.org/t/median-doesnt-behave-like-mean-on-a-vector-of-vectors/107156)

<div class="topic-metadata">

**Author:** [@ovt](https://discourse.julialang.org/u/ovt)\
**Replies:** 3\
**Last updated:** [December 6, 2023, 10:20am UTC](https://discourse.julialang.org/t/median-doesnt-behave-like-mean-on-a-vector-of-vectors/107156 "2023-12-06T10:20:43Z")

</div>

julia\> using Statistics julia\> y = \[\[i for i in 4\*(j-1)+1:4\*j\] for j in 1:3\] 3-element Vector{Vector{Int64}}: \[1, 2, 3, 4\] \[5, 6, 7, 8\] \[9, 10, 11, 12\] julia\> mean(y) 4-element Vector{Float64}: 5.0 6.0 7.0 8.0 …

---

## [DataDrivenDiffEq.jl - Package](https://discourse.julialang.org/t/datadrivendiffeq-jl-package/107209)

<div class="topic-metadata">

**Author:** [@npsasikumar](https://discourse.julialang.org/u/npsasikumar)\
**Replies:** 0\
**Last updated:** [December 6, 2023, 10:08am UTC](https://discourse.julialang.org/t/datadrivendiffeq-jl-package/107209 "2023-12-06T10:08:31Z")

</div>

I am new to Julia, and I am a researcher in mathematics working with the synchronization of nonlinear dynamical systems. While implementing koopman\_res as in the nonlinear\_forced.jl the link: for my system, its showing…

---

## [Stakeholders, Environment, Markets - Depiction in Land Use Models](https://discourse.julialang.org/t/stakeholders-environment-markets-depiction-in-land-use-models/107207)

<div class="topic-metadata">

**Author:** [@uweaschneider](https://discourse.julialang.org/u/uweaschneider)\
**Replies:** 0\
**Last updated:** [December 6, 2023, 9:35am UTC](https://discourse.julialang.org/t/stakeholders-environment-markets-depiction-in-land-use-models/107207 "2023-12-06T09:35:01Z")

</div>

Dear all, If you use JULIA for land use research, I would like to ask you to take part in the following short survey: https://umfragen.uni-hamburg.de/index.php/844656?lang=en The goal is to assess how existing scienti…

---

## [IOError(EOFError() during request with HTTP.jl](https://discourse.julialang.org/t/ioerror-eoferror-during-request-with-http-jl/107184)

<div class="topic-metadata">

**Author:** [@Simone\_Gabbriellini](https://discourse.julialang.org/u/Simone_Gabbriellini)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 8:46am UTC](https://discourse.julialang.org/t/ioerror-eoferror-during-request-with-http-jl/107184 "2023-12-06T08:46:03Z")

</div>

I am experiencing a weird behaviour with HTTP.jl, I have a pipeline where I can load a file, it reads data from the file and then calls three times an AWS endpoint using this code: resp = HTTP.request( "POST", …

---

## [FunctionWrapper somewhat dodges world age restrictions](https://discourse.julialang.org/t/functionwrapper-somewhat-dodges-world-age-restrictions/107025)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 4\
**Last updated:** [December 6, 2023, 5:32am UTC](https://discourse.julialang.org/t/functionwrapper-somewhat-dodges-world-age-restrictions/107025 "2023-12-06T05:32:26Z")

</div>

MWE below, it appears that rather than using a function in a preexisting world age, FunctionWrapper uses the first evaled method inside a function but not any after that; EDIT unless you redefine the function after a cal…

---

## [I'm having trouble installing GPLK](https://discourse.julialang.org/t/im-having-trouble-installing-gplk/107195)

<div class="topic-metadata">

**Author:** [@doriiido](https://discourse.julialang.org/u/doriiido)\
**Replies:** 7\
**Last updated:** [December 6, 2023, 5:31am UTC](https://discourse.julialang.org/t/im-having-trouble-installing-gplk/107195 "2023-12-06T05:31:25Z")

</div>

I’m fairly new to Julia, I’m trying to install GPLK package but this erroe keeps showing up: (@v1.6) pkg\> add GPLK Updating registry at C:\\Users\\doriiido\\.julia\\registries\\General Updating git-repo https://github.com/…

---

## [Failed to load module canberra-gtk-module](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402)

<div class="topic-metadata">

**Author:** [@samq](https://discourse.julialang.org/u/samq)\
**Replies:** 3\
**Last updated:** [December 6, 2023, 5:27am UTC](https://discourse.julialang.org/t/failed-to-load-module-canberra-gtk-module/96402 "2023-12-06T05:27:31Z")

</div>

OS = Ubuntu 18.04 Julia version = Version 1.8.5 (2023-01-08) When using Julia REPL, I type 'using Gtk and every time I get 3 ‘Gtk-Message: 09:14:02.463: Failed to load module “canberra-gtk-module”’ messages. If I type …

---

## [Setting run/build target?](https://discourse.julialang.org/t/setting-run-build-target/107049)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 5:01am UTC](https://discourse.julialang.org/t/setting-run-build-target/107049 "2023-12-06T05:01:10Z")

</div>

Most of the time, my workflow is something like Write module Write script calling functions in module Run script and get an error in a function in the module Fix error Repeat steps 3-4 forever The problem is that afte…

---

## [\`Gurobi.Optimizer()\` throws, reports \`Gurobi Error 10001\` even though there's plenty of memory](https://discourse.julialang.org/t/gurobi-optimizer-throws-reports-gurobi-error-10001-even-though-theres-plenty-of-memory/107193)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 4:41am UTC](https://discourse.julialang.org/t/gurobi-optimizer-throws-reports-gurobi-error-10001-even-though-theres-plenty-of-memory/107193 "2023-12-06T04:41:33Z")

</div>

I’m not sure why, but, some times when I run Gurobi.Optimizer(), it throws, reporting Gurobi Error 10001, which is meant for out-of-memory situations. I’m pretty sure that’s some kind of bug, because there seems to be pl…

---

## [Acceptable pattern when two structs of the same type share the same fields](https://discourse.julialang.org/t/acceptable-pattern-when-two-structs-of-the-same-type-share-the-same-fields/57959)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 14\
**Last updated:** [December 6, 2023, 3:57am UTC](https://discourse.julialang.org/t/acceptable-pattern-when-two-structs-of-the-same-type-share-the-same-fields/57959 "2023-12-06T03:57:51Z")

</div>

Consider the following structs: abstract type AbstractTransport end struct Warp limit::Float32 end struct Galaxy \<:AbstractTransport name::String drive::Warp end struct Intrepid \<:AbstractTransport na…

---

## [Quick way to create a vector of only rationals wthin a range?](https://discourse.julialang.org/t/quick-way-to-create-a-vector-of-only-rationals-wthin-a-range/107189)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 2:18am UTC](https://discourse.julialang.org/t/quick-way-to-create-a-vector-of-only-rationals-wthin-a-range/107189 "2023-12-06T02:18:17Z")

</div>

Hi all, I want to create a vector of 30 rational numbers between 10^(-5) to 10^(-1). Preferably evenly spaced. Is there a quick and efficient way to do it in Julia? Thank you!

---

## [Plot the asymptotes on a bode diagram of any transfer function](https://discourse.julialang.org/t/plot-the-asymptotes-on-a-bode-diagram-of-any-transfer-function/107143)

<div class="topic-metadata">

**Author:** [@Frederic\_Gilt](https://discourse.julialang.org/u/Frederic_Gilt)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 12:25am UTC](https://discourse.julialang.org/t/plot-the-asymptotes-on-a-bode-diagram-of-any-transfer-function/107143 "2023-12-06T00:25:47Z")

</div>

My question is in the title :). I used ControlSystems package but wasn’t able to find a clean way to plot those asymptotes, and didn’t find any related topics here… Do I need to built it from scratch ? Thx for the help ! …

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

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