# Latest

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

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

**Page:** 1379

---

## [Fortran calling Julia. Julia 10x slower than Fortran](https://discourse.julialang.org/t/fortran-calling-julia-julia-10x-slower-than-fortran/61736)

<div class="topic-metadata">

**Author:** [@eduardovrs](https://discourse.julialang.org/u/eduardovrs)\
**Replies:** 15\
**Last updated:** [May 27, 2021, 7:11pm UTC](https://discourse.julialang.org/t/fortran-calling-julia-julia-10x-slower-than-fortran/61736 "2021-05-27T19:11:26Z")

</div>

Fortran calling Julia. Julia 10x slower than Fortran Dear Julia community, I am a beginner programmer and I enjoyed learning and coding in Julia a lot. I have been working on a Julia interface for Finite Element Analys…

---

## [Julia v1.6.1 has been released](https://discourse.julialang.org/t/julia-v1-6-1-has-been-released/59905)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 19\
**Last updated:** [May 27, 2021, 4:26pm UTC](https://discourse.julialang.org/t/julia-v1-6-1-has-been-released/59905 "2021-05-27T16:26:58Z")

</div>

Julia version 1.6.1, the first patch release in the 1.6 series of releases, is now available. You can get binaries for glibc Linux (i686, x86-64, AArch64, and—for the first time in quite a while—ARMv7), musl Linux (x86-6…

---

## [Why ERROR when -e or -E are used?](https://discourse.julialang.org/t/why-error-when-e-or-e-are-used/61928)

<div class="topic-metadata">

**Author:** [@ederag](https://discourse.julialang.org/u/ederag)\
**Replies:** 3\
**Last updated:** [May 27, 2021, 3:40pm UTC](https://discourse.julialang.org/t/why-error-when-e-or-e-are-used/61928 "2021-05-27T15:40:12Z")

</div>

How should -e or -E be used ? I’m getting ERROR even for commands that look legit. Search gave pretty little, so I suspect something on my system, but even in a pristine bash: bash --noprofile --norc bash-4.4$ julia -…

---

## [WebIO JupyterLab not compatible?](https://discourse.julialang.org/t/webio-jupyterlab-not-compatible/61938)

<div class="topic-metadata">

**Author:** [@PaulN](https://discourse.julialang.org/u/PaulN)\
**Replies:** 0\
**Last updated:** [May 27, 2021, 3:17pm UTC](https://discourse.julialang.org/t/webio-jupyterlab-not-compatible/61938 "2021-05-27T15:17:23Z")

</div>

I cannot seem to install WebIO for jupyterlab 3.0.0. Is there a fix for this? I get an incompatibility error.

---

## [Dpi parameter controlling size of plot display in Jupyter Notebook?](https://discourse.julialang.org/t/dpi-parameter-controlling-size-of-plot-display-in-jupyter-notebook/61750)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 1\
**Last updated:** [May 27, 2021, 3:04pm UTC](https://discourse.julialang.org/t/dpi-parameter-controlling-size-of-plot-display-in-jupyter-notebook/61750 "2021-05-27T15:04:00Z")

</div>

I’ve encountered some weird behavior when using Plots.jl. I’d like to know if this is a bug. Consider the following code: using Plots; gr() x = collect(0:0.1:50) y = sin.(x) plot(x,y, dpi = 50) With dpi = 50 the plot l…

---

## [Should we be allowed to resurrect years-old threads?](https://discourse.julialang.org/t/should-we-be-allowed-to-resurrect-years-old-threads/48519)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 23\
**Last updated:** [May 27, 2021, 2:53pm UTC](https://discourse.julialang.org/t/should-we-be-allowed-to-resurrect-years-old-threads/48519 "2021-05-27T14:53:04Z")

</div>

Perhaps it would be best to lock posts after a few months?, a year? Resurrecting such an old post is probably not good way of continuing the conversation. It might be best to start a new thread and reference the old one…

---

## [Type of function in struct](https://discourse.julialang.org/t/type-of-function-in-struct/61909)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 17\
**Last updated:** [May 27, 2021, 2:11pm UTC](https://discourse.julialang.org/t/type-of-function-in-struct/61909 "2021-05-27T14:11:51Z")

</div>

Hello, I have a struct that I would like to include a function in. How should I declare its type? Base.@kwdef mutable struct Tmp Δt :: Float64 = 0.3 t :: Float64 = 0 timestep :: Int = 0 function = 0.0 e…

---

## [Notes on lock-free programming](https://discourse.julialang.org/t/notes-on-lock-free-programming/61510)

<div class="topic-metadata">

**Author:** [@eaubanel](https://discourse.julialang.org/u/eaubanel)\
**Replies:** 6\
**Last updated:** [May 27, 2021, 1:08pm UTC](https://discourse.julialang.org/t/notes-on-lock-free-programming/61510 "2021-05-27T13:08:25Z")

</div>

I used Julia as the language in my intro to parallel computing course this year, and it went quite well. Over the past year I’ve created some notes on Julia parallel computing topics, which may be of interest to the comm…

---

## [Upgrading version of DataFrames (stuck at 0.21.8)](https://discourse.julialang.org/t/upgrading-version-of-dataframes-stuck-at-0-21-8/61914)

<div class="topic-metadata">

**Author:** [@angelv](https://discourse.julialang.org/u/angelv)\
**Replies:** 5\
**Last updated:** [May 27, 2021, 12:44pm UTC](https://discourse.julialang.org/t/upgrading-version-of-dataframes-stuck-at-0-21-8/61914 "2021-05-27T12:44:27Z")

</div>

Hi, this must be a very silly thing, but I haven’t updated Julia in quite some time, and I can’t remember how to do it properly. Basically I just installed Julia 1.6.1, and then, since I would like to keep the same packa…

---

## [How to increase plot width in Julia Plots.jl without increasing tick line width and the gap between tick and tick axis](https://discourse.julialang.org/t/how-to-increase-plot-width-in-julia-plots-jl-without-increasing-tick-line-width-and-the-gap-between-tick-and-tick-axis/61660)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 12\
**Last updated:** [May 27, 2021, 12:18pm UTC](https://discourse.julialang.org/t/how-to-increase-plot-width-in-julia-plots-jl-without-increasing-tick-line-width-and-the-gap-between-tick-and-tick-axis/61660 "2021-05-27T12:18:11Z")

</div>

Hello, I want to plot many data points whose x values are very close to each other. To be able to separate them out a little more so that they can be seen more clearly, I want to increase the plot width (it can be much …

---

## [Plotting Library for Online Tutorial / Book](https://discourse.julialang.org/t/plotting-library-for-online-tutorial-book/61915)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 0\
**Last updated:** [May 27, 2021, 12:09pm UTC](https://discourse.julialang.org/t/plotting-library-for-online-tutorial-book/61915 "2021-05-27T12:09:31Z")

</div>

I am part of the effort to recreate “Causal Inference: The Mixtape” in Julia and therefore tried a couple of plotting libraries to recreate the first plot in the book (https://mixtape.scunning.com/probability-and-regress…

---

## [Dividing a 1D domain into subdomains using Distributed Arrays (boundary element implementation)](https://discourse.julialang.org/t/dividing-a-1d-domain-into-subdomains-using-distributed-arrays-boundary-element-implementation/61858)

<div class="topic-metadata">

**Author:** [@Debasish](https://discourse.julialang.org/u/Debasish)\
**Replies:** 1\
**Last updated:** [May 27, 2021, 12:05pm UTC](https://discourse.julialang.org/t/dividing-a-1d-domain-into-subdomains-using-distributed-arrays-boundary-element-implementation/61858 "2021-05-27T12:05:09Z")

</div>

Hello everyone, I am new to Julia and this is a baby-step towards writing boundary element simulations with distributed computing. I wish to divide a 1-D line (a sin-curve) into different domains (elements) and distrib…

---

## [Strange case of permutedims() preventing further growth of its input](https://discourse.julialang.org/t/strange-case-of-permutedims-preventing-further-growth-of-its-input/61913)

<div class="topic-metadata">

**Author:** [@vvbond](https://discourse.julialang.org/u/vvbond)\
**Replies:** 4\
**Last updated:** [May 27, 2021, 11:59am UTC](https://discourse.julialang.org/t/strange-case-of-permutedims-preventing-further-growth-of-its-input/61913 "2021-05-27T11:59:34Z")

</div>

Most probably it is a feature, not a bug, but the following behavior is a surprising inconvenience for me. I’d appreciate if some expert would care to comment or suggest a workaround. julia\> a = \[1,2,3\] 3-element Vector…

---

## [Live reload API](https://discourse.julialang.org/t/live-reload-api/61908)

<div class="topic-metadata">

**Author:** [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 9:46am UTC](https://discourse.julialang.org/t/live-reload-api/61908 "2021-05-27T09:46:26Z")

</div>

I wonder is there any mechanism to implement live reload in case one develops REST API? As an example, consider the following code, which is defined in file “server.jl” using HTTP function hello(r) return HTTP.Res…

---

## [Vscode: how to generate a list of all variables used in code?](https://discourse.julialang.org/t/vscode-how-to-generate-a-list-of-all-variables-used-in-code/61267)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 5\
**Last updated:** [May 27, 2021, 8:09am UTC](https://discourse.julialang.org/t/vscode-how-to-generate-a-list-of-all-variables-used-in-code/61267 "2021-05-27T08:09:51Z")

</div>

Hallo, I am starting to document a large program SoilWater-ToolBox, is there a way to generate a list of the all the variables used in the program ? I am using DocumenterDocumenter.jl Many thanks for any help you may p…

---

## [Developing Julia modules with Pluto](https://discourse.julialang.org/t/developing-julia-modules-with-pluto/61862)

<div class="topic-metadata">

**Author:** [@Ngoc-Duc](https://discourse.julialang.org/u/Ngoc-Duc)\
**Replies:** 3\
**Last updated:** [May 27, 2021, 8:04am UTC](https://discourse.julialang.org/t/developing-julia-modules-with-pluto/61862 "2021-05-27T08:04:25Z")

</div>

I noticed that in pluto notebooks, there are always 2 imported packages: Markdown and InteractiveUtils. But if we want to use those notebooks as modules, we really dont need them at all. Why they are not commented like t…

---

## [Suggestion for keyboard/pointer bundle for someone that doesn't like the mouse?](https://discourse.julialang.org/t/suggestion-for-keyboard-pointer-bundle-for-someone-that-doesnt-like-the-mouse/61903)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [May 27, 2021, 8:02am UTC](https://discourse.julialang.org/t/suggestion-for-keyboard-pointer-bundle-for-someone-that-doesnt-like-the-mouse/61903 "2021-05-27T08:02:03Z")

</div>

Hello, I don’t like using the mouse and struggling to find a replacement for my needs. I use mostly the keyboard to code or to write, but I am still using graphical inputs substantially (I am not a vim/emacs user :wink: …

---

## [How avoid this Warning when I use Contour](https://discourse.julialang.org/t/how-avoid-this-warning-when-i-use-contour/61327)

<div class="topic-metadata">

**Author:** [@MillerSilva](https://discourse.julialang.org/u/MillerSilva)\
**Replies:** 16\
**Last updated:** [May 27, 2021, 12:08am UTC](https://discourse.julialang.org/t/how-avoid-this-warning-when-i-use-contour/61327 "2021-05-27T00:08:40Z")

</div>

Hello Julia comunity, I need your help. When I run this xs = range(-5,stop=7,length=50) ys = range(-2,stop=12,length=50) contour(xs,ys,h, levels=\[0,2,3,20,30\]) contour!(xs,ys,g, levels=\[-7,-6,-5,-4,-3,-2,-1,-0.5,0\]…

---

## [\`Vararg\` argument as optional argument gives error when there is a keyword argument](https://discourse.julialang.org/t/vararg-argument-as-optional-argument-gives-error-when-there-is-a-keyword-argument/61812)

<div class="topic-metadata">

**Author:** [@frankwswang](https://discourse.julialang.org/u/frankwswang)\
**Replies:** 3\
**Last updated:** [May 27, 2021, 6:05am UTC](https://discourse.julialang.org/t/vararg-argument-as-optional-argument-gives-error-when-there-is-a-keyword-argument/61812 "2021-05-27T06:05:30Z")

</div>

MWE: julia\> foo(a, b::Array{Int, 1}...=\[0,0\];c="") = @show b foo (generic function with 3 methods) julia\> goo(a,b::Array{Array{Int, 1}, 1}) = begin c = "c" foo(a, b...;c) end goo (generic function …

---

## [Parametric or normal types for dispatching on materials](https://discourse.julialang.org/t/parametric-or-normal-types-for-dispatching-on-materials/61808)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 1\
**Last updated:** [May 27, 2021, 5:54am UTC](https://discourse.julialang.org/t/parametric-or-normal-types-for-dispatching-on-materials/61808 "2021-05-27T05:54:42Z")

</div>

When generating a type representing a material would it be better to generate types for every material or to create a parametric material type. What would you suggest and why? abstract type Material end struct Gold \<:…

---

## [Image analysis](https://discourse.julialang.org/t/image-analysis/61894)

<div class="topic-metadata">

**Author:** [@rajan\_mav](https://discourse.julialang.org/u/rajan_mav)\
**Replies:** 2\
**Last updated:** [May 27, 2021, 3:34am UTC](https://discourse.julialang.org/t/image-analysis/61894 "2021-05-27T03:34:04Z")

</div>

Hi, I am new to Julia, I have an image (attached), what will be the best way to analyze/count the dots, barring all other information from the image?

---

## [Solve for Hermitian PSD with non-linear objective in JuMP](https://discourse.julialang.org/t/solve-for-hermitian-psd-with-non-linear-objective-in-jump/61539)

<div class="topic-metadata">

**Author:** [@nhardy](https://discourse.julialang.org/u/nhardy)\
**Replies:** 19\
**Last updated:** [May 27, 2021, 1:28am UTC](https://discourse.julialang.org/t/solve-for-hermitian-psd-with-non-linear-objective-in-jump/61539 "2021-05-27T01:28:32Z")

</div>

I am new to using JuMP, and was hoping for some help. I am trying to estimate the elements of a matrix that is: Hermitian (in general complex numbers) Semi-positive definite diagonal elements are \>= 0 trace == 1 After…

---

## [Replacing values of specific entries in an Array In Julia](https://discourse.julialang.org/t/replacing-values-of-specific-entries-in-an-array-in-julia/25259)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 10\
**Last updated:** [May 26, 2021, 4:30am UTC](https://discourse.julialang.org/t/replacing-values-of-specific-entries-in-an-array-in-julia/25259 "2021-05-26T04:30:46Z")

</div>

I am wondering about how to implement efficiently a code that replaces some entries of an array with specific values. In other words, I have a matrix and a vector with some indices of the matrix where a logical condition…

---

## [Ismissing(x) versus x === missing](https://discourse.julialang.org/t/ismissing-x-versus-x-missing/52171)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 15\
**Last updated:** [May 26, 2021, 11:33pm UTC](https://discourse.julialang.org/t/ismissing-x-versus-x-missing/52171 "2021-05-26T23:33:03Z")

</div>

Maybe this is a dumb question, but there seems to be a bit of confusion about using ismissing(x) versus x === missing, and isnothing(x) versus x === nothing at \[ANN\] ShowLint - #3 by Mason. I would say that in both case…

---

## [Iterating over a DataFrame](https://discourse.julialang.org/t/iterating-over-a-dataframe/61890)

<div class="topic-metadata">

**Author:** [@mo\_re](https://discourse.julialang.org/u/mo_re)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 10:16pm UTC](https://discourse.julialang.org/t/iterating-over-a-dataframe/61890 "2021-05-26T22:16:30Z")

</div>

Hey everyone! I’m really struggling with a basic concept and was hoping anyone can help me (and that I explain it well enough). Here goes… I have imported a simple 4x5 dataframe into julia and am trying to apply a func…

---

## [Libiconv artifact not available on storage servers?](https://discourse.julialang.org/t/libiconv-artifact-not-available-on-storage-servers/61878)

<div class="topic-metadata">

**Author:** [@Samuel\_Stapleton](https://discourse.julialang.org/u/Samuel_Stapleton)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 9:36pm UTC](https://discourse.julialang.org/t/libiconv-artifact-not-available-on-storage-servers/61878 "2021-05-26T21:36:01Z")

</div>

I noticed that Libiconv v1.16.1+0 artifacts don’t appear to be available on the storage servers. For example, https://us-east.storage.juliahub.com/artifact/644f24d4876309d0b771bdad3cbd7ca58f8f24d4 Is this to be expected…

---

## [\[ANN\] ImPlot.jl -- FAST real-time plotting for CImGui.jl](https://discourse.julialang.org/t/ann-implot-jl-fast-real-time-plotting-for-cimgui-jl/43087)

<div class="topic-metadata">

**Author:** [@wsphillips](https://discourse.julialang.org/u/wsphillips)\
**Replies:** 28\
**Last updated:** [May 26, 2021, 9:21pm UTC](https://discourse.julialang.org/t/ann-implot-jl-fast-real-time-plotting-for-cimgui-jl/43087 "2021-05-26T21:21:51Z")

</div>

I wrapped a really nice plotting extension called implot, a C++ plugin for Dear ImGui. With some clutch help from @Gnimuc and the magic of BinaryBuilder.jl this package can be imported into a Julia session that’s using C…

---

## [Multithreading inconsistency issue](https://discourse.julialang.org/t/multithreading-inconsistency-issue/61879)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 4\
**Last updated:** [May 26, 2021, 8:33pm UTC](https://discourse.julialang.org/t/multithreading-inconsistency-issue/61879 "2021-05-26T20:33:09Z")

</div>

The following is a simplified version of a problem I’m working on. I get different answers depending on whether or not I use threads. This has got to be some sort of race condition, but I"m not sure how to straighten i…

---

## [How to train/predict a very simple feed-forward neural network in Flux?](https://discourse.julialang.org/t/how-to-train-predict-a-very-simple-feed-forward-neural-network-in-flux/39534)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [May 26, 2021, 8:42pm UTC](https://discourse.julialang.org/t/how-to-train-predict-a-very-simple-feed-forward-neural-network-in-flux/39534 "2021-05-26T20:42:40Z")

</div>

I must be idiot but I can’t realise how to do very basic… no Convolution, RNN, gates,… just a basic plain feed-forward neural network design/testing/validation in Flux. Somethink like: l1 = FullyConnectedLayer(tanh,2,3…

---

## [Factors for regression models in julia](https://discourse.julialang.org/t/factors-for-regression-models-in-julia/61836)

<div class="topic-metadata">

**Author:** [@Babou](https://discourse.julialang.org/u/Babou)\
**Replies:** 5\
**Last updated:** [May 26, 2021, 8:35pm UTC](https://discourse.julialang.org/t/factors-for-regression-models-in-julia/61836 "2021-05-26T20:35:50Z")

</div>

I want to build a linear mixed model in Julia but the R code I am basing it on requires the use of factors for the model. I came across a stackoverflow post on just this topic but it was from 2017 and I am hoping ther…

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

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