# Latest

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

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

**Page:** 1401

---

## [Will Jeff Bezanson speak about what is bad in Julia on JuliaCon 2021?](https://discourse.julialang.org/t/will-jeff-bezanson-speak-about-what-is-bad-in-julia-on-juliacon-2021/60642)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 12:59pm UTC](https://discourse.julialang.org/t/will-jeff-bezanson-speak-about-what-is-bad-in-julia-on-juliacon-2021/60642 "2021-05-06T12:59:00Z")

</div>

Jeff Bezanson talk from JuliaCon 2019 What’s Bad About Julia is one of my top 10 “Best Julia talks” and probably the most funny to watch Julia talk in existence (if you don’t know why, you need to watch it :grin:). Is th…

---

## [Help with binary trees benchmark games example](https://discourse.julialang.org/t/help-with-binary-trees-benchmark-games-example/37307)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 53\
**Last updated:** [May 6, 2021, 12:27pm UTC](https://discourse.julialang.org/t/help-with-binary-trees-benchmark-games-example/37307 "2021-05-06T12:27:15Z")

</div>

Hey guys, I happened to look at the Julia benchmarks on the Benchmarks Game website lately. Overall, the Julia results are extremely intimidating. I dare say, a lot of the Julia examples, aside from being blazing fast,…

---

## [Built in function to sort the results of index in](https://discourse.julialang.org/t/built-in-function-to-sort-the-results-of-index-in/60624)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 2\
**Last updated:** [May 6, 2021, 11:39am UTC](https://discourse.julialang.org/t/built-in-function-to-sort-the-results-of-index-in/60624 "2021-05-06T11:39:11Z")

</div>

x =\[2 3 4 5 6 7 8\] z = \[2 6 5\] y= indexin(z,x) is there a built in function to sort the results of indexin

---

## [Which plots backends, currently are the best for article publication?](https://discourse.julialang.org/t/which-plots-backends-currently-are-the-best-for-article-publication/47668)

<div class="topic-metadata">

**Author:** [@SymKo](https://discourse.julialang.org/u/SymKo)\
**Replies:** 32\
**Last updated:** [May 6, 2021, 11:14am UTC](https://discourse.julialang.org/t/which-plots-backends-currently-are-the-best-for-article-publication/47668 "2021-05-06T11:14:31Z")

</div>

Hello everyone, someone published article with charts made in julia? Which backend is the best: poll poll poll poll poll poll Someone know research publication with charts made in julia?

---

## [Interpolate DataFrame columns](https://discourse.julialang.org/t/interpolate-dataframe-columns/60632)

<div class="topic-metadata">

**Author:** [@alessio](https://discourse.julialang.org/u/alessio)\
**Replies:** 3\
**Last updated:** [May 6, 2021, 11:12am UTC](https://discourse.julialang.org/t/interpolate-dataframe-columns/60632 "2021-05-06T11:12:30Z")

</div>

I have a DataFrame sorted on one column (X): df = sort(DataFrame(Y = rand(4), X = rand(4)), \[:X\]) 4×2 DataFrame Row │ Y X │ Float64 Float64 ─────┼──────────────────── 1 │ 0.211423 0.491155 2 │ 0.8…

---

## [How to dispatch on typed vectors](https://discourse.julialang.org/t/how-to-dispatch-on-typed-vectors/60633)

<div class="topic-metadata">

**Author:** [@florian](https://discourse.julialang.org/u/florian)\
**Replies:** 5\
**Last updated:** [May 6, 2021, 10:30am UTC](https://discourse.julialang.org/t/how-to-dispatch-on-typed-vectors/60633 "2021-05-06T10:30:35Z")

</div>

How can I write a function that works on Vector{T1} as well as Vector{Union{T1, T2}}? So for example I want the function to work on \["hello", "world", missing\] as well as \`\[“hello”, “world”\]. I can’t dispatch to the in…

---

## [Julia bug using numpy](https://discourse.julialang.org/t/julia-bug-using-numpy/60636)

<div class="topic-metadata">

**Author:** [@At.Tahiri](https://discourse.julialang.org/u/At.Tahiri)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 10:11am UTC](https://discourse.julialang.org/t/julia-bug-using-numpy/60636 "2021-05-06T10:11:14Z")

</div>

Hello, I want to report a bug in julia used with numpy argmax function. (The numpy.argmax() is a function that returns indices of the max element of the array in a particular axis.) In the example below np.argmax retu…

---

## [Simplest way to display a picture in a webapp with Genie.jl](https://discourse.julialang.org/t/simplest-way-to-display-a-picture-in-a-webapp-with-genie-jl/60387)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.julialang.org/u/sim)\
**Replies:** 8\
**Last updated:** [May 6, 2021, 8:58am UTC](https://discourse.julialang.org/t/simplest-way-to-display-a-picture-in-a-webapp-with-genie-jl/60387 "2021-05-06T08:58:29Z")

</div>

Hello, I’m an absolute beginner in Genie.jl and in web stack in general. I want to build a webpage which periodically generates a random picture using some julia code, and displays it. To begin, I want to simply display…

---

## [Allocations and slow perf for Transform! on GroupedDataFrames](https://discourse.julialang.org/t/allocations-and-slow-perf-for-transform-on-groupeddataframes/60594)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 4\
**Last updated:** [May 6, 2021, 8:58am UTC](https://discourse.julialang.org/t/allocations-and-slow-perf-for-transform-on-groupeddataframes/60594 "2021-05-06T08:58:17Z")

</div>

The transform! operator appears to result in large number of allocation as large slowdown compared to the non-grouped counterpart. using DataFrames using StatsBase: sample using BenchmarkTools df1 = DataFrame(rand(1\_000…

---

## [Weighted linear regression with confidence interval](https://discourse.julialang.org/t/weighted-linear-regression-with-confidence-interval/60610)

<div class="topic-metadata">

**Author:** [@Okarin99](https://discourse.julialang.org/u/Okarin99)\
**Replies:** 6\
**Last updated:** [May 6, 2021, 8:56am UTC](https://discourse.julialang.org/t/weighted-linear-regression-with-confidence-interval/60610 "2021-05-06T08:56:35Z")

</div>

Hi, is there a way to do weighted linear regression and predict the confidence interval in Julia? I think with glm it is only implemented for non weighted linear regression. Thank you for your answers and have a nice d…

---

## [Confusing parsing behavior](https://discourse.julialang.org/t/confusing-parsing-behavior/60615)

<div class="topic-metadata">

**Author:** [@ChunXi\_Zhang](https://discourse.julialang.org/u/ChunXi_Zhang)\
**Replies:** 10\
**Last updated:** [May 6, 2021, 8:54am UTC](https://discourse.julialang.org/t/confusing-parsing-behavior/60615 "2021-05-06T08:54:39Z")

</div>

When I try to concatenate 2 ranges, I accidentally write: \[1 : 2; 6 :9\] and there is an Error: ArgumentError: number of columns of each array must match (got (1, 2)) while these all works: \[1:2; 6:9\] \[1 : 2; 6 : 9\] …

---

## [Indexing vector elements of a matrix](https://discourse.julialang.org/t/indexing-vector-elements-of-a-matrix/60631)

<div class="topic-metadata">

**Author:** [@Simcha](https://discourse.julialang.org/u/Simcha)\
**Replies:** 2\
**Last updated:** [May 6, 2021, 8:39am UTC](https://discourse.julialang.org/t/indexing-vector-elements-of-a-matrix/60631 "2021-05-06T08:39:29Z")

</div>

I can’t seem to access all elements of equal index in a matrix in an intuitive way. What I have is a matrix of vectors “scan” Matrix{Vector{Float64}} (alias for Array{Array{Float64, 1}, 2}) Accessing all elements of t…

---

## [Can't find any list of the topics I raised](https://discourse.julialang.org/t/cant-find-any-list-of-the-topics-i-raised/60625)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 8:24am UTC](https://discourse.julialang.org/t/cant-find-any-list-of-the-topics-i-raised/60625 "2021-05-06T08:24:30Z")

</div>

Hello I can’t find any list of the topics I raised. The activity list is not very convenient for this purpose. I guess this would be an improvement to this site. Thanks Michel

---

## [Working directory and output issues with Weave.jl](https://discourse.julialang.org/t/working-directory-and-output-issues-with-weave-jl/60540)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 1\
**Last updated:** [May 6, 2021, 7:57am UTC](https://discourse.julialang.org/t/working-directory-and-output-issues-with-weave-jl/60540 "2021-05-06T07:57:58Z")

</div>

I’m trying to set up a workflow with Weave.jl but struggle with some aspects. The first is that my file is includeing some other code in the same directory like include("some\_file.jl"). So the script needs to be run wit…

---

## [How close to batteries-included (GUI for Julia)?](https://discourse.julialang.org/t/how-close-to-batteries-included-gui-for-julia/60619)

<div class="topic-metadata">

**Author:** [@ScottRobertson](https://discourse.julialang.org/u/ScottRobertson)\
**Replies:** 4\
**Last updated:** [May 6, 2021, 6:36am UTC](https://discourse.julialang.org/t/how-close-to-batteries-included-gui-for-julia/60619 "2021-05-06T06:36:32Z")

</div>

I have a little Javascript/HTML/CSS background and three years of loving Python/Tkinter/SQLite because it makes me a productive hobbyist. That’s the extent of my programming background. I’ve spent hours looking through t…

---

## [Multivariate Binomial Variable](https://discourse.julialang.org/t/multivariate-binomial-variable/60617)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 0\
**Last updated:** [May 6, 2021, 3:22am UTC](https://discourse.julialang.org/t/multivariate-binomial-variable/60617 "2021-05-06T03:22:44Z")

</div>

I’m trying to build a model for a situation where I have a vector of binomial trials, all of which are correlated. Stan has a useful tutorial for the special case where the trials are all Bernoulli trials and I want to u…

---

## [Histogram of dates in Plots.jl](https://discourse.julialang.org/t/histogram-of-dates-in-plots-jl/60527)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 8\
**Last updated:** [May 6, 2021, 3:06am UTC](https://discourse.julialang.org/t/histogram-of-dates-in-plots-jl/60527 "2021-05-06T03:06:22Z")

</div>

I’ve come across this problem many times, but I can’t find any mentions of it anywhere on here or the Plots repo. Consider: julia\> using Plots julia\> histogram(rand(Date(2000, 1, 1):Day(1):Date(2001, 1, 1), 100)) He…

---

## [Multithreading with sparse arrays](https://discourse.julialang.org/t/multithreading-with-sparse-arrays/30844)

<div class="topic-metadata">

**Author:** [@thehalfspace](https://discourse.julialang.org/u/thehalfspace)\
**Replies:** 3\
**Last updated:** [May 6, 2021, 2:53am UTC](https://discourse.julialang.org/t/multithreading-with-sparse-arrays/30844 "2021-05-06T02:53:25Z")

</div>

I am solving a 2D earthquake rupture dynamics problem using a spectral element method. Over the last few months, I have translated a matlab code into Julia, made some changes in the serial part of the code (changing lin…

---

## [Multithreaded broadcast?](https://discourse.julialang.org/t/multithreaded-broadcast/26786)

<div class="topic-metadata">

**Author:** [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Replies:** 20\
**Last updated:** [May 6, 2021, 2:43am UTC](https://discourse.julialang.org/t/multithreaded-broadcast/26786 "2021-05-06T02:43:47Z")

</div>

So, with the new improvements to threading, I’m wondering how that can be exposed easily to users. One of the most common parallelizable pattern is broadcasting (discussed in https://github.com/JuliaLang/julia/issues/197…

---

## [Design question for model with functional forms as parameters](https://discourse.julialang.org/t/design-question-for-model-with-functional-forms-as-parameters/59473)

<div class="topic-metadata">

**Author:** [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Replies:** 18\
**Last updated:** [May 5, 2021, 12:51pm UTC](https://discourse.julialang.org/t/design-question-for-model-with-functional-forms-as-parameters/59473 "2021-05-05T12:51:56Z")

</div>

I asked a question at stackoverflow about how to properly design a model. I’m still unsure how to do it, partly because I have this old design that no longer works and that I’m trying to rescue, and partly because I’m st…

---

## [Looking for code of sparse matrix \* dense matrix](https://discourse.julialang.org/t/looking-for-code-of-sparse-matrix-dense-matrix/60283)

<div class="topic-metadata">

**Author:** [@Lecrapouille](https://discourse.julialang.org/u/Lecrapouille)\
**Replies:** 7\
**Last updated:** [May 5, 2021, 11:03pm UTC](https://discourse.julialang.org/t/looking-for-code-of-sparse-matrix-dense-matrix/60283 "2021-05-05T23:03:04Z")

</div>

Hi ! I may have found an issue in Julia 1.6 when doing matrix product between a sparse matrix and a full matrix when function zero() and one() and operators + and \* have been changed for a particular algebra. I’m searchi…

---

## [Return with an image from an asset folder within a package](https://discourse.julialang.org/t/return-with-an-image-from-an-asset-folder-within-a-package/60604)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 4\
**Last updated:** [May 5, 2021, 9:13pm UTC](https://discourse.julialang.org/t/return-with-an-image-from-an-asset-folder-within-a-package/60604 "2021-05-05T21:13:47Z")

</div>

Hello, I am working on my first package. I wish to add a few functions returning an image or some data taken from within the package itself. For example, I want to display an image in an HTML as shown here: function …

---

## [Side by side violin plots with VegaLite.jl](https://discourse.julialang.org/t/side-by-side-violin-plots-with-vegalite-jl/60523)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 15\
**Last updated:** [May 5, 2021, 8:56pm UTC](https://discourse.julialang.org/t/side-by-side-violin-plots-with-vegalite-jl/60523 "2021-05-05T20:56:43Z")

</div>

Hi I want to present some data to a colleague, whilst also showing off Julia. I have data for an effect that varies according to species and treatment. There are 2 treatments and I would like to display effect sizes as …

---

## [For loop: InexactError: Bool](https://discourse.julialang.org/t/for-loop-inexacterror-bool/60591)

<div class="topic-metadata">

**Author:** [@Shrox](https://discourse.julialang.org/u/Shrox)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 7:29pm UTC](https://discourse.julialang.org/t/for-loop-inexacterror-bool/60591 "2021-05-05T19:29:59Z")

</div>

Hello everyone! im really new to Julia and have some problems regarding my code. Im trying to do a qr decomposition. function qr\_zerlegung(A) m,n = size(A) j=1 minNM=min(n-1, m); Q=Matrix(I,m,n) for…

---

## [Difficulty installing polyhedra](https://discourse.julialang.org/t/difficulty-installing-polyhedra/60562)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 2\
**Last updated:** [May 5, 2021, 7:19pm UTC](https://discourse.julialang.org/t/difficulty-installing-polyhedra/60562 "2021-05-05T19:19:12Z")

</div>

I am getting a lot of conflicts when I try to install polyhedra. If anybody had any leads or suggestions I would be very grateful. Some of the (long) list of conflicts are: (@v1.6) pkg\> add Polyhedra Resolving pac…

---

## [\[ANN\] InteractiveErrors.jl](https://discourse.julialang.org/t/ann-interactiveerrors-jl/58461)

<div class="topic-metadata">

**Author:** [@mike](https://discourse.julialang.org/u/mike)\
**Replies:** 7\
**Last updated:** [May 5, 2021, 6:53pm UTC](https://discourse.julialang.org/t/ann-interactiveerrors-jl/58461 "2021-05-05T18:53:53Z")

</div>

The new stacktrace printing in Julia 1.6 is great, but sometimes the amount of information printed can become a bit overwhelming and difficult to navigate so I’ve packaged up some code I’ve had locally for a little while…

---

## [Pluto and macros](https://discourse.julialang.org/t/pluto-and-macros/60600)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 2\
**Last updated:** [May 5, 2021, 6:00pm UTC](https://discourse.julialang.org/t/pluto-and-macros/60600 "2021-05-05T18:00:39Z")

</div>

I need to benchmark a function and I decided to use Pluto. I get a variable not defined error that I don’t know how to avoid. A minimal (not) working example is: for i in 1:length(ar) b = @benchmark i^2 end Is there a…

---

## [ArrayFire vs AbstractArray performance and future in julia](https://discourse.julialang.org/t/arrayfire-vs-abstractarray-performance-and-future-in-julia/60533)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 7\
**Last updated:** [May 5, 2021, 6:00pm UTC](https://discourse.julialang.org/t/arrayfire-vs-abstractarray-performance-and-future-in-julia/60533 "2021-05-05T18:00:34Z")

</div>

So I recently ran into ArrayFire and it’s Julia wrapper ArrayFire.jl and was impressed by the performance benchmark. I have not tried it myself and I was wondering if anyone has made any experiments with it and if it’s c…

---

## [Force running a function on a single process](https://discourse.julialang.org/t/force-running-a-function-on-a-single-process/60519)

<div class="topic-metadata">

**Author:** [@dapz](https://discourse.julialang.org/u/dapz)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 5:09pm UTC](https://discourse.julialang.org/t/force-running-a-function-on-a-single-process/60519 "2021-05-05T17:09:08Z")

</div>

Hi, is it possible to deactivate (process) parallelism for a specific function call, i.e. force running this specific portion of the code on a single process even though it could potentially be distributed? My problem is…

---

## [Defining MLJ pipelines within a function](https://discourse.julialang.org/t/defining-mlj-pipelines-within-a-function/60552)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 3\
**Last updated:** [May 5, 2021, 5:06pm UTC](https://discourse.julialang.org/t/defining-mlj-pipelines-within-a-function/60552 "2021-05-05T17:06:22Z")

</div>

Question asked on slack: Hello, I’m new to Julia and MLJ. Is there a recommended way to compose models within functions? I tried placing the code from the “ Lightning Tour ” within a function of my own package, however…

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

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