# Latest

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

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

**Page:** 801

---

## [Display function returning BoundsError](https://discourse.julialang.org/t/display-function-returning-boundserror/93548)

<div class="topic-metadata">

**Author:** [@fda-tome](https://discourse.julialang.org/u/fda-tome)\
**Replies:** 10\
**Last updated:** [January 26, 2023, 11:08pm UTC](https://discourse.julialang.org/t/display-function-returning-boundserror/93548 "2023-01-26T23:08:20Z")

</div>

I am trying to display a plot using the code below, however i\`m getting the following BoundsError BoundsError: attempt to access 256-element Vector{Float64} at index \[257\] using SpecialFunctions using AssociatedLegen…

---

## [Update stdout while a function is running](https://discourse.julialang.org/t/update-stdout-while-a-function-is-running/86285)

<div class="topic-metadata">

**Author:** [@Ashlin\_Harris](https://discourse.julialang.org/u/Ashlin_Harris)\
**Replies:** 8\
**Last updated:** [January 26, 2023, 10:21pm UTC](https://discourse.julialang.org/t/update-stdout-while-a-function-is-running/86285 "2023-01-26T22:21:00Z")

</div>

I’d like to print to stdout continually while a function is running in parallel. It seems that this isn’t possible with asynchonous programming alone, since the scheduler works by interrupting and resuming tasks that are…

---

## [Connecting coordinate transforms in Luxor](https://discourse.julialang.org/t/connecting-coordinate-transforms-in-luxor/93458)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 5\
**Last updated:** [January 26, 2023, 9:47pm UTC](https://discourse.julialang.org/t/connecting-coordinate-transforms-in-luxor/93458 "2023-01-26T21:47:30Z")

</div>

I’m working on my first project with Luxor.jl. As I understand it, Luxor maintains both a “global” coordinate system and a “local” system, and the typical workflow is to transform the local coordinates in some useful way…

---

## [Force update const in module](https://discourse.julialang.org/t/force-update-const-in-module/93594)

<div class="topic-metadata">

**Author:** [@harsh\_kumar](https://discourse.julialang.org/u/harsh_kumar)\
**Replies:** 1\
**Last updated:** [January 26, 2023, 8:43pm UTC](https://discourse.julialang.org/t/force-update-const-in-module/93594 "2023-01-26T20:43:50Z")

</div>

I have created a module that read some data from files. I tried storing the file content in a variable like shown below. But this method doesn’t update the name variable from the file even if i restart the julia session.…

---

## [Calculation of rolling standard deviation by group](https://discourse.julialang.org/t/calculation-of-rolling-standard-deviation-by-group/93550)

<div class="topic-metadata">

**Author:** [@ejlongman](https://discourse.julialang.org/u/ejlongman)\
**Replies:** 7\
**Last updated:** [January 26, 2023, 4:21pm UTC](https://discourse.julialang.org/t/calculation-of-rolling-standard-deviation-by-group/93550 "2023-01-26T16:21:27Z")

</div>

Hello, I have a dataset with year, quarter, firm and EPS. I want to calculate rolling standard deviation over only the 8 previous quarters, by firm. The following code works to create lags by group, and the really terri…

---

## [Function working on parametric types](https://discourse.julialang.org/t/function-working-on-parametric-types/93570)

<div class="topic-metadata">

**Author:** [@weltenbummler](https://discourse.julialang.org/u/weltenbummler)\
**Replies:** 4\
**Last updated:** [January 26, 2023, 8:27pm UTC](https://discourse.julialang.org/t/function-working-on-parametric-types/93570 "2023-01-26T20:27:42Z")

</div>

Hello, For a parametric type such as struct Point{T \<: Real} x::T y::T end I can define the following three functions: coordinates1(p::Point) = (p.x, p.y) coordinates2(p::Point{\<:Real}) = (p.x, p.y) coordinat…

---

## [Julia session crashes when calling \`JavaCall.init()\` from a julia session managed by VSCode](https://discourse.julialang.org/t/julia-session-crashes-when-calling-javacall-init-from-a-julia-session-managed-by-vscode/92555)

<div class="topic-metadata">

**Author:** [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Replies:** 17\
**Last updated:** [January 26, 2023, 8:15pm UTC](https://discourse.julialang.org/t/julia-session-crashes-when-calling-javacall-init-from-a-julia-session-managed-by-vscode/92555 "2023-01-26T20:15:19Z")

</div>

I cant make JavaCall.init() work from a julia session started by the VSCode plugin. Same as for this post RCall vscode REPL crash, it works fine if I do it from a terminal. I have tried on two different machines, with …

---

## [Automatic differentiation + mulit-threading?](https://discourse.julialang.org/t/automatic-differentiation-mulit-threading/93576)

<div class="topic-metadata">

**Author:** [@csev](https://discourse.julialang.org/u/csev)\
**Replies:** 5\
**Last updated:** [January 26, 2023, 7:27pm UTC](https://discourse.julialang.org/t/automatic-differentiation-mulit-threading/93576 "2023-01-26T19:27:18Z")

</div>

Hello – Is it possible to use automatic differentiation (specifically in Optim,jl) with multi-threading? I’m getting type conflicts with race-safe Atomic type in my main objective functions (a likelihood) not being compa…

---

## [How to generate independent vectors via for-loop?](https://discourse.julialang.org/t/how-to-generate-independent-vectors-via-for-loop/93584)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 14\
**Last updated:** [January 26, 2023, 7:15pm UTC](https://discourse.julialang.org/t/how-to-generate-independent-vectors-via-for-loop/93584 "2023-01-26T19:15:51Z")

</div>

At a point in my real code, I want to generate a number of independent vectors based on parameter N(which is calculated at a certain point in the code). For example, if N=3, then I need to generate the following vectors: …

---

## [Unreachable host when adding remote workers](https://discourse.julialang.org/t/unreachable-host-when-adding-remote-workers/93591)

<div class="topic-metadata">

**Author:** [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Replies:** 0\
**Last updated:** [January 26, 2023, 6:48pm UTC](https://discourse.julialang.org/t/unreachable-host-when-adding-remote-workers/93591 "2023-01-26T18:48:51Z")

</div>

Hiya, I’m trying to add some remote workers to my local julia process. Both host and remote run Julia 1.8.5 on Linux. I have passwordless access to the remote machine via SSH making it reachable through its alias withou…

---

## [Static compilation of a mixed python - julia application](https://discourse.julialang.org/t/static-compilation-of-a-mixed-python-julia-application/93566)

<div class="topic-metadata">

**Author:** [@mesonepigreco](https://discourse.julialang.org/u/mesonepigreco)\
**Replies:** 2\
**Last updated:** [January 26, 2023, 6:35pm UTC](https://discourse.julialang.org/t/static-compilation-of-a-mixed-python-julia-application/93566 "2023-01-26T18:35:08Z")

</div>

I have a python application which is enhanced with julia in the performance critical parts. The julia source is called with the julia modle of python, however, the full python code is executed with the python-jl interpre…

---

## [Special case \`lmul!(0, ::AbstractArray)\`?](https://discourse.julialang.org/t/special-case-lmul-0-abstractarray/93557)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [January 26, 2023, 5:00pm UTC](https://discourse.julialang.org/t/special-case-lmul-0-abstractarray/93557 "2023-01-26T17:00:35Z")

</div>

julia\> using LinearAlgebra julia\> function lmul2!(s::Number, X::AbstractArray) iszero(s) && return fill!(X, s) @simd for I in eachindex(X) @inbounds X\[I\] = s\*X\[I\] end …

---

## [Git LFS objects could be installed with a package](https://discourse.julialang.org/t/git-lfs-objects-could-be-installed-with-a-package/93553)

<div class="topic-metadata">

**Author:** [@lazzarello](https://discourse.julialang.org/u/lazzarello)\
**Replies:** 5\
**Last updated:** [January 26, 2023, 4:27pm UTC](https://discourse.julialang.org/t/git-lfs-objects-could-be-installed-with-a-package/93553 "2023-01-26T16:27:05Z")

</div>

There’s an open issue in Pkg.jl about some complexities when installing package dependencies that contain git LFS metadata for large objects. My use case is to require public NASA planetary data in a library that is a de…

---

## [Ask Pkg to resolve oldest possible versions for dependencies](https://discourse.julialang.org/t/ask-pkg-to-resolve-oldest-possible-versions-for-dependencies/93585)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 0\
**Last updated:** [January 26, 2023, 4:26pm UTC](https://discourse.julialang.org/t/ask-pkg-to-resolve-oldest-possible-versions-for-dependencies/93585 "2023-01-26T16:26:48Z")

</div>

The compat for many of my packages looks like LibraryA = 0.1,0.2,0.3,0.4,0.5,0.6. I am starting to worry that I have inadvertently started relying on features introduced on a latter version that I simply did not notice a…

---

## [Makie.text! in an empty Axis](https://discourse.julialang.org/t/makie-text-in-an-empty-axis/93509)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 2\
**Last updated:** [January 26, 2023, 2:23pm UTC](https://discourse.julialang.org/t/makie-text-in-an-empty-axis/93509 "2023-01-26T14:23:43Z")

</div>

I would like to generate a matrix of boxplots that is the Cartesian product of two parameters. The attached is almost what I want but I would like to declutter it by factoring out the repeated “|V|=xx” into column headi…

---

## [It is taking too long to LibPQ.jl report connection time out](https://discourse.julialang.org/t/it-is-taking-too-long-to-libpq-jl-report-connection-time-out/93571)

<div class="topic-metadata">

**Author:** [@Rafael\_Brus](https://discourse.julialang.org/u/Rafael_Brus)\
**Replies:** 0\
**Last updated:** [January 26, 2023, 1:51pm UTC](https://discourse.julialang.org/t/it-is-taking-too-long-to-libpq-jl-report-connection-time-out/93571 "2023-01-26T13:51:15Z")

</div>

It is taking one or two hours to LibPQ.jl report connection time out. I’m using the version 1.14.1 Does anyone have any ideas?

---

## [Subset of eigenvalues/vectors for Generalized eigenproblem](https://discourse.julialang.org/t/subset-of-eigenvalues-vectors-for-generalized-eigenproblem/92856)

<div class="topic-metadata">

**Author:** [@physh](https://discourse.julialang.org/u/physh)\
**Replies:** 11\
**Last updated:** [January 26, 2023, 12:53pm UTC](https://discourse.julialang.org/t/subset-of-eigenvalues-vectors-for-generalized-eigenproblem/92856 "2023-01-26T12:53:47Z")

</div>

Hi all, In my code I have a generalized eigenvalue problem eigen(A,B) where the matrices A and B are both real, symmetric and dense. The size is so far not a big deal (~1500x1500), as I’m still running on my laptop, b…

---

## [Is there a package for "simple" polynomials?](https://discourse.julialang.org/t/is-there-a-package-for-simple-polynomials/93560)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 6\
**Last updated:** [January 26, 2023, 10:34am UTC](https://discourse.julialang.org/t/is-there-a-package-for-simple-polynomials/93560 "2023-01-26T10:34:44Z")

</div>

Hello, I recently implemented some multivariate polynomials with R & C++ and I observed this implementation is faster than my Julia implementation. But in Julia I use TypedPolynomials.jl (or a related package, don’t rem…

---

## [How to add a new \`@series\` within a type recipe?](https://discourse.julialang.org/t/how-to-add-a-new-series-within-a-type-recipe/93561)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 1\
**Last updated:** [January 26, 2023, 9:25am UTC](https://discourse.julialang.org/t/how-to-add-a-new-series-within-a-type-recipe/93561 "2023-01-26T09:25:49Z")

</div>

From this question, I understand that a type recipe is for plotting a specific type with a wider range of signatures. However, I cannot add an hline in the figure within a recipe. using RecipesBase: @recipe, @series st…

---

## [Interaction between \`Logging.jl\`, \`JuliaFormatter.jl\` and \`Documenter.jl\`?](https://discourse.julialang.org/t/interaction-between-logging-jl-juliaformatter-jl-and-documenter-jl/93504)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 3\
**Last updated:** [January 26, 2023, 9:36am UTC](https://discourse.julialang.org/t/interaction-between-logging-jl-juliaformatter-jl-and-documenter-jl/93504 "2023-01-26T09:36:58Z")

</div>

Hi there, I am very confused by the interaction(s?) between Logging.jl, JuliaFormatter.jl and Documenter.jl. My initial problem was that I had blocks like this in my package documentation: \`\`\`@example my\_function() # r…

---

## [Package request: MRC file reader and writer](https://discourse.julialang.org/t/package-request-mrc-file-reader-and-writer/60121)

<div class="topic-metadata">

**Author:** [@Guillawme](https://discourse.julialang.org/u/Guillawme)\
**Replies:** 8\
**Last updated:** [January 26, 2023, 8:18am UTC](https://discourse.julialang.org/t/package-request-mrc-file-reader-and-writer/60121 "2023-01-26T08:18:56Z")

</div>

Hello there, First of all, I hope package requests are appropriate here. I will try my best to make this request as constructive as can be. If requests are not appropriate, I apologize, and I won’t take it personally if…

---

## [How do you do the Matlab equivilant of any,all in Julia](https://discourse.julialang.org/t/how-do-you-do-the-matlab-equivilant-of-any-all-in-julia/93289)

<div class="topic-metadata">

**Author:** [@m\_x155](https://discourse.julialang.org/u/m_x155)\
**Replies:** 8\
**Last updated:** [January 26, 2023, 6:40am UTC](https://discourse.julialang.org/t/how-do-you-do-the-matlab-equivilant-of-any-all-in-julia/93289 "2023-01-26T06:40:32Z")

</div>

In matlab any and all allow you to quickly identify rows or columns of a matrix that meet some criteria. For example if you have an array of logicals such as A=\[1 1;0 1;0 0; 0 1; 1 1\] any(A,2) checks if there are any …

---

## [Generator as an "Array Initializer?"](https://discourse.julialang.org/t/generator-as-an-array-initializer/93379)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 14\
**Last updated:** [January 26, 2023, 5:43am UTC](https://discourse.julialang.org/t/generator-as-an-array-initializer/93379 "2023-01-26T05:43:04Z")

</div>

(inspired by this discussion) Would it make sense for the Array constructor to accept a generator as an “array initializer?” Array{Float64}(i+j for i=1:m, j=1:n) The downside is that it’s redundant with the :typed\_com…

---

## [When I call a function from fortran complied dll in windows, there is a "EXCEPTION\_ACCESS\_VIOLATION" error](https://discourse.julialang.org/t/when-i-call-a-function-from-fortran-complied-dll-in-windows-there-is-a-exception-access-violation-error/93554)

<div class="topic-metadata">

**Author:** [@liaoweiyang2017](https://discourse.julialang.org/u/liaoweiyang2017)\
**Replies:** 0\
**Last updated:** [January 26, 2023, 5:23am UTC](https://discourse.julialang.org/t/when-i-call-a-function-from-fortran-complied-dll-in-windows-there-is-a-exception-access-violation-error/93554 "2023-01-26T05:23:54Z")

</div>

The julia version: (base) D:\\julia\_code\_w\\WEM3D\\WEM3D\\test\\Fwd0114\>julia \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" f…

---

## [Understanding runtime errors with PackageCompiler built executables](https://discourse.julialang.org/t/understanding-runtime-errors-with-packagecompiler-built-executables/29120)

<div class="topic-metadata">

**Author:** [@blaiseli](https://discourse.julialang.org/u/blaiseli)\
**Replies:** 6\
**Last updated:** [January 26, 2023, 5:15am UTC](https://discourse.julialang.org/t/understanding-runtime-errors-with-packagecompiler-built-executables/29120 "2023-01-26T05:15:29Z")

</div>

I tried to build an application using PackageCompiler.build\_executable. I can run the resulting executable with its --help option, but when it comes to deal with actual data processing, I get a “fatal: error thrown and n…

---

## [Julia presentation by Alan Edelman on 25 Jan](https://discourse.julialang.org/t/julia-presentation-by-alan-edelman-on-25-jan/92514)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 4\
**Last updated:** [January 26, 2023, 3:37am UTC](https://discourse.julialang.org/t/julia-presentation-by-alan-edelman-on-25-jan/92514 "2023-01-26T03:37:42Z")

</div>

As a Dell employee I am rather excited that Alan Edelman is presenting about Julia on 25 Jan at 10am CST. Please register and attend! Please do not be put off by this being a Dell HPC event - these are technical presen…

---

## [Why is this code not type stable?](https://discourse.julialang.org/t/why-is-this-code-not-type-stable/93527)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 18\
**Last updated:** [January 26, 2023, 1:20am UTC](https://discourse.julialang.org/t/why-is-this-code-not-type-stable/93527 "2023-01-26T01:20:38Z")

</div>

inner(pc) = sum(pc) outer(pc,σ) = prod(pc,σ) tst = let pc = rand(3,10) σ = 2.0 tst() = losses = outer(inner(pc), σ) end

---

## [MathOptInterface Documentation](https://discourse.julialang.org/t/mathoptinterface-documentation/93544)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 7\
**Last updated:** [January 26, 2023, 12:44am UTC](https://discourse.julialang.org/t/mathoptinterface-documentation/93544 "2023-01-26T00:44:04Z")

</div>

I get an error when I try the sample code model = Utilities.Model{Float64}() from this documentation: Standard form · MathOptInterface Should the documentation instead say model = MOI.Utilities.Model{Float64}() ? jul…

---

## [PackageCompiler with VS Code](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 5\
**Last updated:** [January 26, 2023, 12:24am UTC](https://discourse.julialang.org/t/packagecompiler-with-vs-code/64288 "2023-01-26T00:24:41Z")

</div>

I’ve been making custo system images like so using PackageCompiler create\_sysimage(\[:StatsPlots,:LinearAlgebra,:Calculus, :MCMCChains, :StatsPlots, :Distributions, :BenchmarkTools, :Tullio, :LoopVectorization\], sysimage…

---

## [Changing orientation of plots in gadfly](https://discourse.julialang.org/t/changing-orientation-of-plots-in-gadfly/93506)

<div class="topic-metadata">

**Author:** [@ChrisVL1](https://discourse.julialang.org/u/ChrisVL1)\
**Replies:** 17\
**Last updated:** [January 26, 2023, 12:12am UTC](https://discourse.julialang.org/t/changing-orientation-of-plots-in-gadfly/93506 "2023-01-26T00:12:55Z")

</div>

Sorry to reopen this issue, but I am trying to recreate this same plotting style in Gadfly as this issue Plotting histogram on the y-axis at the end of a time series. I have these two plots and want to plot side by side …

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

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