# Latest

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

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

**Page:** 1597

---

## [Failed to add ParallelKMeans.jl](https://discourse.julialang.org/t/failed-to-add-parallelkmeans-jl/48728)

<div class="topic-metadata">

**Author:** [@zlq178](https://discourse.julialang.org/u/zlq178)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 8:22am UTC](https://discourse.julialang.org/t/failed-to-add-parallelkmeans-jl/48728 "2020-10-21T08:22:36Z")

</div>

I want to add “ParallelKMeans.jl”. When I run code in REPL ,it shows me: How can I add the package successfully?

---

## [PyPlot doesn't release mem after close()](https://discourse.julialang.org/t/pyplot-doesnt-release-mem-after-close/47953)

<div class="topic-metadata">

**Author:** [@JesperMartinsson](https://discourse.julialang.org/u/JesperMartinsson)\
**Replies:** 10\
**Last updated:** [October 21, 2020, 8:19am UTC](https://discourse.julialang.org/t/pyplot-doesnt-release-mem-after-close/47953 "2020-10-21T08:19:01Z")

</div>

I’m creating and saving a series of images using PyPlot and savefig. However, despite using ioff() and closing all the figures, the memory increases linearly with number of figures that are created, saved and closed. I u…

---

## ["for" loop, collect()](https://discourse.julialang.org/t/for-loop-collect/48616)

<div class="topic-metadata">

**Author:** [@Ping](https://discourse.julialang.org/u/Ping)\
**Replies:** 9\
**Last updated:** [October 21, 2020, 7:46am UTC](https://discourse.julialang.org/t/for-loop-collect/48616 "2020-10-21T07:46:48Z")

</div>

Hello, I have been using “for” loop to calculate Internal Rate of Return (irr) for a range of investment options (t below represents option t in array of data) and attempted the codes below: for t in 1:nb a(t) = irr(\[…

---

## [Viewing dataframe with vscodedisplay produces ERROR](https://discourse.julialang.org/t/viewing-dataframe-with-vscodedisplay-produces-error/48703)

<div class="topic-metadata">

**Author:** [@HaraldStein](https://discourse.julialang.org/u/HaraldStein)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 7:22am UTC](https://discourse.julialang.org/t/viewing-dataframe-with-vscodedisplay-produces-error/48703 "2020-10-21T07:22:39Z")

</div>

Hello, I have a problem viewing into a dataframe. I have the latest VS Code version (1.50.1 and Julia plugin 1.08). What should I do? vscodedisplay(df) ERROR: MethodError: julia\_type\_to\_schema\_type(::Type{Union{}}) is…

---

## [Modifying all the frequency components of an FFT to 0 EXCEPT the 0th, +-3rd, +-6th, etc](https://discourse.julialang.org/t/modifying-all-the-frequency-components-of-an-fft-to-0-except-the-0th-3rd-6th-etc/48463)

<div class="topic-metadata">

**Author:** [@ash](https://discourse.julialang.org/u/ash)\
**Replies:** 4\
**Last updated:** [October 21, 2020, 7:11am UTC](https://discourse.julialang.org/t/modifying-all-the-frequency-components-of-an-fft-to-0-except-the-0th-3rd-6th-etc/48463 "2020-10-21T07:11:43Z")

</div>

I have an array and I want to modify its FFT frequencies by an exponential factor except those that are a multiple of 3 (or more generally, M). For example, we can do this naively as: N = 256 M = 3 ψ = rand(N) fft!(ψ) f…

---

## [Eachcol get name property](https://discourse.julialang.org/t/eachcol-get-name-property/48695)

<div class="topic-metadata">

**Author:** [@Cristian\_Suciava](https://discourse.julialang.org/u/Cristian_Suciava)\
**Replies:** 5\
**Last updated:** [October 21, 2020, 6:41am UTC](https://discourse.julialang.org/t/eachcol-get-name-property/48695 "2020-10-21T06:41:20Z")

</div>

How can I get the name property when using eachcol?

---

## [What does 'safepoint' in the GC/memory-management subsystem?](https://discourse.julialang.org/t/what-does-safepoint-in-the-gc-memory-management-subsystem/48721)

<div class="topic-metadata">

**Author:** [@KDr2](https://discourse.julialang.org/u/KDr2)\
**Replies:** 1\
**Last updated:** [October 21, 2020, 6:24am UTC](https://discourse.julialang.org/t/what-does-safepoint-in-the-gc-memory-management-subsystem/48721 "2020-10-21T06:24:12Z")

</div>

As I understood, a ‘safepoint’ is a point at which GC never occurs, is my understanding correct? Or I missed something important? Thanks.

---

## [Plotting images on GPU with ArrayFire](https://discourse.julialang.org/t/plotting-images-on-gpu-with-arrayfire/48676)

<div class="topic-metadata">

**Author:** [@libensvivit](https://discourse.julialang.org/u/libensvivit)\
**Replies:** 7\
**Last updated:** [October 21, 2020, 4:30am UTC](https://discourse.julialang.org/t/plotting-images-on-gpu-with-arrayfire/48676 "2020-10-21T04:30:09Z")

</div>

I’m combining lots of images into a single one and then add custom ticks and labels to the final image using Plots.jl library, then save it on the disk. However, we have millions of images to be processed, and it becomes…

---

## [Julia v1.5.2 has been released](https://discourse.julialang.org/t/julia-v1-5-2-has-been-released/47181)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 12\
**Last updated:** [October 21, 2020, 1:11am UTC](https://discourse.julialang.org/t/julia-v1-5-2-has-been-released/47181 "2020-10-21T01:11:54Z")

</div>

Julia version 1.5.2, the second patch release in the 1.5 series of releases, is now available. You can get binaries for glibc Linux (i686, x86-64, AArch64), musl Linux (x86-64), FreeBSD (x86-64), macOS, and Windows (32-,…

---

## [\[ANN\] Upcoming breaking changes to CPLEX.jl and Gurobi.jl](https://discourse.julialang.org/t/ann-upcoming-breaking-changes-to-cplex-jl-and-gurobi-jl/47814)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 6\
**Last updated:** [October 21, 2020, 1:04am UTC](https://discourse.julialang.org/t/ann-upcoming-breaking-changes-to-cplex-jl-and-gurobi-jl/47814 "2020-10-21T01:04:47Z")

</div>

Update: 20 October 2020: New versions of CPLEX.jl and Gurobi.jl are tagged. tl;dr: CPLEX.jl and Gurobi.jl will have major breaking changes in the next latest release. If you just use CPLEX.Optimizer() or Gurobi.Optimize…

---

## [CuArrays Question (cannot take the CPU address of a CuArray{Float32,2,Nothing})](https://discourse.julialang.org/t/cuarrays-question-cannot-take-the-cpu-address-of-a-cuarray-float32-2-nothing/42560)

<div class="topic-metadata">

**Author:** [@jmurray](https://discourse.julialang.org/u/jmurray)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 11:53pm UTC](https://discourse.julialang.org/t/cuarrays-question-cannot-take-the-cpu-address-of-a-cuarray-float32-2-nothing/42560 "2020-10-20T23:53:32Z")

</div>

I’m new to CuArrays and there’s something I’m not quite understanding. I have a working example that pipes the data and the model to the GPU and trains there. But when I try to call the loss function outside of the train…

---

## [Typed args in function that does a ccall](https://discourse.julialang.org/t/typed-args-in-function-that-does-a-ccall/48715)

<div class="topic-metadata">

**Author:** [@jtpettit](https://discourse.julialang.org/u/jtpettit)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 11:11pm UTC](https://discourse.julialang.org/t/typed-args-in-function-that-does-a-ccall/48715 "2020-10-20T23:11:53Z")

</div>

If I have a non-overloaded function such as loadimage(filename) = @ccall LoadImage(filename::Cstring)::Image Is there any point in changing it to loadimage(filename::AbstractString) = @ccall LoadImage(filename::Cst…

---

## [\[ANN\] New package FlagSets.jl - Manipulate flags bitwise or like sets](https://discourse.julialang.org/t/ann-new-package-flagsets-jl-manipulate-flags-bitwise-or-like-sets/48717)

<div class="topic-metadata">

**Author:** [@jessymilare](https://discourse.julialang.org/u/jessymilare)\
**Replies:** 0\
**Last updated:** [October 20, 2020, 11:10pm UTC](https://discourse.julialang.org/t/ann-new-package-flagsets-jl-manipulate-flags-bitwise-or-like-sets/48717 "2020-10-20T23:10:16Z")

</div>

FlagSets is based on BitFlags.jl, but with a different concept: FlagSet is a subtype of AbstractSet and implement both set and bitwise operations (each bit is associated with a flag, and so a sequence of bits is associat…

---

## [My Flux Application painfully slow](https://discourse.julialang.org/t/my-flux-application-painfully-slow/48705)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 21\
**Last updated:** [October 20, 2020, 10:45pm UTC](https://discourse.julialang.org/t/my-flux-application-painfully-slow/48705 "2020-10-20T22:45:47Z")

</div>

My Flux application runs painfully slowly. My training set is about 250,000 with about 100 inputs with the following setup: Chain(Dense(100,40,relu), Dense(40,40,relu), Dense(40,1,identity)) The mini-batches are about…

---

## [Plots -\> PgfPlotsX: Inserting a legend title?](https://discourse.julialang.org/t/plots-pgfplotsx-inserting-a-legend-title/48710)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [October 20, 2020, 10:33pm UTC](https://discourse.julialang.org/t/plots-pgfplotsx-inserting-a-legend-title/48710 "2020-10-20T22:33:17Z")

</div>

Hi! I am using Plots with the pgfplotsx() option. Is it possible to easily add a legend title using this package? Something like this: (Not my picture found here https://statisticsglobe.com/change-legend-title-ggplo…

---

## [Osiris Rex](https://discourse.julialang.org/t/osiris-rex/48709)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [October 20, 2020, 9:44pm UTC](https://discourse.julialang.org/t/osiris-rex/48709 "2020-10-20T21:44:53Z")

</div>

Watching live. Is this not marvellous? Please someone tell me that Natural Feature Tracking is written in Julia. (Yeah I know it is not)

---

## [Julia might get some nice exposure](https://discourse.julialang.org/t/julia-might-get-some-nice-exposure/48650)

<div class="topic-metadata">

**Author:** [@andre1sk](https://discourse.julialang.org/u/andre1sk)\
**Replies:** 6\
**Last updated:** [October 20, 2020, 9:04pm UTC](https://discourse.julialang.org/t/julia-might-get-some-nice-exposure/48650 "2020-10-20T21:04:24Z")

</div>

:+1:

---

## [Help with the implementation of Deutsch Algorithm using Yao.jl](https://discourse.julialang.org/t/help-with-the-implementation-of-deutsch-algorithm-using-yao-jl/45384)

<div class="topic-metadata">

**Author:** [@ChetanVardhan](https://discourse.julialang.org/u/ChetanVardhan)\
**Replies:** 3\
**Last updated:** [October 20, 2020, 8:43pm UTC](https://discourse.julialang.org/t/help-with-the-implementation-of-deutsch-algorithm-using-yao-jl/45384 "2020-10-20T20:43:17Z")

</div>

Need help implementing the oracle from Deutsch’s Algorithm in Yao.jl Anyone has any ideas on how to do this? Any type of help will be appreciated

---

## [Write decimal as closest "reasonable" fraction](https://discourse.julialang.org/t/write-decimal-as-closest-reasonable-fraction/48697)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 3\
**Last updated:** [October 20, 2020, 8:01pm UTC](https://discourse.julialang.org/t/write-decimal-as-closest-reasonable-fraction/48697 "2020-10-20T20:01:57Z")

</div>

Can someone recommend some reading or direct tips on writing long/complicated math expressions in Julia code? What to do if something is too long to fit on one line? What to do if something has too many parentheses to …

---

## [Array multiplication](https://discourse.julialang.org/t/array-multiplication/48610)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [October 20, 2020, 7:57pm UTC](https://discourse.julialang.org/t/array-multiplication/48610 "2020-10-20T19:57:03Z")

</div>

Why does this generate DimensionMismatch? The dimensions seem to be the same size when I break them out into individual vectors u,v,w. ### A Pluto.jl notebook ### # v0.12.4 using Markdown using InteractiveUtils # ╔…

---

## [What is julia (insider) vs code extension](https://discourse.julialang.org/t/what-is-julia-insider-vs-code-extension/48535)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 3\
**Last updated:** [October 20, 2020, 6:53pm UTC](https://discourse.julialang.org/t/what-is-julia-insider-vs-code-extension/48535 "2020-10-20T18:53:58Z")

</div>

I stumbled upon this project which seems to let the host provide a running vs code instance to remote clients as a web-accessible ide. However, after logging in via the web site from the remote, the only julia extensio…

---

## [Explicit constructor for array of arrays?](https://discourse.julialang.org/t/explicit-constructor-for-array-of-arrays/48694)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 6\
**Last updated:** [October 20, 2020, 6:04pm UTC](https://discourse.julialang.org/t/explicit-constructor-for-array-of-arrays/48694 "2020-10-20T18:04:26Z")

</div>

I want to create an array of arrays explicitly. Initially I thought that this would work: julia\> x = \[ \[1\] \[1,2\] \[\] \[3,4,5\] \] but this does not work (I was expecting 2×2 Array{Any,2}: \[1\] \[1, 2\] …

---

## [The plot (with Plots pkg) not displayed, if plot(...) is not the last operator](https://discourse.julialang.org/t/the-plot-with-plots-pkg-not-displayed-if-plot-is-not-the-last-operator/34410)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 4\
**Last updated:** [October 20, 2020, 5:45pm UTC](https://discourse.julialang.org/t/the-plot-with-plots-pkg-not-displayed-if-plot-is-not-the-last-operator/34410 "2020-10-20T17:45:32Z")

</div>

This works as expected: using Plots gr() x = 0:0.1:1 y = sin.(2π\*x) @show plot(x, y, lw=3) and this does not display anything, no produce any error messages: ... @show plot(x, y, lw=3) a=1 and this works again (worka…

---

## [Combining functors, broadcasting, and pipes](https://discourse.julialang.org/t/combining-functors-broadcasting-and-pipes/48691)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 4:27pm UTC](https://discourse.julialang.org/t/combining-functors-broadcasting-and-pipes/48691 "2020-10-20T16:27:12Z")

</div>

I’ve got another behavior I don’t quite understand. Here’s an MWE: begin struct MyStruct x end function(ms::MyStruct)(y) ms.x\*y end end ms1=MyStruct(2) ms1(2) # works 2 |\> ms1 # works ms1.((3,4)) # works b…

---

## [Pkg Ecosystem Statistics](https://discourse.julialang.org/t/pkg-ecosystem-statistics/48673)

<div class="topic-metadata">

**Author:** [@staticfloat](https://discourse.julialang.org/u/staticfloat)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 4:02pm UTC](https://discourse.julialang.org/t/pkg-ecosystem-statistics/48673 "2020-10-20T16:02:08Z")

</div>

We are pleased to announce that the Pkg Server ecosystem has matured to the point that we’re ready to start analyzing the Pkg Server logs and providing processed log output to the community. The Pkg Server community mai…

---

## [\`code\_warntype\` understanding](https://discourse.julialang.org/t/code-warntype-understanding/48627)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 30\
**Last updated:** [October 20, 2020, 3:42pm UTC](https://discourse.julialang.org/t/code-warntype-understanding/48627 "2020-10-20T15:42:11Z")

</div>

Here is a code that puzzles me. How can it be? @code\_warntype model(2.1,0.3,0.3; pars=\[1,1,1.0\]) # fine, body::Complex{Float64} # x(a,b,c) = model(a,b,c; pars=\[1,1,1.0\]) @code\_warntype x(2.1,0.3,0.3) # body::Any In gen…

---

## [Engineering and ops roles at Metalenz \[Boston, MA\]](https://discourse.julialang.org/t/engineering-and-ops-roles-at-metalenz-boston-ma/48039)

<div class="topic-metadata">

**Author:** [@platawiec](https://discourse.julialang.org/u/platawiec)\
**Replies:** 0\
**Last updated:** [October 9, 2020, 2:01pm UTC](https://discourse.julialang.org/t/engineering-and-ops-roles-at-metalenz-boston-ma/48039 "2020-10-09T14:01:18Z")

</div>

Metalenz is a venture-backed startup developing next-generation sensing systems for consumer electronics with metasurface technology. We develop our design and simulation tooling in Julia. If you are interested in invers…

---

## [Interactive slider in VSCode](https://discourse.julialang.org/t/interactive-slider-in-vscode/45246)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 5\
**Last updated:** [October 20, 2020, 2:45pm UTC](https://discourse.julialang.org/t/interactive-slider-in-vscode/45246 "2020-10-20T14:45:14Z")

</div>

Hey! So I know that one can make interactive sliders bound to for example a variable in the two notebooks Jupyter and Pluto. It is also possible in Juno according to the Interact.jl docs. But as VSCode is my favorite ID…

---

## [\[ANN\] LayeredLayouts for Directed Acyclic Graphs](https://discourse.julialang.org/t/ann-layeredlayouts-for-directed-acyclic-graphs/48689)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 0\
**Last updated:** [October 20, 2020, 2:28pm UTC](https://discourse.julialang.org/t/ann-layeredlayouts-for-directed-acyclic-graphs/48689 "2020-10-20T14:28:51Z")

</div>

I am announcing LayeredLayouts.jl v0.1.0. It works out how to layout directedec acyclic graphs. Infact it workout how to optimally lay them out via solving the Mixed Integer Progamming problem of minimizing the number …

---

## [GUI to edit matrix in Julia?](https://discourse.julialang.org/t/gui-to-edit-matrix-in-julia/48663)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 7\
**Last updated:** [October 20, 2020, 1:22pm UTC](https://discourse.julialang.org/t/gui-to-edit-matrix-in-julia/48663 "2020-10-20T13:22:16Z")

</div>

I would like to ask a similar question to Stack Overflow’s GUI to Create Table in Julia. Is there any Pkg in Julia that has a GUI like uitable in Matlab or similar that allows editing interactively a matrix/table? And on…

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

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