# Latest

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

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

**Page:** 1363

---

## [Vector multiplication](https://discourse.julialang.org/t/vector-multiplication/62830)

<div class="topic-metadata">

**Author:** [@BYS](https://discourse.julialang.org/u/BYS)\
**Replies:** 0\
**Last updated:** [June 13, 2021, 9:25am UTC](https://discourse.julialang.org/t/vector-multiplication/62830 "2021-06-13T09:25:00Z")

</div>

Hi, everyone I find there is a little different between model2=Model() h\_set=Vector(1:10) h0=Vector(1.1:0.1:2) @variable(model2,h\[h\_set,1:20\]) @constraint(model2,ones(10)'\*(h0-h\[:,1\])==0) and model2=Model() h0=Vector…

---

## [Finding Item in Dict](https://discourse.julialang.org/t/finding-item-in-dict/62814)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 4\
**Last updated:** [June 13, 2021, 7:47am UTC](https://discourse.julialang.org/t/finding-item-in-dict/62814 "2021-06-13T07:47:48Z")

</div>

I’m trying to add a new value to data tables in a dictionary, but when I run this. using DataFrames general\_ledger=Dict( "dividends" =\> DataFrame( date=Vector{String}(), …

---

## [Plots.jl - Controlling dash pattern with PGFPlotsx Backend](https://discourse.julialang.org/t/plots-jl-controlling-dash-pattern-with-pgfplotsx-backend/55332)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 0\
**Last updated:** [February 15, 2021, 4:21pm UTC](https://discourse.julialang.org/t/plots-jl-controlling-dash-pattern-with-pgfplotsx-backend/55332 "2021-02-15T16:21:36Z")

</div>

I encountered following problem. The default settings of pgfplots produce dashed lines which are indistinguishable from dotted lines at larger line widths. Consider the MWE using Plots pgfplotsx() plot(x -\> sin(x), line…

---

## [Cannot show plot with pgfplots backend](https://discourse.julialang.org/t/cannot-show-plot-with-pgfplots-backend/19170)

<div class="topic-metadata">

**Author:** [@vietspaceanh](https://discourse.julialang.org/u/vietspaceanh)\
**Replies:** 0\
**Last updated:** [January 1, 2019, 7:54pm UTC](https://discourse.julialang.org/t/cannot-show-plot-with-pgfplots-backend/19170 "2019-01-01T19:54:46Z")

</div>

When I try a simple plot with pgfplots backend with the following code: using Plots pgfplots() plot(rand(10)) I got the following error: Error showing value of type Plots.Plot{Plots.PGFPlotsBackend}: ERROR: SystemEr…

---

## [Basic writing to file question(s)](https://discourse.julialang.org/t/basic-writing-to-file-question-s/62757)

<div class="topic-metadata">

**Author:** [@Brian\_Becsi](https://discourse.julialang.org/u/Brian_Becsi)\
**Replies:** 5\
**Last updated:** [June 13, 2021, 6:09am UTC](https://discourse.julialang.org/t/basic-writing-to-file-question-s/62757 "2021-06-13T06:09:02Z")

</div>

Hello! I’m still pretty new. I’ve checked the documentation on this but am not getting the full picture yet. Here’s my situation: I’m doing some benchmarking and want to test my program on different inputs one at a time…

---

## [How to add a dense and a sparse vector and get a dense vector as result](https://discourse.julialang.org/t/how-to-add-a-dense-and-a-sparse-vector-and-get-a-dense-vector-as-result/62802)

<div class="topic-metadata">

**Author:** [@hardy](https://discourse.julialang.org/u/hardy)\
**Replies:** 7\
**Last updated:** [June 13, 2021, 4:32am UTC](https://discourse.julialang.org/t/how-to-add-a-dense-and-a-sparse-vector-and-get-a-dense-vector-as-result/62802 "2021-06-13T04:32:27Z")

</div>

Hello, I’d like to add a sparse vector and a dense one and get a dense vector as result. S=SparseVector(11,\[1;11\],\[1;1\]) D=ones(11) display(S+D) D+S In both cases I get an 11-element SparseVector with 11 stored entrie…

---

## [\[ANN\] Dictionaries.jl 0.3.0 - now using ordered collections by default](https://discourse.julialang.org/t/ann-dictionaries-jl-0-3-0-now-using-ordered-collections-by-default/41249)

<div class="topic-metadata">

**Author:** [@andyferris](https://discourse.julialang.org/u/andyferris)\
**Replies:** 5\
**Last updated:** [June 13, 2021, 2:46am UTC](https://discourse.julialang.org/t/ann-dictionaries-jl-0-3-0-now-using-ordered-collections-by-default/41249 "2021-06-13T02:46:45Z")

</div>

I’d like to announce the release of Dictionaries.jl v0.3.0. The headline changes are that dictionaries and indices now have a well-defined order (just like in OrderedCollections.jl) and that HashDictionary has been rena…

---

## [containers.Map(keyset, valueset) from Matlab to Julia](https://discourse.julialang.org/t/containers-map-keyset-valueset-from-matlab-to-julia/62768)

<div class="topic-metadata">

**Author:** [@GAiello](https://discourse.julialang.org/u/GAiello)\
**Replies:** 1\
**Last updated:** [June 13, 2021, 1:26am UTC](https://discourse.julialang.org/t/containers-map-keyset-valueset-from-matlab-to-julia/62768 "2021-06-13T01:26:18Z")

</div>

Hello Everybody, Is there in Julia something similar to Matlab’s command containers.Map(keyset, valueset)? Thank you very much

---

## [Csv and dataframes and missing values](https://discourse.julialang.org/t/csv-and-dataframes-and-missing-values/62706)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 9\
**Last updated:** [June 12, 2021, 11:05pm UTC](https://discourse.julialang.org/t/csv-and-dataframes-and-missing-values/62706 "2021-06-12T23:05:28Z")

</div>

Quite possibly one of the most beloved topics in this forum … I have searched the forum and cannot find simple answers, or the answers are (literally) years old. My csv file has strings and floats which might be missin…

---

## [Getting to the Pkg REPL in Windows Julia REPL](https://discourse.julialang.org/t/getting-to-the-pkg-repl-in-windows-julia-repl/62711)

<div class="topic-metadata">

**Author:** [@dammit26354](https://discourse.julialang.org/u/dammit26354)\
**Replies:** 10\
**Last updated:** [June 12, 2021, 11:02pm UTC](https://discourse.julialang.org/t/getting-to-the-pkg-repl-in-windows-julia-repl/62711 "2021-06-12T23:02:19Z")

</div>

…apologies if this has been answered before. It is not intuitive. In the Julia REPL, I have tried: \] “\]” SHF+\] ALT+\] and many, many other keystroke combinations to fire up the Pkg REPL, help, Pkg help - NONE of the …

---

## [Cannot find overloaded method](https://discourse.julialang.org/t/cannot-find-overloaded-method/48633)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 28\
**Last updated:** [June 12, 2021, 9:43pm UTC](https://discourse.julialang.org/t/cannot-find-overloaded-method/48633 "2021-06-12T21:43:23Z")

</div>

At least for interactive usage it is often convenient to have a replace method for strings that can perform multiple replacements at once. So I try do define it, but julia (1.5) doesn’t find the new method even though it…

---

## [Package installation UI](https://discourse.julialang.org/t/package-installation-ui/58231)

<div class="topic-metadata">

**Author:** [@Abdulrhmn\_Ghanem](https://discourse.julialang.org/u/Abdulrhmn_Ghanem)\
**Replies:** 8\
**Last updated:** [June 12, 2021, 9:27pm UTC](https://discourse.julialang.org/t/package-installation-ui/58231 "2021-06-12T21:27:47Z")

</div>

I am willing to work on the VSCode extension for GSoC. Just to warm up I tried to work on the Package installation UI idea. This evening I hacked something together. For now, it can: Install the packages in the toml f…

---

## [Tutorial on closures?](https://discourse.julialang.org/t/tutorial-on-closures/62749)

<div class="topic-metadata">

**Author:** [@Arrigo\_Benedetti](https://discourse.julialang.org/u/Arrigo_Benedetti)\
**Replies:** 5\
**Last updated:** [June 12, 2021, 9:07pm UTC](https://discourse.julialang.org/t/tutorial-on-closures/62749 "2021-06-12T21:07:59Z")

</div>

I want to learn more about closures and their use with Julia. Does anyone recommend any paper/tutorial/book/blog post clearly explaining closures and what are their use cases for Julia programming? Most of the material …

---

## [\[ANN\] Shrike.jl: Julia beats optimized C++ (Fast accurate approximate nearest neighbor search)](https://discourse.julialang.org/t/ann-shrike-jl-julia-beats-optimized-c-fast-accurate-approximate-nearest-neighbor-search/62763)

<div class="topic-metadata">

**Author:** [@djpasseyjr](https://discourse.julialang.org/u/djpasseyjr)\
**Replies:** 13\
**Last updated:** [June 12, 2021, 8:59pm UTC](https://discourse.julialang.org/t/ann-shrike-jl-julia-beats-optimized-c-fast-accurate-approximate-nearest-neighbor-search/62763 "2021-06-12T20:59:23Z")

</div>

I wrote a Julia package (Shrike.jl) for approximate nearest neighbor search. My algorithm draws heavily on the mrpt algorithm and uses the same principles behind annoy (a popular approximate nearest neighbor package by S…

---

## [Append to JuliaDB tables in a Dict](https://discourse.julialang.org/t/append-to-juliadb-tables-in-a-dict/62809)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 0\
**Last updated:** [June 12, 2021, 7:49pm UTC](https://discourse.julialang.org/t/append-to-juliadb-tables-in-a-dict/62809 "2021-06-12T19:49:39Z")

</div>

I have this dictionary on nsparce tables. general\_ledger=Dict( #:description =\> ndsparse(date=date, memo=memo), :dividends =\> ndsparse((debit=x, credit=y), (balance=z,)), :expenses =\> ndspars…

---

## [Check if an array with strings and floating contains a string](https://discourse.julialang.org/t/check-if-an-array-with-strings-and-floating-contains-a-string/62800)

<div class="topic-metadata">

**Author:** [@GAiello](https://discourse.julialang.org/u/GAiello)\
**Replies:** 6\
**Last updated:** [June 12, 2021, 6:27pm UTC](https://discourse.julialang.org/t/check-if-an-array-with-strings-and-floating-contains-a-string/62800 "2021-06-12T18:27:47Z")

</div>

Hello Everybody, Let’s say I have a 2-element array containing one floating and a string, something like 2-element Array{Any,1}: "0 0" 1 I want to check whether the array contains the string “0 0”. I tried isassign…

---

## [Testing nested parallelization with @distributed and @spawn/@threads](https://discourse.julialang.org/t/testing-nested-parallelization-with-distributed-and-spawn-threads/62803)

<div class="topic-metadata">

**Author:** [@swishmas](https://discourse.julialang.org/u/swishmas)\
**Replies:** 0\
**Last updated:** [June 12, 2021, 4:37pm UTC](https://discourse.julialang.org/t/testing-nested-parallelization-with-distributed-and-spawn-threads/62803 "2021-06-12T16:37:22Z")

</div>

I know this is a popular topic, but I wanted to check my understanding on nested parallelization with @distributed, @spawn, and @threads. Here’s a working example of a few different strategies using LinearAlgebra impor…

---

## [Updating Julia has broken scatter plots](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712)

<div class="topic-metadata">

**Author:** [@scotts](https://discourse.julialang.org/u/scotts)\
**Replies:** 6\
**Last updated:** [June 12, 2021, 4:13pm UTC](https://discourse.julialang.org/t/updating-julia-has-broken-scatter-plots/62712 "2021-06-12T16:13:56Z")

</div>

After recently updating Julia from 1.4 to 1.6 I’ve found I can’t display data in scatter plots. Plots works fine for standard line charts, but using scatter(x,y) or plot(x,y,seriestype=:scatter) both just display axes w…

---

## [Musl needed for 1.6.1 is missing on ubuntu 20.04](https://discourse.julialang.org/t/musl-needed-for-1-6-1-is-missing-on-ubuntu-20-04/62798)

<div class="topic-metadata">

**Author:** [@dmg](https://discourse.julialang.org/u/dmg)\
**Replies:** 2\
**Last updated:** [June 12, 2021, 3:07pm UTC](https://discourse.julialang.org/t/musl-needed-for-1-6-1-is-missing-on-ubuntu-20-04/62798 "2021-06-12T15:07:19Z")

</div>

Hi all, I’ve been successfully running 1.5.3 for a while now, but a package I installed (Actors) said I needed 1.6 so I downloaded 1.6.1. It didn’t run on my Ubuntu 20.04 system and running ldd on the executable gave…

---

## [Replacing eval(Meta.parse(...)) with macro](https://discourse.julialang.org/t/replacing-eval-meta-parse-with-macro/62788)

<div class="topic-metadata">

**Author:** [@MartaVanin](https://discourse.julialang.org/u/MartaVanin)\
**Replies:** 4\
**Last updated:** [June 12, 2021, 1:31pm UTC](https://discourse.julialang.org/t/replacing-eval-meta-parse-with-macro/62788 "2021-06-12T13:31:41Z")

</div>

Hello, I want to push a number of anonymous functions to an array. Each function is largely the same but in some cases some addends are scalars instead of variables. Say that there are three different cases, like: case…

---

## [How to avoid instability in DifferentialEquations?](https://discourse.julialang.org/t/how-to-avoid-instability-in-differentialequations/62739)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 3\
**Last updated:** [June 12, 2021, 12:06pm UTC](https://discourse.julialang.org/t/how-to-avoid-instability-in-differentialequations/62739 "2021-06-12T12:06:01Z")

</div>

Hello, I am trying to model the interaction between bacteria and phages but using certain combinations of parameters (namely the time and amount of phage inoculum) I get instability and the integrator aborts the session…

---

## [Is there a function to check if every package in my \[deps\] has a \[compat\] entry in Project.toml?](https://discourse.julialang.org/t/is-there-a-function-to-check-if-every-package-in-my-deps-has-a-compat-entry-in-project-toml/62708)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 7\
**Last updated:** [June 12, 2021, 9:58am UTC](https://discourse.julialang.org/t/is-there-a-function-to-check-if-every-package-in-my-deps-has-a-compat-entry-in-project-toml/62708 "2021-06-12T09:58:05Z")

</div>

Sometimes, before I publish a new version of the package I accidentally forget that I’ve added a package to the dependencies and forgot to add \[compat\] entries in Project.toml. I think I should add a git hook to remind …

---

## [Generic function to bind arguments somewhere?](https://discourse.julialang.org/t/generic-function-to-bind-arguments-somewhere/62787)

<div class="topic-metadata">

**Author:** [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Replies:** 0\
**Last updated:** [June 12, 2021, 10:02am UTC](https://discourse.julialang.org/t/generic-function-to-bind-arguments-somewhere/62787 "2021-06-12T10:02:59Z")

</div>

Do we have a generic extension of Base.Fix1 and Base.Fix2 in a lightweight package somewhere? I mean some equivalent of function bind\_args(f, bound\_args...; bound\_kwargs...) (args...; kwargs...) -\> f(bound\_args...,…

---

## [Differentiation without explicit function (np.gradient)](https://discourse.julialang.org/t/differentiation-without-explicit-function-np-gradient/57784)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 8\
**Last updated:** [June 12, 2021, 9:14am UTC](https://discourse.julialang.org/t/differentiation-without-explicit-function-np-gradient/57784 "2021-06-12T09:14:46Z")

</div>

Hi everyone, I am currently looking to evaluate some numerical data and need a method similar to numpy.gradient. All the packages, I have found seem to assume that I have some continuous function that I can evaluate at…

---

## [Explicit package names](https://discourse.julialang.org/t/explicit-package-names/62769)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 11\
**Last updated:** [June 12, 2021, 3:52am UTC](https://discourse.julialang.org/t/explicit-package-names/62769 "2021-06-12T03:52:43Z")

</div>

It may be worth looking at the guidelines for naming packages, which tend to favor explicit names. Edit: This topic was spun off \[ANN\] Shrike.jl: Julia beats optimized C++ (Fast accurate approximate nearest neighbor sea…

---

## [The plot command moves the graph](https://discourse.julialang.org/t/the-plot-command-moves-the-graph/62161)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 11\
**Last updated:** [June 12, 2021, 3:32am UTC](https://discourse.julialang.org/t/the-plot-command-moves-the-graph/62161 "2021-06-12T03:32:45Z")

</div>

Hello, I’m new programming in Julia. I have two queries regarding the Plots package. (i) Is there a way to integrate the colors generated by “distinguishable\_colors (10)” into the scatter below? (ii) Do you know why the …

---

## [Writing larger than expected binary files](https://discourse.julialang.org/t/writing-larger-than-expected-binary-files/62600)

<div class="topic-metadata">

**Author:** [@k945](https://discourse.julialang.org/u/k945)\
**Replies:** 1\
**Last updated:** [June 12, 2021, 3:23am UTC](https://discourse.julialang.org/t/writing-larger-than-expected-binary-files/62600 "2021-06-12T03:23:59Z")

</div>

When using FortranFiles, I was wondering why writing a new file, with the same data and structure as the original, produces a file whose size is significantly larger (~925MB) than the original (~25MB). Is there a compres…

---

## [Teasers for JuliaCon 2021](https://discourse.julialang.org/t/teasers-for-juliacon-2021/62513)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [June 12, 2021, 1:04am UTC](https://discourse.julialang.org/t/teasers-for-juliacon-2021/62513 "2021-06-12T01:04:24Z")

</div>

I would like to start this thread where the community can share teasers for JuliaCon 2021 talks. This content may be useful to community leaders (cc: @logankilpatrick) who can promote the conference in other official soc…

---

## [Optimizing Code to Fit a Generalized Pareto Distribution to Data](https://discourse.julialang.org/t/optimizing-code-to-fit-a-generalized-pareto-distribution-to-data/62690)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 17\
**Last updated:** [June 12, 2021, 12:45am UTC](https://discourse.julialang.org/t/optimizing-code-to-fit-a-generalized-pareto-distribution-to-data/62690 "2021-06-12T00:45:54Z")

</div>

I’m trying to optimize the following very performance-critical piece of code: using Memoization, Statistics, LinearAlgebra, Tullio, LoopVectorization """ gpdfit(sample::AbstractArray, wip::Bool = true, min\_grid\_pts…

---

## [External Julia REPL in VSCode](https://discourse.julialang.org/t/external-julia-repl-in-vscode/50745)

<div class="topic-metadata">

**Author:** [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Replies:** 11\
**Last updated:** [June 11, 2021, 10:58pm UTC](https://discourse.julialang.org/t/external-julia-repl-in-vscode/50745 "2021-06-11T22:58:30Z")

</div>

Someone recently asked in Slack if it was possible to to launch the Julia REPL process in a separate window (i.e. a separate terminal) and have that hooked up with the Julia extension such that you can send code to it fr…

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

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