# Latest

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

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

**Page:** 836

---

## [How to Fill Specific Range of a Function with Layouts?](https://discourse.julialang.org/t/how-to-fill-specific-range-of-a-function-with-layouts/91732)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 6\
**Last updated:** [December 17, 2022, 9:52am UTC](https://discourse.julialang.org/t/how-to-fill-specific-range-of-a-function-with-layouts/91732 "2022-12-17T09:52:10Z")

</div>

Hi all, I want to fill the area under the function from 0 to 2 \\pi, it can be done easily if I only have layout of 1 plot just use plot!. The guide only show this and not very useful: fillrange = 1, fillalpha …

---

## [Accessing multiple values of a dictionary](https://discourse.julialang.org/t/accessing-multiple-values-of-a-dictionary/8648)

<div class="topic-metadata">

**Author:** [@lucatrv](https://discourse.julialang.org/u/lucatrv)\
**Replies:** 5\
**Last updated:** [December 17, 2022, 9:23am UTC](https://discourse.julialang.org/t/accessing-multiple-values-of-a-dictionary/8648 "2022-12-17T09:23:21Z")

</div>

The only way I found to access multiple values of a dictionary is: get.(dictionary, \["a", "b", "c"\], 0) I propose the following syntax: dictionary.\["a", "b", "c"\]

---

## [Why does this function compile on every iteration?](https://discourse.julialang.org/t/why-does-this-function-compile-on-every-iteration/91765)

<div class="topic-metadata">

**Author:** [@karthink](https://discourse.julialang.org/u/karthink)\
**Replies:** 1\
**Last updated:** [December 17, 2022, 8:19am UTC](https://discourse.julialang.org/t/why-does-this-function-compile-on-every-iteration/91765 "2022-12-17T08:19:31Z")

</div>

This function is intended to be called repeatedly until it converges to some value of Xnew: using DifferentialEquations using ControlSystemsBase.MatrixEquations: lyapd function newton\_iterate(X::Union{ODESolution,Funct…

---

## [Using Plots storing as pdf,but the graph has changed](https://discourse.julialang.org/t/using-plots-storing-as-pdf-but-the-graph-has-changed/91762)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 1\
**Last updated:** [December 17, 2022, 6:11am UTC](https://discourse.julialang.org/t/using-plots-storing-as-pdf-but-the-graph-has-changed/91762 "2022-12-17T06:11:05Z")

</div>

using DataFrames,Plots d1=DataFrame(x=\[-0.3,-0.5,-0.1,0.8,0.2,-0.15,-0.2,0.5,0.9,-0.03\],y=\[0.8,0.9,1,2,3,4,5,6,7,8\]) p=Plots.plot(d1\[:,:x\],d1\[:,:y\], seriestype=:scatter,markersize = 4, xlabe…

---

## [Julia 1.8.4 testing period](https://discourse.julialang.org/t/julia-1-8-4-testing-period/91755)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [December 16, 2022, 9:17pm UTC](https://discourse.julialang.org/t/julia-1-8-4-testing-period/91755 "2022-12-16T21:17:19Z")

</div>

The release-1.8 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.8.4, the fourth patch release in the 1.8 series. The list of commits included since v1.8.3 is available here . As…

---

## [Learning to benchmark and find the best function to select a subset of a dataframe](https://discourse.julialang.org/t/learning-to-benchmark-and-find-the-best-function-to-select-a-subset-of-a-dataframe/91704)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 20\
**Last updated:** [December 16, 2022, 7:12pm UTC](https://discourse.julialang.org/t/learning-to-benchmark-and-find-the-best-function-to-select-a-subset-of-a-dataframe/91704 "2022-12-16T19:12:29Z")

</div>

Hello, I have issues related with the same piece of code: using DataFrames using BenchmarkTools function fun1(df::DataFrame, bool\_exp::BitVector) df\_temp = df\[bool\_exp,:\] return df\_temp end function fun2(df::D…

---

## [Slowdown with reinterpret](https://discourse.julialang.org/t/slowdown-with-reinterpret/91749)

<div class="topic-metadata">

**Author:** [@dgleich](https://discourse.julialang.org/u/dgleich)\
**Replies:** 3\
**Last updated:** [December 16, 2022, 7:06pm UTC](https://discourse.julialang.org/t/slowdown-with-reinterpret/91749 "2022-12-16T19:06:47Z")

</div>

I hope I can be forgiven for being surprised at the starkly difference between these implementations. using BenchmarkTools function myfunc1(n::Int) x = Vector{Int}(undef, 3\*n) for i in eachindex(x) x\[i\] = i en…

---

## [Accelerate computation of derivatives of vector field?](https://discourse.julialang.org/t/accelerate-computation-of-derivatives-of-vector-field/91314)

<div class="topic-metadata">

**Author:** [@Michael](https://discourse.julialang.org/u/Michael)\
**Replies:** 12\
**Last updated:** [December 16, 2022, 6:47pm UTC](https://discourse.julialang.org/t/accelerate-computation-of-derivatives-of-vector-field/91314 "2022-12-16T18:47:52Z")

</div>

Hi everyone! I am trying to compute Lie brackets of two vector fields let us say F0 and F1. They’re in dimension 6 and I need brackets until length 5 (thus, derivative up to order 5). Unfortunately this is extremely sl…

---

## [Zarr.jl writing to AWS S3](https://discourse.julialang.org/t/zarr-jl-writing-to-aws-s3/91745)

<div class="topic-metadata">

**Author:** [@sbuczkowski1](https://discourse.julialang.org/u/sbuczkowski1)\
**Replies:** 2\
**Last updated:** [December 16, 2022, 6:18pm UTC](https://discourse.julialang.org/t/zarr-jl-writing-to-aws-s3/91745 "2022-12-16T18:18:36Z")

</div>

Relatively new to julia and jumping into the deep end of the pool trying to test some things for work. Does anyone out there have any pointers they can share on writing zarr data to an S3 bucket? I’ve managed to successf…

---

## [\[ANN\] Jchemo.jl - A Julia package for Chemometrics](https://discourse.julialang.org/t/ann-jchemo-jl-a-julia-package-for-chemometrics/91714)

<div class="topic-metadata">

**Author:** [@matnbo](https://discourse.julialang.org/u/matnbo)\
**Replies:** 0\
**Last updated:** [December 15, 2022, 8:42pm UTC](https://discourse.julialang.org/t/ann-jchemo-jl-a-julia-package-for-chemometrics/91714 "2022-12-15T20:42:34Z")

</div>

I would like to announce a new Julia package for chemometrics. Jchemo.jl provides functions for data exploration and predictions in chemometrics or other domains, with focus on high dimensional data. The package was …

---

## [Why am I wrong about GC?](https://discourse.julialang.org/t/why-am-i-wrong-about-gc/91452)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 4\
**Last updated:** [December 16, 2022, 5:10pm UTC](https://discourse.julialang.org/t/why-am-i-wrong-about-gc/91452 "2022-12-16T17:10:20Z")

</div>

To be clear at the top, I don’t have practical or theoretical background in language/compiler/memory management design. This is not a proposal for an improvement to Julia’s garbage collection. I have one of those “isn’t …

---

## [Simple taylor serie expension that is rather slow](https://discourse.julialang.org/t/simple-taylor-serie-expension-that-is-rather-slow/91677)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 12\
**Last updated:** [December 16, 2022, 4:52pm UTC](https://discourse.julialang.org/t/simple-taylor-serie-expension-that-is-rather-slow/91677 "2022-12-16T16:52:43Z")

</div>

Hey, I have a function g, which definition is the code below, from which I need to extract Taylor coefficients. I am using TaylorSeries.jl to do that but that is rather long… Here is the code : using TaylorSeries, Benc…

---

## [Try-catch statement really slow even if catch is never executed](https://discourse.julialang.org/t/try-catch-statement-really-slow-even-if-catch-is-never-executed/91744)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 9\
**Last updated:** [December 16, 2022, 4:08pm UTC](https://discourse.julialang.org/t/try-catch-statement-really-slow-even-if-catch-is-never-executed/91744 "2022-12-16T16:08:09Z")

</div>

Consider the following functions that add the elements of a vector: slow(v) = begin s = v |\> eltype |\> zero for ele in v try s += ele catch rethrow() end end …

---

## [ERROR: MethodError: no method matching lu!](https://discourse.julialang.org/t/error-methoderror-no-method-matching-lu/91618)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 14\
**Last updated:** [December 16, 2022, 4:00pm UTC](https://discourse.julialang.org/t/error-methoderror-no-method-matching-lu/91618 "2022-12-16T16:00:57Z")

</div>

Could you please help me to solve the error in my MWE (A,b,p,q are snipped from real code)? The error says the problem is with typeof(A\[p,q\]\[1:6,1:6) however its type is SparseMatrixCSC{Float64, Int64}. using SparseArra…

---

## [Nonblocking recvfrom?](https://discourse.julialang.org/t/nonblocking-recvfrom/77740)

<div class="topic-metadata">

**Author:** [@Tine](https://discourse.julialang.org/u/Tine)\
**Replies:** 10\
**Last updated:** [December 16, 2022, 2:51pm UTC](https://discourse.julialang.org/t/nonblocking-recvfrom/77740 "2022-12-16T14:51:59Z")

</div>

Hi, Is it a non-blocking alternative to recvfrom() ? My application consist of two threads, where one of them is listening on a socket for incoming packets. The other thread then sends a signal to this thread after x s…

---

## [Is there a package with similar functionality to ImageView?](https://discourse.julialang.org/t/is-there-a-package-with-similar-functionality-to-imageview/91739)

<div class="topic-metadata">

**Author:** [@del](https://discourse.julialang.org/u/del)\
**Replies:** 0\
**Last updated:** [December 16, 2022, 2:40pm UTC](https://discourse.julialang.org/t/is-there-a-package-with-similar-functionality-to-imageview/91739 "2022-12-16T14:40:51Z")

</div>

I’m looking for the ability to display an image in its own window when requested in the REPL.

---

## [Concatenating matrices with an empty matrix](https://discourse.julialang.org/t/concatenating-matrices-with-an-empty-matrix/91737)

<div class="topic-metadata">

**Author:** [@geo1093](https://discourse.julialang.org/u/geo1093)\
**Replies:** 2\
**Last updated:** [December 16, 2022, 2:35pm UTC](https://discourse.julialang.org/t/concatenating-matrices-with-an-empty-matrix/91737 "2022-12-16T14:35:37Z")

</div>

Hi, I wish to construct a matrix whose blocks depend on (a lot of) conditions. Since I don’t know the final size of my A matrix at the beginning or the first block to start with, I intend to delare it empty and then add…

---

## [Julia in VScode SSH : I have no "julia.executablePath" in settings.json](https://discourse.julialang.org/t/julia-in-vscode-ssh-i-have-no-julia-executablepath-in-settings-json/91729)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.julialang.org/u/sim)\
**Replies:** 4\
**Last updated:** [December 16, 2022, 1:26pm UTC](https://discourse.julialang.org/t/julia-in-vscode-ssh-i-have-no-julia-executablepath-in-settings-json/91729 "2022-12-16T13:26:26Z")

</div>

Hi, I want to use Julia on VSCode through the extension RemoteSSH. Julia is well installed on the remote machine and I know the path of the executable. When launching VSCode on the remote, I get the error message Could…

---

## [How to Save MP4 with CairoMakie?](https://discourse.julialang.org/t/how-to-save-mp4-with-cairomakie/91691)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 7\
**Last updated:** [December 16, 2022, 12:44pm UTC](https://discourse.julialang.org/t/how-to-save-mp4-with-cairomakie/91691 "2022-12-16T12:44:35Z")

</div>

Hi all, from this topic: I want to save the animation in mp4 format, but I do not know is my code right? especially the last line to call the function as well: using CairoMakie, Meshes function sierpinski() # c…

---

## [Parameters.jl strange values in struct coming from dict](https://discourse.julialang.org/t/parameters-jl-strange-values-in-struct-coming-from-dict/91728)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 2\
**Last updated:** [December 16, 2022, 11:14am UTC](https://discourse.julialang.org/t/parameters-jl-strange-values-in-struct-coming-from-dict/91728 "2022-12-16T11:14:23Z")

</div>

I have a struct which I’d like one of the field to come from a dict, so I wrote this code using Parameters # v0.12.3 const D1 = Dict( "a"=\>30, "b"=\>15, "c"=\>18, ) @with\_kw mutable struct Struct1 name::…

---

## [Optimize with Fminbox. Can't find the way how to put tolerance and number of iterations](https://discourse.julialang.org/t/optimize-with-fminbox-cant-find-the-way-how-to-put-tolerance-and-number-of-iterations/91720)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 3\
**Last updated:** [December 16, 2022, 10:42am UTC](https://discourse.julialang.org/t/optimize-with-fminbox-cant-find-the-way-how-to-put-tolerance-and-number-of-iterations/91720 "2022-12-16T10:42:01Z")

</div>

I am sorry for simmple questions. opt = optimize(loss, \[0.01\],\[0.05\], \[0.02\],Fminbox(LBFGS())); How to put tolerance and number of iterations. parameters x\_tol, g\_tol don’t work. thank you in advance.

---

## [R function \`duplicated\`](https://discourse.julialang.org/t/r-function-duplicated/91707)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 14\
**Last updated:** [December 16, 2022, 7:02am UTC](https://discourse.julialang.org/t/r-function-duplicated/91707 "2022-12-16T07:02:16Z")

</div>

Hello, For a vector v, the R function duplicated works as follows. The vector duplicated(v) has the same length as v, and its i-th element is false if and only if v\[i\] is the first occurence of v\[i\] in v. For example du…

---

## [Implementation of matlab function in julia (Root locus plot)](https://discourse.julialang.org/t/implementation-of-matlab-function-in-julia-root-locus-plot/91662)

<div class="topic-metadata">

**Author:** [@GottDengDirk](https://discourse.julialang.org/u/GottDengDirk)\
**Replies:** 10\
**Last updated:** [December 16, 2022, 4:50am UTC](https://discourse.julialang.org/t/implementation-of-matlab-function-in-julia-root-locus-plot/91662 "2022-12-16T04:50:57Z")

</div>

As the title, I can’t reproduce the functionality of the rlocus function in Matlab. i use ControlSystems.jl 1. sys = tf(\[3 1\],\[9 7 5 6\]); \[r,k\] = rlocus(sys) ERROR: syntax: invalid assignment location “\[r, k\]” 2. …

---

## [Defining a global variable in a nested quote](https://discourse.julialang.org/t/defining-a-global-variable-in-a-nested-quote/91724)

<div class="topic-metadata">

**Author:** [@HashBrown](https://discourse.julialang.org/u/HashBrown)\
**Replies:** 1\
**Last updated:** [December 16, 2022, 3:53am UTC](https://discourse.julialang.org/t/defining-a-global-variable-in-a-nested-quote/91724 "2022-12-16T03:53:10Z")

</div>

Suppose we have the following code: foo() = begin var\_name = gensym() is\_init\_var\_name = gensym() quote const $is\_init\_var\_name = Ref{Bool}(false) set\_val(x) = begin if $is\_init…

---

## [Using DataDeps for multiple files in multiple subdirectories](https://discourse.julialang.org/t/using-datadeps-for-multiple-files-in-multiple-subdirectories/91307)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 6\
**Last updated:** [December 16, 2022, 12:56am UTC](https://discourse.julialang.org/t/using-datadeps-for-multiple-files-in-multiple-subdirectories/91307 "2022-12-16T00:56:11Z")

</div>

For my package, I want to download some data upon the user’s request and store them locally for future usage. A bit of research seems to indicate that DataDeps.jl by @oxinabox is the package to use, but I’m not sure if …

---

## [Broadcasting with in-place changes](https://discourse.julialang.org/t/broadcasting-with-in-place-changes/91719)

<div class="topic-metadata">

**Author:** [@Eveee](https://discourse.julialang.org/u/Eveee)\
**Replies:** 9\
**Last updated:** [December 16, 2022, 12:18am UTC](https://discourse.julialang.org/t/broadcasting-with-in-place-changes/91719 "2022-12-16T00:18:45Z")

</div>

Hi all, I am learning broadcasting in julia. I would like to adapt one vector in-place by multiplying it with the contents of another vector, without creating a copy. I tried this: function mymultiply!(a,b) a\*=b …

---

## [Performance optimization of a custom binning function](https://discourse.julialang.org/t/performance-optimization-of-a-custom-binning-function/91616)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 43\
**Last updated:** [December 15, 2022, 11:08pm UTC](https://discourse.julialang.org/t/performance-optimization-of-a-custom-binning-function/91616 "2022-12-15T23:08:36Z")

</div>

I’m looking for feedback on how I might be able to further optimize the below bin function. There are a couple of coding patterns that I’m curious to get feedback on, specifically my approach to internal array initializa…

---

## [Remove Colorbar ticks](https://discourse.julialang.org/t/remove-colorbar-ticks/91675)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.julialang.org/u/ahmed)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 12:09pm UTC](https://discourse.julialang.org/t/remove-colorbar-ticks/91675 "2022-12-15T12:09:24Z")

</div>

I’m using heatmap() in Plots.jl in the gr() backend and I want to remove the ticks and numbers that comes automatically with the colorbar. Is there a way to do that?

---

## [Are temporaries created in one line functions that return the result of a broadcasted function?](https://discourse.julialang.org/t/are-temporaries-created-in-one-line-functions-that-return-the-result-of-a-broadcasted-function/91701)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 9\
**Last updated:** [December 15, 2022, 9:30pm UTC](https://discourse.julialang.org/t/are-temporaries-created-in-one-line-functions-that-return-the-result-of-a-broadcasted-function/91701 "2022-12-15T21:30:56Z")

</div>

Suppose I have fm\_residuals(pc, F) = signed\_dist.(pc,Ref(F)) and tst .= fm\_residuals(pc,F) Will a temporary be created for the signed distances in the scope of fm\_residuals or will the result be directly written into…

---

## [Default \`==\` for struct and mutability](https://discourse.julialang.org/t/default-for-struct-and-mutability/91711)

<div class="topic-metadata">

**Author:** [@Cyril](https://discourse.julialang.org/u/Cyril)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 9:17pm UTC](https://discourse.julialang.org/t/default-for-struct-and-mutability/91711 "2022-12-15T21:17:12Z")

</div>

Hello, I was trying to understand how the default == function for user defined struct is working. I know it recursively calls === on all fields. Thus, my assumption was that for struct containing only immutable fields, …

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

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