# Latest

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

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

**Page:** 916

---

## [Passing a SharedArray as a pmap argument](https://discourse.julialang.org/t/passing-a-sharedarray-as-a-pmap-argument/87721)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 1\
**Last updated:** [September 24, 2022, 3:29am UTC](https://discourse.julialang.org/t/passing-a-sharedarray-as-a-pmap-argument/87721 "2022-09-24T03:29:32Z")

</div>

Hi I am thinking about using SharedArrays in the following problem. Suppose I have an index k which increases from 1 to 800 (for instance). And for each k, I have a pool p which has large size and many numbers stored in…

---

## [Valid number](https://discourse.julialang.org/t/valid-number/87727)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 2\
**Last updated:** [September 24, 2022, 1:07am UTC](https://discourse.julialang.org/t/valid-number/87727 "2022-09-24T01:07:00Z")

</div>

What checks should I do to know if the result of a mathematical operation is a valid number? (I can’t use isfinite with the struct I’m using) isnan(), == Inf, == -Inf Any other values?

---

## [Basic workflow suggestions for teaching Julia](https://discourse.julialang.org/t/basic-workflow-suggestions-for-teaching-julia/87713)

<div class="topic-metadata">

**Author:** [@ChrM](https://discourse.julialang.org/u/ChrM)\
**Replies:** 6\
**Last updated:** [September 23, 2022, 9:54pm UTC](https://discourse.julialang.org/t/basic-workflow-suggestions-for-teaching-julia/87713 "2022-09-23T21:54:40Z")

</div>

I would like to introduce Julia to undergraduate students that have some basic knowledge of data analysis with statistical programs (i.e. Eviews, Stata, etc). More specifically, the core syllabus involves the basics of …

---

## [Misunderstanding documentation output using Revise and a Package](https://discourse.julialang.org/t/misunderstanding-documentation-output-using-revise-and-a-package/87703)

<div class="topic-metadata">

**Author:** [@Boris](https://discourse.julialang.org/u/Boris)\
**Replies:** 9\
**Last updated:** [September 23, 2022, 9:12pm UTC](https://discourse.julialang.org/t/misunderstanding-documentation-output-using-revise-and-a-package/87703 "2022-09-23T21:12:25Z")

</div>

Hi, I’ve been trying to get back to basics after being away from Julia for quite a while and I am struggling with some basic concepts, as it seems. My question is, when I am using Revise and Packages does the function …

---

## [Allow minors to register packages with JuliaHub?](https://discourse.julialang.org/t/allow-minors-to-register-packages-with-juliahub/87696)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 4\
**Last updated:** [September 23, 2022, 8:32pm UTC](https://discourse.julialang.org/t/allow-minors-to-register-packages-with-juliahub/87696 "2022-09-23T20:32:24Z")

</div>

I just registered to Julia Hub with my Gitlab account to be able to register packages. I was surprised to learn that only adults (18+) are allowed to register to Julia Hub. This limitation seems to be a legal requiremen…

---

## [Using JuMP and Ipopt I cannot get a simple Euler constrained optimisation problem to output correct answers](https://discourse.julialang.org/t/using-jump-and-ipopt-i-cannot-get-a-simple-euler-constrained-optimisation-problem-to-output-correct-answers/83726)

<div class="topic-metadata">

**Author:** [@sumant28](https://discourse.julialang.org/u/sumant28)\
**Replies:** 7\
**Last updated:** [September 23, 2022, 8:26pm UTC](https://discourse.julialang.org/t/using-jump-and-ipopt-i-cannot-get-a-simple-euler-constrained-optimisation-problem-to-output-correct-answers/83726 "2022-09-23T20:26:03Z")

</div>

Here is the code using JuMP using Ipopt function Euler(x...) beta = 0.9 t = 2 x = \[i for i in x\] logx = log.(x) answer = -(beta .^ ((transpose(1:1:t) .- 1) \* logx)) return answer\[1\] end m = Model(Ipopt.Op…

---

## [Help needed for parsing a database](https://discourse.julialang.org/t/help-needed-for-parsing-a-database/87675)

<div class="topic-metadata">

**Author:** [@Juan\_Mac\_Donagh](https://discourse.julialang.org/u/Juan_Mac_Donagh)\
**Replies:** 5\
**Last updated:** [September 23, 2022, 8:11pm UTC](https://discourse.julialang.org/t/help-needed-for-parsing-a-database/87675 "2022-09-23T20:11:01Z")

</div>

Hi all, I need some help parsing a file, I can’t figure out how to do it. My data looks like this (it’s a 4gb file): 101m A 1 MET 0 P02185 M 1 101m A 2 VAL 1 P02185 V 2 101m…

---

## [The applicable method may be too new: running in world age 32331, while current world is 32332](https://discourse.julialang.org/t/the-applicable-method-may-be-too-new-running-in-world-age-32331-while-current-world-is-32332/87706)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 11\
**Last updated:** [September 23, 2022, 8:10pm UTC](https://discourse.julialang.org/t/the-applicable-method-may-be-too-new-running-in-world-age-32331-while-current-world-is-32332/87706 "2022-09-23T20:10:04Z")

</div>

I want to change the field types of R to be of StaticArray. However, I am having the below error. Could you please help me to solve this issue? using LinearAlgebra, StaticArrays Base.@kwdef mutable struct Rs I::Vector…

---

## [Get vector of vectors of indice of appearances for every unique element of an array](https://discourse.julialang.org/t/get-vector-of-vectors-of-indice-of-appearances-for-every-unique-element-of-an-array/87671)

<div class="topic-metadata">

**Author:** [@elii17](https://discourse.julialang.org/u/elii17)\
**Replies:** 5\
**Last updated:** [September 23, 2022, 5:35pm UTC](https://discourse.julialang.org/t/get-vector-of-vectors-of-indice-of-appearances-for-every-unique-element-of-an-array/87671 "2022-09-23T17:35:44Z")

</div>

Hey, I am trying to get a vector of vectors containing the indices of the appearance of every unique element of an array. So far i have tried y = \[1,2,2,3,5,5,6,1\] unique\_elements = unique(y) unique\_elements = \[1,2,3…

---

## [Makie cycle palette acress all axis?](https://discourse.julialang.org/t/makie-cycle-palette-acress-all-axis/87702)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 2\
**Last updated:** [September 23, 2022, 5:19pm UTC](https://discourse.julialang.org/t/makie-cycle-palette-acress-all-axis/87702 "2022-09-23T17:19:31Z")

</div>

I have a figure with two axis, and I want them to share the same color cycle: fig = Figure() ax1 = Axis(fig\[1, 1\], xscale=log2) ax2 = Axis(fig\[1, 1\], yaxisposition = :right) lines!(ax1, ...) lines!(ax2, ...) I would li…

---

## [Lexer for SQL statements](https://discourse.julialang.org/t/lexer-for-sql-statements/87695)

<div class="topic-metadata">

**Author:** [@AlexanderChen](https://discourse.julialang.org/u/AlexanderChen)\
**Replies:** 3\
**Last updated:** [September 23, 2022, 5:16pm UTC](https://discourse.julialang.org/t/lexer-for-sql-statements/87695 "2022-09-23T17:16:56Z")

</div>

hi, First of, I prefer functions over everything else. But I am in a situation in which I only know the correct argument AFTER the SQL statement is tokenized. I won’t bother you with the details but just know that I ca…

---

## [AutoSysimages.jl - Automate user-specific system images](https://discourse.julialang.org/t/autosysimages-jl-automate-user-specific-system-images/87359)

<div class="topic-metadata">

**Author:** [@petvana](https://discourse.julialang.org/u/petvana)\
**Replies:** 26\
**Last updated:** [September 23, 2022, 2:27pm UTC](https://discourse.julialang.org/t/autosysimages-jl-automate-user-specific-system-images/87359 "2022-09-23T14:27:02Z")

</div>

I’d like to introduce new package AutoSysimages.jl that aims to automate building process of sysimages. It records precompile statements during normal Julia usage. Then, building a user-specific system image for your pro…

---

## [Bayesian multidimensional scaling in Turing.jl, no samples accepted?](https://discourse.julialang.org/t/bayesian-multidimensional-scaling-in-turing-jl-no-samples-accepted/87678)

<div class="topic-metadata">

**Author:** [@pjentsch0](https://discourse.julialang.org/u/pjentsch0)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 3:26pm UTC](https://discourse.julialang.org/t/bayesian-multidimensional-scaling-in-turing-jl-no-samples-accepted/87678 "2022-09-23T15:26:19Z")

</div>

I am trying to implement bayesian multidimensional scaling in Turing (from this paper: https://sites.stat.washington.edu/raftery/Research/PDF/oh2001.pdf). I have a model that I think is correct, but it seems no samples g…

---

## [Collect data from channels](https://discourse.julialang.org/t/collect-data-from-channels/87700)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 2:31pm UTC](https://discourse.julialang.org/t/collect-data-from-channels/87700 "2022-09-23T14:31:02Z")

</div>

I use a Pkg that uses threads and allows you to pass a function that does something at each iteration. I want to send strings to a Channel and put them in a vector. Is this code the best way to do this? Or are there si…

---

## [Security auditing tools for Julia?](https://discourse.julialang.org/t/security-auditing-tools-for-julia/87701)

<div class="topic-metadata">

**Author:** [@DanielIngraham](https://discourse.julialang.org/u/DanielIngraham)\
**Replies:** 0\
**Last updated:** [September 23, 2022, 1:49pm UTC](https://discourse.julialang.org/t/security-auditing-tools-for-julia/87701 "2022-09-23T13:49:05Z")

</div>

Are there any security auditing tools for Julia packages? Something like Python’s bandit?

---

## [Use of tailing Clong arguments in ccall](https://discourse.julialang.org/t/use-of-tailing-clong-arguments-in-ccall/87682)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 1:41pm UTC](https://discourse.julialang.org/t/use-of-tailing-clong-arguments-in-ccall/87682 "2022-09-23T13:41:45Z")

</div>

There seems to be sometimes tailing Clong arguments in ccall in stdlib. Take LinearAlgebra/src/lapack.jl for example, there are functions like: function gebak!(job::AbstractChar, side::AbstractChar, ilo:…

---

## [We as a community should be more understanding of Julia's flaws](https://discourse.julialang.org/t/we-as-a-community-should-be-more-understanding-of-julias-flaws/86030)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 107\
**Last updated:** [September 23, 2022, 12:56pm UTC](https://discourse.julialang.org/t/we-as-a-community-should-be-more-understanding-of-julias-flaws/86030 "2022-09-23T12:56:53Z")

</div>

Hello everyone, Please take this thread in good faith coming from someone who wants to see the language and community flourish, but believes that there are certain frustrating barriers preventing us from doing so. I of…

---

## [REPL crashes with custom pretty printing and Dictionaries](https://discourse.julialang.org/t/repl-crashes-with-custom-pretty-printing-and-dictionaries/87622)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 8\
**Last updated:** [September 23, 2022, 1:02pm UTC](https://discourse.julialang.org/t/repl-crashes-with-custom-pretty-printing-and-dictionaries/87622 "2022-09-23T13:02:07Z")

</div>

The REPL crashes when I run the following code twice, the first time giving the expected StackOverflowError: using Dictionaries: dictionary struct Bcode code::Int end Base.convert(::Type{String}, b::Bcode) = dicti…

---

## [Delete row(s) of a dataframe based on dates in a vector](https://discourse.julialang.org/t/delete-row-s-of-a-dataframe-based-on-dates-in-a-vector/87688)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 2\
**Last updated:** [September 23, 2022, 11:23am UTC](https://discourse.julialang.org/t/delete-row-s-of-a-dataframe-based-on-dates-in-a-vector/87688 "2022-09-23T11:23:49Z")

</div>

I have a dataframe where one of the columns contain many dates. In a vector, I have a few dates. How do I remove those rows of my dataframe where rows contain dates that are found in my vector?

---

## [\`Plots.jl\` colorbar title position](https://discourse.julialang.org/t/plots-jl-colorbar-title-position/87663)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [September 23, 2022, 9:49am UTC](https://discourse.julialang.org/t/plots-jl-colorbar-title-position/87663 "2022-09-23T09:49:13Z")

</div>

Consider with pyplot heatmap(1:10, 1:10, rand(10,10); cbar=:top, cbar\_title="TITLE", colorbar\_titlefontsize=40, colorbar\_titlefontcolor=:white) resulting in How can I make the title of the colorbar appea…

---

## [Multi thread julia kernel (jupyter) fails to start under vscode (insiders)](https://discourse.julialang.org/t/multi-thread-julia-kernel-jupyter-fails-to-start-under-vscode-insiders/65436)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 6\
**Last updated:** [September 23, 2022, 9:12am UTC](https://discourse.julialang.org/t/multi-thread-julia-kernel-jupyter-fails-to-start-under-vscode-insiders/65436 "2022-09-23T09:12:41Z")

</div>

Dear all … As discussed in https://github.com/microsoft/vscode-jupyter/issues/6803, it seems that I am not able to run a multi-julia thread kernel under VSCODE using Jupyer app of VSCODE Insiders. VS Code version: 1.…

---

## [Are we gui yet?](https://discourse.julialang.org/t/are-we-gui-yet/86255)

<div class="topic-metadata">

**Author:** [@dgs](https://discourse.julialang.org/u/dgs)\
**Replies:** 18\
**Last updated:** [September 23, 2022, 9:04am UTC](https://discourse.julialang.org/t/are-we-gui-yet/86255 "2022-09-23T09:04:04Z")

</div>

Hi, I am currently looking for package options to create applications for internal clients. What I would really need is : easy to use (documented package would be nice) widgets (file pickers, sliders…) Plots.jl (sca…

---

## [Problem with GUI ask\_dialog](https://discourse.julialang.org/t/problem-with-gui-ask-dialog/73224)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 18\
**Last updated:** [September 23, 2022, 8:44am UTC](https://discourse.julialang.org/t/problem-with-gui-ask-dialog/73224 "2022-09-23T08:44:46Z")

</div>

Julia is freezing when I use ask\_dialog() in julia file. I added extra code as suggested to let it work, however, the problem is still existing. Any solution? using Gtk win = GtkWindow("gtkwait") if !isinteractive() …

---

## [A limit to free operations of my own type](https://discourse.julialang.org/t/a-limit-to-free-operations-of-my-own-type/87690)

<div class="topic-metadata">

**Author:** [@mongi](https://discourse.julialang.org/u/mongi)\
**Replies:** 0\
**Last updated:** [September 23, 2022, 8:33am UTC](https://discourse.julialang.org/t/a-limit-to-free-operations-of-my-own-type/87690 "2022-09-23T08:33:38Z")

</div>

Hi, I have my own type (fields Vector and Int) and implemented (+,-,\*,/) for it “mulT(args…), addT, subT, divT”, and it works without allocations until length(args)\>7 for multiplication and 9 for addition. For each oper…

---

## [Optimization.jl: Method error while using AutoReverseDiff](https://discourse.julialang.org/t/optimization-jl-method-error-while-using-autoreversediff/87657)

<div class="topic-metadata">

**Author:** [@Luis\_Calderon](https://discourse.julialang.org/u/Luis_Calderon)\
**Replies:** 2\
**Last updated:** [September 23, 2022, 8:09am UTC](https://discourse.julialang.org/t/optimization-jl-method-error-while-using-autoreversediff/87657 "2022-09-23T08:09:59Z")

</div>

Dear all, I’ve been wrestling with this optimization setup all day. I feel like I was close to finishing, but I’ve seem to hit another speed bump. Here is the part of the code that generates the method error. The code w…

---

## [Proper use of recursive fields in structs / types](https://discourse.julialang.org/t/proper-use-of-recursive-fields-in-structs-types/87611)

<div class="topic-metadata">

**Author:** [@ivoytov](https://discourse.julialang.org/u/ivoytov)\
**Replies:** 7\
**Last updated:** [September 23, 2022, 7:57am UTC](https://discourse.julialang.org/t/proper-use-of-recursive-fields-in-structs-types/87611 "2022-09-23T07:57:09Z")

</div>

I am writing my first module and have several data structures that will be all linked to each other, sort of like blog posts and comments. I have a file for each data structure that will house methods relevant to each. T…

---

## [Plotting patches of constant values using Makie](https://discourse.julialang.org/t/plotting-patches-of-constant-values-using-makie/87687)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 3\
**Last updated:** [September 23, 2022, 7:31am UTC](https://discourse.julialang.org/t/plotting-patches-of-constant-values-using-makie/87687 "2022-09-23T07:31:10Z")

</div>

Dear all, I have an issue when plotting patches with Makie when the field has no spatial variations. I provide a MWE below. The returned error is ArgumentError: range step cannot be zero if v=zeros(nel) (constant data…

---

## [How do I compute a multiclass F-score using MLJ?](https://discourse.julialang.org/t/how-do-i-compute-a-multiclass-f-score-using-mlj/78579)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 7\
**Last updated:** [September 23, 2022, 7:06am UTC](https://discourse.julialang.org/t/how-do-i-compute-a-multiclass-f-score-using-mlj/78579 "2022-09-23T07:06:44Z")

</div>

I received the above question in an email.

---

## [Code becomes really slow when I combine StaticArrays and DoubleFloats](https://discourse.julialang.org/t/code-becomes-really-slow-when-i-combine-staticarrays-and-doublefloats/87661)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 18\
**Last updated:** [September 23, 2022, 4:19am UTC](https://discourse.julialang.org/t/code-becomes-really-slow-when-i-combine-staticarrays-and-doublefloats/87661 "2022-09-23T04:19:50Z")

</div>

Hi: I have some code to frequently generate haar random matrices and I want it to run fast. I use the suggestion in https://discourse.julialang.org/t/code-speed-decreases-when-loop-number-increases/78920 that I can use S…

---

## [Dispatch on Type](https://discourse.julialang.org/t/dispatch-on-type/87680)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [September 23, 2022, 1:38am UTC](https://discourse.julialang.org/t/dispatch-on-type/87680 "2022-09-23T01:38:25Z")

</div>

I am hoping to create a function that will dispatch on the type I put in. Basically the function will look at the fields of the structure and do things based on the number of fields and the fieldnames. As a MWE I would…

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

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