# Latest

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

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

**Page:** 1774

---

## [My 1 Year Anniversary](https://discourse.julialang.org/t/my-1-year-anniversary/37648)

<div class="topic-metadata">

**Author:** [@dburch](https://discourse.julialang.org/u/dburch)\
**Replies:** 7\
**Last updated:** [April 16, 2020, 5:13pm UTC](https://discourse.julialang.org/t/my-1-year-anniversary/37648 "2020-04-16T17:13:59Z")

</div>

It’s my 1 year anniversary for joining the community. Apparently, I joined on tax day 2019. Yay! Thank you all for the support with my code. I’ve used the JuMP package to create several optimization tools at a large sup…

---

## [Mapleaves not found?](https://discourse.julialang.org/t/mapleaves-not-found/37704)

<div class="topic-metadata">

**Author:** [@SY\_QQX](https://discourse.julialang.org/u/SY_QQX)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 5:10pm UTC](https://discourse.julialang.org/t/mapleaves-not-found/37704 "2020-04-16T17:10:14Z")

</div>

I was trying to map a layer into Cuda following the tutorial at https://fluxml.ai/Flux.jl/v0.4/gpu.html However, when I tried, it said mapleaves not defined. Is the method deprecated? If so, what is the proper way of d…

---

## [Printf moved from Base in v1.4?](https://discourse.julialang.org/t/printf-moved-from-base-in-v1-4/36362)

<div class="topic-metadata">

**Author:** [@swishmas](https://discourse.julialang.org/u/swishmas)\
**Replies:** 3\
**Last updated:** [April 16, 2020, 5:09pm UTC](https://discourse.julialang.org/t/printf-moved-from-base-in-v1-4/36362 "2020-04-16T17:09:34Z")

</div>

I decided to use basic commands like @sprintf without explicitly importing the module required. That is, instead of writing using Printf @sprintf("%.3f",0.4) I wanted to write something like Base.Printf.@sprintf("%.3…

---

## [Why is the y axis label horizontal](https://discourse.julialang.org/t/why-is-the-y-axis-label-horizontal/37681)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 4\
**Last updated:** [April 16, 2020, 4:52pm UTC](https://discourse.julialang.org/t/why-is-the-y-axis-label-horizontal/37681 "2020-04-16T16:52:40Z")

</div>

For weeks this worked. I haven’t touched the plot function. Suddenly, the y axis label is horizontal instead of vertical. guidefontrotation changes both the x axis and y axis labels. So, that won’t work. Yes, I adde…

---

## [Cannot use Plots](https://discourse.julialang.org/t/cannot-use-plots/37616)

<div class="topic-metadata">

**Author:** [@fhkm](https://discourse.julialang.org/u/fhkm)\
**Replies:** 11\
**Last updated:** [April 16, 2020, 3:59pm UTC](https://discourse.julialang.org/t/cannot-use-plots/37616 "2020-04-16T15:59:20Z")

</div>

I am unable to create plots with Julia v1.4 on Windows 7 x64. The package cannot be initiated. see the screenshot and error message below. Blockquote julia\> using Plots ERROR: InitError: could not load library …

---

## [Setting number of processors on Windows](https://discourse.julialang.org/t/setting-number-of-processors-on-windows/37680)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 11\
**Last updated:** [April 16, 2020, 3:05pm UTC](https://discourse.julialang.org/t/setting-number-of-processors-on-windows/37680 "2020-04-16T15:05:10Z")

</div>

I have julia installed on Windows and I do not know how to set the number of processors. julia\> VERSION v"1.4.0" julia\> JULIA\_NUM\_THREADS=4 4 julia\> Threads.nthreads() 1 It seems that the suggestion on this previous th…

---

## [Efficient way to apply monotonous rank transformation to an array](https://discourse.julialang.org/t/efficient-way-to-apply-monotonous-rank-transformation-to-an-array/37689)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 4\
**Last updated:** [April 16, 2020, 1:51pm UTC](https://discourse.julialang.org/t/efficient-way-to-apply-monotonous-rank-transformation-to-an-array/37689 "2020-04-16T13:51:02Z")

</div>

hi guys, i wonder if any of you know of a more efficient way to rank an array currently i am using A=\[45, 4, 7, 10, 25, 36, 36, 22, 31, 16\] # input vector S=invperm(sort(1:length(A),by=i-\>A\[i\])) f(x)=x^2 B=1:length(…

---

## [Atomic\_min for floats](https://discourse.julialang.org/t/atomic-min-for-floats/35880)

<div class="topic-metadata">

**Author:** [@eaubanel](https://discourse.julialang.org/u/eaubanel)\
**Replies:** 9\
**Last updated:** [April 16, 2020, 1:25pm UTC](https://discourse.julialang.org/t/atomic-min-for-floats/35880 "2020-04-16T13:25:57Z")

</div>

I’m getting unexpected behavior for atomic\_min!(x::Atomic{T}, val::T) with floats. This function returns the old value of x. Works fine for Ints, but for Floats it returns the new value: julia\> E = Atomic{Float64}(10) …

---

## [Ask the Julia core developers anything: Jeff and Stefan edition](https://discourse.julialang.org/t/ask-the-julia-core-developers-anything-jeff-and-stefan-edition/37697)

<div class="topic-metadata">

**Author:** [@avik](https://discourse.julialang.org/u/avik)\
**Replies:** 0\
**Last updated:** [April 16, 2020, 1:15pm UTC](https://discourse.julialang.org/t/ask-the-julia-core-developers-anything-jeff-and-stefan-edition/37697 "2020-04-16T13:15:04Z")

</div>

The Second Worldwide Julia Virtual Meetup is scheduled for later today, Thursday 16th April, at 11:30 EDT (16:30 BST, 15:30 UTC). At this event, @jeff.bezanson and @StefanKarpinski and will answer questions from the a…

---

## [A question about code](https://discourse.julialang.org/t/a-question-about-code/37694)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 4\
**Last updated:** [April 16, 2020, 12:12pm UTC](https://discourse.julialang.org/t/a-question-about-code/37694 "2020-04-16T12:12:30Z")

</div>

A=Any\[\] for i=1:3 A\[i\]=2 #print(A) end what is the matter about the code?thank you!

---

## [Cambridge UK AI ASSISTED DIAGNOSIS AND PROGNOSTICATION IN COVID-19](https://discourse.julialang.org/t/cambridge-uk-ai-assisted-diagnosis-and-prognostication-in-covid-19/37690)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [April 16, 2020, 10:15am UTC](https://discourse.julialang.org/t/cambridge-uk-ai-assisted-diagnosis-and-prognostication-in-covid-19/37690 "2020-04-16T10:15:59Z")

</div>

I know there are many research efforts on Covid-19. this one from Cambridge looks extremely impressive. Perhaps it would be of interest to Julians in the UK?

---

## [Enumerate not suported for @threads](https://discourse.julialang.org/t/enumerate-not-suported-for-threads/37670)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 3:04am UTC](https://discourse.julialang.org/t/enumerate-not-suported-for-threads/37670 "2020-04-16T03:04:28Z")

</div>

When trying to use @threads on a for loop with enumerate, an error is thrown Threads.@threads for (idx, a) in enumerate(A) ... # Process end ERROR: LoadError: TaskFailedException: MethodError: no method matching f…

---

## [Cancelled: JuMP-dev 2020](https://discourse.julialang.org/t/cancelled-jump-dev-2020/37675)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 0\
**Last updated:** [April 16, 2020, 12:31am UTC](https://discourse.julialang.org/t/cancelled-jump-dev-2020/37675 "2020-04-16T00:31:39Z")

</div>

First, we hope that everyone is safe in these uncertain times. Our first priority will always be the health and well-being of the JuMP community. Therefore, we regret to announce that we have decided to cancel JuMP-dev …

---

## [MySQL Date conversion failure](https://discourse.julialang.org/t/mysql-date-conversion-failure/37644)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 4\
**Last updated:** [April 15, 2020, 11:08pm UTC](https://discourse.julialang.org/t/mysql-date-conversion-failure/37644 "2020-04-15T23:08:23Z")

</div>

I have managed to get MySQL.jl working, and it seems a very handy utility. \[I would be grateful for any up-to-date documentation on it - I had to figure it out from trial and error\] I managed to get MySQL.connect worki…

---

## [Help understanding what happens in a \`@threads\` loop with race conditions](https://discourse.julialang.org/t/help-understanding-what-happens-in-a-threads-loop-with-race-conditions/37584)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 13\
**Last updated:** [April 15, 2020, 10:03pm UTC](https://discourse.julialang.org/t/help-understanding-what-happens-in-a-threads-loop-with-race-conditions/37584 "2020-04-15T22:03:29Z")

</div>

It tried something silly that went wrong, and I’m trying to get a better understanding of exactly why this happens. Consider the following using Base.Threads function mask!(v, M) @threads for j ∈ 1:size(M,2) …

---

## [How to dispatch on an iterable (e.g. accept both tuple or array)](https://discourse.julialang.org/t/how-to-dispatch-on-an-iterable-e-g-accept-both-tuple-or-array/37629)

<div class="topic-metadata">

**Author:** [@jtravs](https://discourse.julialang.org/u/jtravs)\
**Replies:** 4\
**Last updated:** [April 15, 2020, 9:38pm UTC](https://discourse.julialang.org/t/how-to-dispatch-on-an-iterable-e-g-accept-both-tuple-or-array/37629 "2020-04-15T21:38:22Z")

</div>

Is it possible to dispatch on if a method argument is iterable? I’d like to dispatch a method based on if an argument is scalar input or some kind of iterable. My main target for the iterable method is to accept either a…

---

## [Membership of Type{T}](https://discourse.julialang.org/t/membership-of-type-t/37654)

<div class="topic-metadata">

**Author:** [@ckfinite](https://discourse.julialang.org/u/ckfinite)\
**Replies:** 3\
**Last updated:** [April 15, 2020, 9:34pm UTC](https://discourse.julialang.org/t/membership-of-type-t/37654 "2020-04-15T21:34:21Z")

</div>

I’ve ran into a type membership question with Type{T}, which seems to be behaving counterintuitively. According to the documentation, Type{T} is the singleton consisting of the type T itself. Thus, isa(Int, Type{T}) ret…

---

## [Unable to add Plots package in V1.4](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610)

<div class="topic-metadata">

**Author:** [@fhkm](https://discourse.julialang.org/u/fhkm)\
**Replies:** 8\
**Last updated:** [April 15, 2020, 8:20pm UTC](https://discourse.julialang.org/t/unable-to-add-plots-package-in-v1-4/37610 "2020-04-15T20:20:55Z")

</div>

I have a clean install of V1.4 and failed to add Plots package. See the screenshot and the message below: How can I fix this issue? Thank you very much. julia\> import Pkg julia\> Pkg.add(“Plots”) Updating registry…

---

## [\[ANN\]: Multivectors.jl](https://discourse.julialang.org/t/ann-multivectors-jl/37603)

<div class="topic-metadata">

**Author:** [@Orbots](https://discourse.julialang.org/u/Orbots)\
**Replies:** 3\
**Last updated:** [April 15, 2020, 7:04pm UTC](https://discourse.julialang.org/t/ann-multivectors-jl/37603 "2020-04-15T19:04:09Z")

</div>

Announcing Multivectors.jl. A package implementing Geometric Algebra with positive, negative and degenerate metric signatures.

---

## [For loop on a structure's field names](https://discourse.julialang.org/t/for-loop-on-a-structures-field-names/37573)

<div class="topic-metadata">

**Author:** [@francesco123212](https://discourse.julialang.org/u/francesco123212)\
**Replies:** 11\
**Last updated:** [April 15, 2020, 7:22pm UTC](https://discourse.julialang.org/t/for-loop-on-a-structures-field-names/37573 "2020-04-15T19:22:01Z")

</div>

Hi everyone, hope you are all healthy. I’m a mechanical engineering student and I come from MATLAB, so I am sorry for my heresies. I have a structure with 13 fields, each of which is a structure with 10 fields, for exa…

---

## [Weird behaviour with packages and multiple processes](https://discourse.julialang.org/t/weird-behaviour-with-packages-and-multiple-processes/37651)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 6:25pm UTC](https://discourse.julialang.org/t/weird-behaviour-with-packages-and-multiple-processes/37651 "2020-04-15T18:25:57Z")

</div>

Hi, I’m trying to develop a package which has some functionality that uses Distributed, I created a project to test and run my function but I’m getting some weirdness: So I created a project with the package I wanted to…

---

## [RayTracer.jl a differentiable ray tracer](https://discourse.julialang.org/t/raytracer-jl-a-differentiable-ray-tracer/26527)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 29\
**Last updated:** [April 15, 2020, 6:25pm UTC](https://discourse.julialang.org/t/raytracer-jl-a-differentiable-ray-tracer/26527 "2020-04-15T18:25:03Z")

</div>

I am really enthused by @ChrisRackauckas tweets about ScientificAI, the new paper and JuliaCon. I guess the answer is ‘go to JuliaCon’’ - which sadly I cannot. @avikpal paper on RayTracer.jl caught my eye. Please could…

---

## [Embedding Julia without RTLD\_GLOBAL in dlopen?](https://discourse.julialang.org/t/embedding-julia-without-rtld-global-in-dlopen/37655)

<div class="topic-metadata">

**Author:** [@OliverEvans96](https://discourse.julialang.org/u/OliverEvans96)\
**Replies:** 3\
**Last updated:** [April 15, 2020, 5:47pm UTC](https://discourse.julialang.org/t/embedding-julia-without-rtld-global-in-dlopen/37655 "2020-04-15T17:47:41Z")

</div>

Hi all, I’ll briefly explain my specific problem, then describe the general question with a minimal working example. The specific problem I’m interested in using Julia to create an LV2 plugin, which is basically an eff…

---

## [Atom segmentation fault](https://discourse.julialang.org/t/atom-segmentation-fault/37653)

<div class="topic-metadata">

**Author:** [@stroebel](https://discourse.julialang.org/u/stroebel)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 5:16pm UTC](https://discourse.julialang.org/t/atom-segmentation-fault/37653 "2020-04-15T17:16:37Z")

</div>

I’ve stumbled upon a segmentation fault. It faults after plotting and then inputting a newline or back space in the editor (so far). Below I have attached some information I thought would be useful. signal (11): Segm…

---

## [Shiny for Julia \[work in progress, early request for feedback\]](https://discourse.julialang.org/t/shiny-for-julia-work-in-progress-early-request-for-feedback/14038)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 30\
**Last updated:** [April 15, 2020, 3:51pm UTC](https://discourse.julialang.org/t/shiny-for-julia-work-in-progress-early-request-for-feedback/14038 "2020-04-15T15:51:34Z")

</div>

I have recently begun working on developing a shiny-like web UI stack for Julia. This is very early work (maybe 10h or so) but since I’m building it on top of Genie, the low and mid-level tiers are already done, so I can…

---

## [Multiline title in Plots.jl](https://discourse.julialang.org/t/multiline-title-in-plots-jl/5977)

<div class="topic-metadata">

**Author:** [@mwsohn](https://discourse.julialang.org/u/mwsohn)\
**Replies:** 4\
**Last updated:** [April 15, 2020, 2:41pm UTC](https://discourse.julialang.org/t/multiline-title-in-plots-jl/5977 "2020-04-15T14:41:31Z")

</div>

Is there a way to create a plot title in multiple lines? In R, ggplot2 displays title in two lines if the title string has an embedded newline character. Thanks

---

## [First look - Debugger.jl Uncut](https://discourse.julialang.org/t/first-look-debugger-jl-uncut/37599)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 7\
**Last updated:** [April 15, 2020, 2:28pm UTC](https://discourse.julialang.org/t/first-look-debugger-jl-uncut/37599 "2020-04-15T14:28:47Z")

</div>

At work, I started making videos of me playing around with our company’s products and recording my thoughts. The UX team and engineering team watch them and think they are useful. So I decided to make one of me using the…

---

## [How to generate variables and assign values from a dictionary by metapgramming?](https://discourse.julialang.org/t/how-to-generate-variables-and-assign-values-from-a-dictionary-by-metapgramming/37638)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 4\
**Last updated:** [April 15, 2020, 2:10pm UTC](https://discourse.julialang.org/t/how-to-generate-variables-and-assign-values-from-a-dictionary-by-metapgramming/37638 "2020-04-15T14:10:31Z")

</div>

I am using ArgParse.jl to parse command line arguments. It returns a dictionary. But I would prefer to generate variables so it’s easier to use them. I tried to use Meta programming as follows function main() parse…

---

## [Mean of eachrow is the mean per column?](https://discourse.julialang.org/t/mean-of-eachrow-is-the-mean-per-column/37632)

<div class="topic-metadata">

**Author:** [@koalive](https://discourse.julialang.org/u/koalive)\
**Replies:** 3\
**Last updated:** [April 15, 2020, 12:48pm UTC](https://discourse.julialang.org/t/mean-of-eachrow-is-the-mean-per-column/37632 "2020-04-15T12:48:09Z")

</div>

Hi, I cannot understand what happens in Julia when taking the mean of an eachrow or eachcol generator. To get the mean of a matrix A per column, one can use the function mean along the first dimension with mean(A, dims …

---

## [Julia version of padarray in matlab](https://discourse.julialang.org/t/julia-version-of-padarray-in-matlab/37635)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 9\
**Last updated:** [April 15, 2020, 12:32pm UTC](https://discourse.julialang.org/t/julia-version-of-padarray-in-matlab/37635 "2020-04-15T12:32:05Z")

</div>

Hello, I’ve been searching the documentations for some kind of julia alternative to the padarray function in matlab (Pad array - MATLAB padarray) but I did not find anything useful. TL;DR: what i want to do is given an…

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

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