# Latest

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

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

**Page:** 1675

---

## [Problem with annotations!() in Makie](https://discourse.julialang.org/t/problem-with-annotations-in-makie/43929)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 6:47pm UTC](https://discourse.julialang.org/t/problem-with-annotations-in-makie/43929 "2020-07-30T18:47:09Z")

</div>

This snippet: using AbstractPlotting, Makie, Random scene = Scene(resolution = (1200, 1500)) poly = Vec2f0.(1:10, rand(10)) labels = \["$i" for i in 1:10\] scatter!(scene, poly, color = :blue) annotations!(scene, labels,…

---

## [Why is my @animate loop super slow?](https://discourse.julialang.org/t/why-is-my-animate-loop-super-slow/43685)

<div class="topic-metadata">

**Author:** [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Replies:** 9\
**Last updated:** [July 30, 2020, 6:30pm UTC](https://discourse.julialang.org/t/why-is-my-animate-loop-super-slow/43685 "2020-07-30T18:30:40Z")

</div>

Hi! I’m trying to understand why is the using the Plots.jl @animate macro slower than plotting and saving many times. I destilled my real case into this hopefully MWE. I have a function that creates a plot with several…

---

## [How to organize the overall structure of a chemistry simulation for best speed](https://discourse.julialang.org/t/how-to-organize-the-overall-structure-of-a-chemistry-simulation-for-best-speed/43993)

<div class="topic-metadata">

**Author:** [@damonturney](https://discourse.julialang.org/u/damonturney)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 6:19pm UTC](https://discourse.julialang.org/t/how-to-organize-the-overall-structure-of-a-chemistry-simulation-for-best-speed/43993 "2020-07-30T18:19:14Z")

</div>

I’m writing a chemistry simulation of a zinc-manganese alkaline battery, and of course I want to organize the overall structure of the code to optimize for speed. The battery will have data describing its current “state…

---

## [Fairness.jl : Bias Audit and Mitigation Toolkit](https://discourse.julialang.org/t/fairness-jl-bias-audit-and-mitigation-toolkit/43832)

<div class="topic-metadata">

**Author:** [@ashryaagr](https://discourse.julialang.org/u/ashryaagr)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 6:18pm UTC](https://discourse.julialang.org/t/fairness-jl-bias-audit-and-mitigation-toolkit/43832 "2020-07-30T18:18:13Z")

</div>

I am glad to announce the first official release of Fairness.jl : A Comprehensive Bias Audit and Mitigation Toolkit in Julia designed with the aim to solve practical problems faced by practitioners with existing toolkits…

---

## [Mapreduce dataframe columns elementwise AND](https://discourse.julialang.org/t/mapreduce-dataframe-columns-elementwise-and/43982)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 6:17pm UTC](https://discourse.julialang.org/t/mapreduce-dataframe-columns-elementwise-and/43982 "2020-07-30T18:17:10Z")

</div>

Is there a specific reason why I need to define myop in the snippet below? Otherwise things do not work for me. using DataFrames dff=DataFrame(a=trues(4),b=trues(4),c=2\*ones(4)) cnms = \[:a, :b\] #fails mapreduce(x-\>d…

---

## [DataFrames: hcat](https://discourse.julialang.org/t/dataframes-hcat/43928)

<div class="topic-metadata">

**Author:** [@bsmith](https://discourse.julialang.org/u/bsmith)\
**Replies:** 3\
**Last updated:** [July 30, 2020, 5:59pm UTC](https://discourse.julialang.org/t/dataframes-hcat/43928 "2020-07-30T17:59:51Z")

</div>

Sorry for the newbie question. I want to do a hcat with a dataframe and an array, such that the column name is the name of the vector (rather than the default ‘X1’): df = DataFrame(A = 1:4, B = \[2,4,3,5 \]) newCol = \[7,8…

---

## [Question about DelimitedFiles](https://discourse.julialang.org/t/question-about-delimitedfiles/43980)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 5:45pm UTC](https://discourse.julialang.org/t/question-about-delimitedfiles/43980 "2020-07-30T17:45:44Z")

</div>

I’m having problems using the readdlm function of the DelimitedFiles package. I am reading two instances from a file. Both have this interface: 20\_190\\c\_v20\_a190\_d4.txt 20 190 4 0 1 71 0 2 65 0 3 66 0 4 78 0 5 59 ... 2…

---

## [Is there a newer version of a package?](https://discourse.julialang.org/t/is-there-a-newer-version-of-a-package/43986)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 4\
**Last updated:** [July 30, 2020, 4:37pm UTC](https://discourse.julialang.org/t/is-there-a-newer-version-of-a-package/43986 "2020-07-30T16:37:25Z")

</div>

Is there a way of finding out when updating (\]up) that newer versions of packages are available? I found that if one does not proactively delete the compatibility section in the Project.toml file and runs update from ti…

---

## [Flux: Error when computing gradient of broadcasted ifelse on GPU](https://discourse.julialang.org/t/flux-error-when-computing-gradient-of-broadcasted-ifelse-on-gpu/43907)

<div class="topic-metadata">

**Author:** [@raff](https://discourse.julialang.org/u/raff)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 4:30pm UTC](https://discourse.julialang.org/t/flux-error-when-computing-gradient-of-broadcasted-ifelse-on-gpu/43907 "2020-07-30T16:30:22Z")

</div>

Here is a code example X = rand(3,3) .- 0.4 X = X |\> cu f(X) = sum(ifelse.(X .\> 0, X, 1f0)) gradient(f, X) And here is the error message ERROR: TypeError: non-boolean (ForwardDiff.Dual{Nothing,Bool,3}) used in boolean…

---

## [Inspecting and controlling sckit-learn version in ScikitLearn.jl](https://discourse.julialang.org/t/inspecting-and-controlling-sckit-learn-version-in-scikitlearn-jl/29872)

<div class="topic-metadata">

**Author:** [@ablaom](https://discourse.julialang.org/u/ablaom)\
**Replies:** 4\
**Last updated:** [July 30, 2020, 2:49pm UTC](https://discourse.julialang.org/t/inspecting-and-controlling-sckit-learn-version-in-scikitlearn-jl/29872 "2020-07-30T14:49:13Z")

</div>

How do determine which version of the python library scikit-learn my ScikitLearn.jl installation is using? Is there any way to control which version is used? If not, how is the version installed determined? Does it depen…

---

## [Import the same package after activating new environment](https://discourse.julialang.org/t/import-the-same-package-after-activating-new-environment/43749)

<div class="topic-metadata">

**Author:** [@evad](https://discourse.julialang.org/u/evad)\
**Replies:** 14\
**Last updated:** [July 30, 2020, 2:26pm UTC](https://discourse.julialang.org/t/import-the-same-package-after-activating-new-environment/43749 "2020-07-30T14:26:32Z")

</div>

I asked this because I have CSV@0.6.2 installed in the user depot and have it imported. Then I created a new project folder, activated it and installed another version of CSV@0.7.4. Now in REPL typing import CSV. Will …

---

## [Modify attribute of mutable struct from within](https://discourse.julialang.org/t/modify-attribute-of-mutable-struct-from-within/43977)

<div class="topic-metadata">

**Author:** [@Johncowk](https://discourse.julialang.org/u/Johncowk)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 1:57pm UTC](https://discourse.julialang.org/t/modify-attribute-of-mutable-struct-from-within/43977 "2020-07-30T13:57:38Z")

</div>

I would like to have a function inside of a mutable struct that is able to modify the value of the attributes from the struct when called. As a test, I tried a simple mutable struct Test a b function init\_t…

---

## [Performance problem to apply a set of functions to one data](https://discourse.julialang.org/t/performance-problem-to-apply-a-set-of-functions-to-one-data/43974)

<div class="topic-metadata">

**Author:** [@Ronneesley](https://discourse.julialang.org/u/Ronneesley)\
**Replies:** 3\
**Last updated:** [July 30, 2020, 1:30pm UTC](https://discourse.julialang.org/t/performance-problem-to-apply-a-set-of-functions-to-one-data/43974 "2020-07-30T13:30:07Z")

</div>

Hello, When we have a variable number of functions fs = \[f\_1, f\_2, ..., f\_3\] and we want to apply these functions to only one value of x. I’m struggling with performance problems. See: julia\> f1(x) = x^2 julia\> f2(x) =…

---

## [VSCode extension: REPL crashes with Julia 1.5-rc2](https://discourse.julialang.org/t/vscode-extension-repl-crashes-with-julia-1-5-rc2/43976)

<div class="topic-metadata">

**Author:** [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Replies:** 0\
**Last updated:** [July 30, 2020, 1:02pm UTC](https://discourse.julialang.org/t/vscode-extension-repl-crashes-with-julia-1-5-rc2/43976 "2020-07-30T13:02:49Z")

</div>

When I start the REPL using julia 1.5rc2, it goes to the julia\> prompt and immediately exits or crashes. Any ideas?

---

## [Importing a system image dll with c#/c++/c](https://discourse.julialang.org/t/importing-a-system-image-dll-with-c-c-c/43836)

<div class="topic-metadata">

**Author:** [@joschv](https://discourse.julialang.org/u/joschv)\
**Replies:** 3\
**Last updated:** [July 30, 2020, 12:02pm UTC](https://discourse.julialang.org/t/importing-a-system-image-dll-with-c-c-c/43836 "2020-07-30T12:02:36Z")

</div>

Greetings! I am trying to embed Julia code using C# (or C/C++) and a generated Julia System Image (DLL, on Windows). The system image contains a few (selfmade) functions i am trying to call from C#. These are decorated …

---

## [ERROR using StataCall.jl](https://discourse.julialang.org/t/error-using-statacall-jl/43968)

<div class="topic-metadata">

**Author:** [@Lucius\_Cornelius\_Min](https://discourse.julialang.org/u/Lucius_Cornelius_Min)\
**Replies:** 0\
**Last updated:** [July 30, 2020, 11:48am UTC](https://discourse.julialang.org/t/error-using-statacall-jl/43968 "2020-07-30T11:48:57Z")

</div>

Hi I am getting errors when using StataCall: julia\> using StataCall julia\> df = DataFrame(myint = Int64.(floor.(100 .\* rand(Float64, 10))), myfloat = rand(Float64, 10)) julia\> instructions = \[“gen newvar1 = myint + my…

---

## [Flux load and save](https://discourse.julialang.org/t/flux-load-and-save/43954)

<div class="topic-metadata">

**Author:** [@Ruan\_Stander](https://discourse.julialang.org/u/Ruan_Stander)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 11:38am UTC](https://discourse.julialang.org/t/flux-load-and-save/43954 "2020-07-30T11:38:46Z")

</div>

Does Flux Load/Save require the same variable name? @save "30x30\_64x64.bson" model @load "30x30\_64x64.bson" model1 Error: Key model1 not found

---

## [Windows 10 -\> Pkg.add -\> ERROR: failed to clone from https://github.com/JuliaRegistries/General.git](https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574)

<div class="topic-metadata">

**Author:** [@PhilippG](https://discourse.julialang.org/u/PhilippG)\
**Replies:** 4\
**Last updated:** [July 30, 2020, 10:05am UTC](https://discourse.julialang.org/t/windows-10-pkg-add-error-failed-to-clone-from-https-github-com-juliaregistries-general-git/27574 "2020-07-30T10:05:29Z")

</div>

Hi, Julia is awesume, but I have trouble to add packages at my corporate computer. The fixes in the topic below seems to only work at windows 7 machines and I am using windows 10. Is there someone with the same probl…

---

## [Running a code for multiple values of the same variable](https://discourse.julialang.org/t/running-a-code-for-multiple-values-of-the-same-variable/43843)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 4\
**Last updated:** [July 30, 2020, 9:35am UTC](https://discourse.julialang.org/t/running-a-code-for-multiple-values-of-the-same-variable/43843 "2020-07-30T09:35:28Z")

</div>

I wanna know if there is a simple way to run a code containing a variable x that should take more than one value and then store these values with the outputs of the code, for example x takes more than one value like 1 an…

---

## [Different program outputs under the same Random.seed!](https://discourse.julialang.org/t/different-program-outputs-under-the-same-random-seed/43923)

<div class="topic-metadata">

**Author:** [@Ken\_Lin](https://discourse.julialang.org/u/Ken_Lin)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 9:24am UTC](https://discourse.julialang.org/t/different-program-outputs-under-the-same-random-seed/43923 "2020-07-30T09:24:26Z")

</div>

I have a Julia program that sometimes produces different results even if I set Random.seed!(1234). What could be the reasons? Here is one possible reason I have found: In my program, I’m using a function c(x) from a pac…

---

## [Creating ranges from findall](https://discourse.julialang.org/t/creating-ranges-from-findall/43885)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 4\
**Last updated:** [July 30, 2020, 8:59am UTC](https://discourse.julialang.org/t/creating-ranges-from-findall/43885 "2020-07-30T08:59:09Z")

</div>

Do you know of a way to turn the results of findall into Vector{UnitRange{Int64}}? searching = DataFrame(A = 1:5:1000) searching\_specific = searching\[:,:A\] findall(x -\> isodd(x), searching\_specific) The results look …

---

## [How to resize a very large array or image without changing its number type](https://discourse.julialang.org/t/how-to-resize-a-very-large-array-or-image-without-changing-its-number-type/43936)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 8:51am UTC](https://discourse.julialang.org/t/how-to-resize-a-very-large-array-or-image-without-changing-its-number-type/43936 "2020-07-30T08:51:14Z")

</div>

Hi, I would like to resize an array (or perhaps an image) and get a result of the same type. For instance, in my code below: N = 10 img = rand(Int8,N,N,3) img = imresize(img,ratio=(0.7, 0.7, 1)) the outupt img change…

---

## [Matrix-vector multiplication slower than a 'naive' for loop?](https://discourse.julialang.org/t/matrix-vector-multiplication-slower-than-a-naive-for-loop/43910)

<div class="topic-metadata">

**Author:** [@barankarakus](https://discourse.julialang.org/u/barankarakus)\
**Replies:** 7\
**Last updated:** [July 30, 2020, 8:29am UTC](https://discourse.julialang.org/t/matrix-vector-multiplication-slower-than-a-naive-for-loop/43910 "2020-07-30T08:29:20Z")

</div>

Hi, I’m new to Julia and have been playing around with it to test its performance claims. I am looking to multiply a matrix X by a sparse vector β, generated via the following code: n = 500 p = 100000 β = rand(p); z…

---

## [How to create MixtureModel using distributions from different families](https://discourse.julialang.org/t/how-to-create-mixturemodel-using-distributions-from-different-families/43874)

<div class="topic-metadata">

**Author:** [@vkv](https://discourse.julialang.org/u/vkv)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 8:25am UTC](https://discourse.julialang.org/t/how-to-create-mixturemodel-using-distributions-from-different-families/43874 "2020-07-30T08:25:16Z")

</div>

I want to create a MixtureModel from Distributions.jl using Normal distribution and Uniform distribution. Is there a way to do this?

---

## [Failed to precompile Pkg because Quat not defined](https://discourse.julialang.org/t/failed-to-precompile-pkg-because-quat-not-defined/43897)

<div class="topic-metadata">

**Author:** [@wangyubin11](https://discourse.julialang.org/u/wangyubin11)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 8:18am UTC](https://discourse.julialang.org/t/failed-to-precompile-pkg-because-quat-not-defined/43897 "2020-07-30T08:18:23Z")

</div>

I try to use the branch of Pkg，but actually stuck in this trouble. It is a problem of the Pkg itself? I definitely guess that global variable causes the mistake . Any tips? Thank u :heart:

---

## [Plots -- bug in LaTeX symbol of PyPlot?](https://discourse.julialang.org/t/plots-bug-in-latex-symbol-of-pyplot/43889)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 8:18am UTC](https://discourse.julialang.org/t/plots-bug-in-latex-symbol-of-pyplot/43889 "2020-07-30T08:18:06Z")

</div>

I want to “check” a symbol in Plots legends, e.g., \\check{S}. However, in plots generated by Julia with PyPlot back-end, this appears as: If I replace “check” with, say, “hat”, \\hat{S}, the symbol is rendered correctl…

---

## [Using a manual custom image](https://discourse.julialang.org/t/using-a-manual-custom-image/43901)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 2\
**Last updated:** [July 29, 2020, 6:11pm UTC](https://discourse.julialang.org/t/using-a-manual-custom-image/43901 "2020-07-29T18:11:21Z")

</div>

Hey everyone, Is it possible to create a custom system image with PackageCompiler.jl, for example only containing Plots additionally? What I saw is that you can create a custom image in VsCode of the whole environment, …

---

## [Ctrl+F5 starts the debugger?](https://discourse.julialang.org/t/ctrl-f5-starts-the-debugger/43915)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [July 30, 2020, 7:02am UTC](https://discourse.julialang.org/t/ctrl-f5-starts-the-debugger/43915 "2020-07-30T07:02:15Z")

</div>

I believe that according to the documentation this key binding should evaluate the file without the debugger. Yet, I can see that the debugger is activated when I do this. Is this expected? Julia extension 0.17

---

## [JuliaCon 2020 T-Shirt sales are live + Julia Stickers!](https://discourse.julialang.org/t/juliacon-2020-t-shirt-sales-are-live-julia-stickers/43192)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 33\
**Last updated:** [July 30, 2020, 6:16am UTC](https://discourse.julialang.org/t/juliacon-2020-t-shirt-sales-are-live-julia-stickers/43192 "2020-07-30T06:16:58Z")

</div>

Hey all, In case you have not heard, JuliaCon 2020 registration is live! Head to JuliaCon 2020 Registration, Wed, Jul 29, 2020 at 12:00 PM | Eventbrite to register. Once you register, be sure to head to the JuliaCon 20…

---

## [PowerModels.jl building a data dictionary](https://discourse.julialang.org/t/powermodels-jl-building-a-data-dictionary/43856)

<div class="topic-metadata">

**Author:** [@fnbillimoria](https://discourse.julialang.org/u/fnbillimoria)\
**Replies:** 5\
**Last updated:** [July 30, 2020, 4:45am UTC](https://discourse.julialang.org/t/powermodels-jl-building-a-data-dictionary/43856 "2020-07-30T04:45:22Z")

</div>

I am using PowerModels.jl and PowerModelsAnnex.jl. Are there any helper functions available to build the PowerModels.jl data dictionary? I have an excel / csv file with the relevant data for the test case, which I wo…

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

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