# Latest

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

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

**Page:** 1429

---

## [Change button color on odd clicks](https://discourse.julialang.org/t/change-button-color-on-odd-clicks/59123)

<div class="topic-metadata">

**Author:** [@saraflgarcia](https://discourse.julialang.org/u/saraflgarcia)\
**Replies:** 0\
**Last updated:** [April 12, 2021, 4:26pm UTC](https://discourse.julialang.org/t/change-button-color-on-odd-clicks/59123 "2021-04-12T16:26:53Z")

</div>

Hello everyone, With Julia Interact, how can I change button color on odd clicks? Here’s my unsuccessful attempt: heart(color) = button(latex(“\\heartsuit”), style=Dict(:color =\> color, :backgroundColor =\> “white”, …

---

## [Jeff Bezanson remarks on LLVM "getting slower and slower"](https://discourse.julialang.org/t/jeff-bezanson-remarks-on-llvm-getting-slower-and-slower/39637)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 15\
**Last updated:** [April 12, 2021, 4:20pm UTC](https://discourse.julialang.org/t/jeff-bezanson-remarks-on-llvm-getting-slower-and-slower/39637 "2021-04-12T16:20:43Z")

</div>

In Ask us anything: Jeff Bezanson and Stefan Karpinski from April 16 (this year, 2020) Jeff Bezanson told that he has only two worries about Julia and one of this is that “LLVM is keep getting slower and slower” (around …

---

## [Rethinking optimization, lower ok for all Julia code (for e.g. faster startup) as a default?](https://discourse.julialang.org/t/rethinking-optimization-lower-ok-for-all-julia-code-for-e-g-faster-startup-as-a-default/39843)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 7\
**Last updated:** [April 12, 2021, 3:26pm UTC](https://discourse.julialang.org/t/rethinking-optimization-lower-ok-for-all-julia-code-for-e-g-faster-startup-as-a-default/39843 "2021-04-12T15:26:43Z")

</div>

Clearly lower optimization wouldn’t be faster always, or we would always use lower levels. As of version 1.5 it doesn’t need to be one global setting, and since we can tune I suggest changing the default. E.g. for some r…

---

## [Why is this simple function twice as slow as its Python version](https://discourse.julialang.org/t/why-is-this-simple-function-twice-as-slow-as-its-python-version/59004)

<div class="topic-metadata">

**Author:** [@Semi](https://discourse.julialang.org/u/Semi)\
**Replies:** 97\
**Last updated:** [April 12, 2021, 3:23pm UTC](https://discourse.julialang.org/t/why-is-this-simple-function-twice-as-slow-as-its-python-version/59004 "2021-04-12T15:23:04Z")

</div>

I’m in the planing stages for writing a piece of scientific software and I would like to use Julia for it, but I’m surprised how much slower Julia is from Python when tested on this simple code: function test(n::Int64,k…

---

## [CUDA atomics on complex-valued arrays](https://discourse.julialang.org/t/cuda-atomics-on-complex-valued-arrays/59054)

<div class="topic-metadata">

**Author:** [@weylspinor](https://discourse.julialang.org/u/weylspinor)\
**Replies:** 3\
**Last updated:** [April 12, 2021, 2:52pm UTC](https://discourse.julialang.org/t/cuda-atomics-on-complex-valued-arrays/59054 "2021-04-12T14:52:57Z")

</div>

Hi, I am curious if there is an way to do atomic operations on complex-valued arrays in CUDA kernel, e.g. using CUDA function kernel!(x::CuDeviceArray{T}, y::CuDeviceArray{T}) where T i = (blockIdx().x-1)\*blockDim…

---

## [Use of include outside and inside function](https://discourse.julialang.org/t/use-of-include-outside-and-inside-function/59101)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 3\
**Last updated:** [April 12, 2021, 1:49pm UTC](https://discourse.julialang.org/t/use-of-include-outside-and-inside-function/59101 "2021-04-12T13:49:29Z")

</div>

Hi there, I have a file called file.txt, with the following contents: N\_questions = 4 ini\_window = "2021-04-10 14:00" I will use the variables N\_questions and ini\_window later on, in a (long) Julia script I named incl…

---

## [\[ANN\]: QuantumCumulants.jl: Generalized mean-field equations in open quantum systems](https://discourse.julialang.org/t/ann-quantumcumulants-jl-generalized-mean-field-equations-in-open-quantum-systems/59104)

<div class="topic-metadata">

**Author:** [@david-pl](https://discourse.julialang.org/u/david-pl)\
**Replies:** 0\
**Last updated:** [April 12, 2021, 1:46pm UTC](https://discourse.julialang.org/t/ann-quantumcumulants-jl-generalized-mean-field-equations-in-open-quantum-systems/59104 "2021-04-12T13:46:16Z")

</div>

Hi everyone! I’d like to announce the release of QuantumCumulants.jl, a package that automizes the symbolic derivation and numerical solution of mean-field equations. Why it’s useful Generalized mean-field equations ar…

---

## [Is there have an intuitive way to plot an animation plots by frame when using PlotlyJS?](https://discourse.julialang.org/t/is-there-have-an-intuitive-way-to-plot-an-animation-plots-by-frame-when-using-plotlyjs/59102)

<div class="topic-metadata">

**Author:** [@xinzhicaishu](https://discourse.julialang.org/u/xinzhicaishu)\
**Replies:** 0\
**Last updated:** [April 12, 2021, 1:27pm UTC](https://discourse.julialang.org/t/is-there-have-an-intuitive-way-to-plot-an-animation-plots-by-frame-when-using-plotlyjs/59102 "2021-04-12T13:27:04Z")

</div>

I’m a newer in studying Julia, hopefully hearing your reply! oh, BTW, I have read a Github example from this and reference from this, but I can’t reproduce some examples in Plotly.js animation course, some advise useful? …

---

## [Turning Expressions into Functions](https://discourse.julialang.org/t/turning-expressions-into-functions/49558)

<div class="topic-metadata">

**Author:** [@1ozturkbe](https://discourse.julialang.org/u/1ozturkbe)\
**Replies:** 17\
**Last updated:** [April 12, 2021, 12:41pm UTC](https://discourse.julialang.org/t/turning-expressions-into-functions/49558 "2021-04-12T12:41:16Z")

</div>

I have the following Expression: ex = :(sum(x\[i\] for i=1:4)- y\[1\] \* y\[2\] + z) which I would like to evaluate over some data x, y, z. I have tried doing direct substitution through symbolic manipulations, but it is abys…

---

## [Should we ask Microsoft and Apple if they want to sponsor a Julia/Microsoft/Apple summer of code?](https://discourse.julialang.org/t/should-we-ask-microsoft-and-apple-if-they-want-to-sponsor-a-julia-microsoft-apple-summer-of-code/59058)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 12:31pm UTC](https://discourse.julialang.org/t/should-we-ask-microsoft-and-apple-if-they-want-to-sponsor-a-julia-microsoft-apple-summer-of-code/59058 "2021-04-12T12:31:22Z")

</div>

Hey all :slight\_smile: This is just a discussion starter. What do you think? Should we ask Microsoft and Apple if they want to sponsor a Julia/Microsoft/Apple summer of code?

---

## [Readdir return full path](https://discourse.julialang.org/t/readdir-return-full-path/15274)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 21\
**Last updated:** [April 12, 2021, 11:53am UTC](https://discourse.julialang.org/t/readdir-return-full-path/15274 "2021-04-12T11:53:44Z")

</div>

How useful do you people think it would be for readdir(dir) to return the full path name of the files and directories in directory dir? julia\> path = "/home/yakir/tmp" "/home/yakir/tmp" julia\> readdir(path) 3-element A…

---

## [Solving symbolic equations](https://discourse.julialang.org/t/solving-symbolic-equations/57978)

<div class="topic-metadata">

**Author:** [@blakerbuchanan](https://discourse.julialang.org/u/blakerbuchanan)\
**Replies:** 10\
**Last updated:** [April 12, 2021, 10:56am UTC](https://discourse.julialang.org/t/solving-symbolic-equations/57978 "2021-04-12T10:56:31Z")

</div>

I am interested in manipulating symbolic differential equations, but can’t seem to identify a package that provides the functionality I am looking for. I am particularly interested in this functionality for defining a dy…

---

## [Sysimage file extension](https://discourse.julialang.org/t/sysimage-file-extension/59073)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 11:12am UTC](https://discourse.julialang.org/t/sysimage-file-extension/59073 "2021-04-12T11:12:11Z")

</div>

From Creating a sysimage · PackageCompiler (julialang.github.io): “We start Julia with the -Jsys.so flag to load the new custom sys.so sysimage (or sys.dylib , sys.dll on macOS and Windows respecitively)” I have succes…

---

## [Calling a simple method with unused type parameters unexpectedly allocates memory](https://discourse.julialang.org/t/calling-a-simple-method-with-unused-type-parameters-unexpectedly-allocates-memory/59050)

<div class="topic-metadata">

**Author:** [@aciobanas](https://discourse.julialang.org/u/aciobanas)\
**Replies:** 5\
**Last updated:** [April 12, 2021, 11:03am UTC](https://discourse.julialang.org/t/calling-a-simple-method-with-unused-type-parameters-unexpectedly-allocates-memory/59050 "2021-04-12T11:03:00Z")

</div>

Hello, I am trying to understand why the calling of a relatively simple method with unused type parameters allocates memory, while the same method with no type parameters does not. I have a method that is aiming at com…

---

## [Earth engine Authenticate() error](https://discourse.julialang.org/t/earth-engine-authenticate-error/59091)

<div class="topic-metadata">

**Author:** [@praveen1](https://discourse.julialang.org/u/praveen1)\
**Replies:** 0\
**Last updated:** [April 12, 2021, 10:46am UTC](https://discourse.julialang.org/t/earth-engine-authenticate-error/59091 "2021-04-12T10:46:11Z")

</div>

using PyCall; ee = pyimport(“ee”); ee.Authenticate(); To authorize access needed by Earth Engine, open the following URL in a web browser and follow the instructions. If the web browser does not start automatically, p…

---

## [Printed text during package installing/updates](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 5\
**Last updated:** [April 12, 2021, 10:04am UTC](https://discourse.julialang.org/t/printed-text-during-package-installing-updates/59071 "2021-04-12T10:04:31Z")

</div>

I have noticed after updating to 1.6.0 that I sometimes get something like the following printed during package-installation/updating: Updating registry at \`C:\\Users\\densb\\.julia\\registries\\General\` Updating git…

---

## [Pluto: Customizing Cells and Live docs layout](https://discourse.julialang.org/t/pluto-customizing-cells-and-live-docs-layout/59074)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 0\
**Last updated:** [April 12, 2021, 8:08am UTC](https://discourse.julialang.org/t/pluto-customizing-cells-and-live-docs-layout/59074 "2021-04-12T08:08:51Z")

</div>

Hello, I already could modify slightly the layout of Pluto thanks to some posts here. Mainly the witdh of cells and Live docs. However, I am still not full confortable. I would be more confortable by these changes: …

---

## [Running a Stratonovich SDE backwards](https://discourse.julialang.org/t/running-a-stratonovich-sde-backwards/58940)

<div class="topic-metadata">

**Author:** [@miguelbiron](https://discourse.julialang.org/u/miguelbiron)\
**Replies:** 4\
**Last updated:** [April 12, 2021, 8:08am UTC](https://discourse.julialang.org/t/running-a-stratonovich-sde-backwards/58940 "2021-04-12T08:08:12Z")

</div>

I’m very new to Julia, SDE’s and DifferentialEquations, so please bear with me. I need to solve a Stratonovich SDE both forward and backward in time, and arrive at the exact same solution. I understand that this should b…

---

## [oneAPI & FFTW](https://discourse.julialang.org/t/oneapi-fftw/59055)

<div class="topic-metadata">

**Author:** [@fra](https://discourse.julialang.org/u/fra)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 6:12am UTC](https://discourse.julialang.org/t/oneapi-fftw/59055 "2021-04-12T06:12:44Z")

</div>

I’m trying oneAPI.jl with FFTW and I get an error when trying to use complex arrays in the GPU. using oneAPI using FFTW a = randn(1024) .+ im\*randn(1024); b = oneArray(a); fft(a); fft(b); For the oneArray case I get j…

---

## [Efficient parallelization of in place transforms](https://discourse.julialang.org/t/efficient-parallelization-of-in-place-transforms/59062)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 4:50am UTC](https://discourse.julialang.org/t/efficient-parallelization-of-in-place-transforms/59062 "2021-04-12T04:50:22Z")

</div>

I wanted to revisit this discussion from Pmap with in place functions that I started 2 years ago. Generalizing a bit, suppose I have an in place transform f!(x) and array of data, xvals, on which I want to apply the tra…

---

## [Warnings about unused parameter in method](https://discourse.julialang.org/t/warnings-about-unused-parameter-in-method/58956)

<div class="topic-metadata">

**Author:** [@kumarbalachandran](https://discourse.julialang.org/u/kumarbalachandran)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 4:09am UTC](https://discourse.julialang.org/t/warnings-about-unused-parameter-in-method/58956 "2021-04-12T04:09:31Z")

</div>

So I have a declaration as below abstract type C end struct A \<:C x::Float64 y::Float64 end function pattern(ant::A, pos::Float64) return pos^2 end struct B \<: C x::Float64 y::Float64 …

---

## [Text to data-structure declaritively](https://discourse.julialang.org/t/text-to-data-structure-declaritively/59066)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 0\
**Last updated:** [April 12, 2021, 2:16am UTC](https://discourse.julialang.org/t/text-to-data-structure-declaritively/59066 "2021-04-12T02:16:10Z")

</div>

To convert: X = "John.Smith,20" to a named tuple Tup = (First\_Name = "John", Last\_Name = "Smith", Age = 20 ) I usually do something like: Tup = (First\_Name, Last\_Name, Age) = @pipe split("John.Smith,20", '.' ) |\>…

---

## [What does \`fastabs(z::Complex)\` do?](https://discourse.julialang.org/t/what-does-fastabs-z-complex-do/59064)

<div class="topic-metadata">

**Author:** [@huangc](https://discourse.julialang.org/u/huangc)\
**Replies:** 3\
**Last updated:** [April 12, 2021, 2:14am UTC](https://discourse.julialang.org/t/what-does-fastabs-z-complex-do/59064 "2021-04-12T02:14:10Z")

</div>

There is a fastabs(z::Complex) defined in both SpecialFunctions.jl and Base.Math. From its name, I would guess it computes the same thing as abs(z::Complex) but faster. However julia\> z = 3 + 4im 3 + 4im julia\> abs(z)…

---

## [Better way to clean and normalize a DataFrame of strings?](https://discourse.julialang.org/t/better-way-to-clean-and-normalize-a-dataframe-of-strings/59043)

<div class="topic-metadata">

**Author:** [@ben-schulz](https://discourse.julialang.org/u/ben-schulz)\
**Replies:** 4\
**Last updated:** [April 12, 2021, 1:19am UTC](https://discourse.julialang.org/t/better-way-to-clean-and-normalize-a-dataframe-of-strings/59043 "2021-04-12T01:19:32Z")

</div>

hi there, i have a corpus of messy CSVs with matching columns but irregular formatting, so that a column ( say A ) often has some values with an unwanted metadata prefix, and other values without, like so: Row │ A …

---

## [PyPlot Backend issue](https://discourse.julialang.org/t/pyplot-backend-issue/59060)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 0\
**Last updated:** [April 11, 2021, 11:28pm UTC](https://discourse.julialang.org/t/pyplot-backend-issue/59060 "2021-04-11T23:28:58Z")

</div>

For this issue: julia\> using Plots julia\> pyplot() ┌ Warning: PyPlot is using tkagg backend, which is known to cause crashes on MacOS (#410); use the MPLBACKEND environment variable to request a different backend. └ @ …

---

## [How to create a pretty Julia post on Blogger.com](https://discourse.julialang.org/t/how-to-create-a-pretty-julia-post-on-blogger-com/56691)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 17\
**Last updated:** [April 11, 2021, 11:21pm UTC](https://discourse.julialang.org/t/how-to-create-a-pretty-julia-post-on-blogger-com/56691 "2021-04-11T23:21:12Z")

</div>

I want to create a few posts about my success stories w/ Julia on www.blogger.com. I’m having some trouble with: writing math I can get display mode to work, but inline mode does not Julia code boxes Has anyone here…

---

## [ARFIMA estimation in Julia](https://discourse.julialang.org/t/arfima-estimation-in-julia/59041)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 4\
**Last updated:** [April 11, 2021, 9:52pm UTC](https://discourse.julialang.org/t/arfima-estimation-in-julia/59041 "2021-04-11T21:52:16Z")

</div>

Is there a package able to estimate an ARFIMA model in Julia (or just ARIMA for a start)? I believe that the ARFIMA.jl package is just for simulating stochastic time-series that follow an ARFIMA process. Thank you in ad…

---

## [How do I read the names of functions and their signature from a imported .jl file?](https://discourse.julialang.org/t/how-do-i-read-the-names-of-functions-and-their-signature-from-a-imported-jl-file/59056)

<div class="topic-metadata">

**Author:** [@heisenberg1](https://discourse.julialang.org/u/heisenberg1)\
**Replies:** 1\
**Last updated:** [April 11, 2021, 8:04pm UTC](https://discourse.julialang.org/t/how-do-i-read-the-names-of-functions-and-their-signature-from-a-imported-jl-file/59056 "2021-04-11T20:04:27Z")

</div>

Basically I import a .jl file into a .jl file, read the function names and their signature of the imported .jl file, and give them as output.

---

## [Avoid ambiguous function type allocation without losing abstract type](https://discourse.julialang.org/t/avoid-ambiguous-function-type-allocation-without-losing-abstract-type/59040)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 5\
**Last updated:** [April 11, 2021, 7:08pm UTC](https://discourse.julialang.org/t/avoid-ambiguous-function-type-allocation-without-losing-abstract-type/59040 "2021-04-11T19:08:00Z")

</div>

I’m using a multiple dispatch on an abstract type (AbstractBody) to switch between two behaviours. I need to store a performance critical function in one case, but don’t need to store anything in the other case. I’ve im…

---

## [Scale z plot3d](https://discourse.julialang.org/t/scale-z-plot3d/58953)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 2\
**Last updated:** [April 11, 2021, 4:35pm UTC](https://discourse.julialang.org/t/scale-z-plot3d/58953 "2021-04-11T16:35:35Z")

</div>

Dear all, How can I reduze the zscale in my plot? using Plots plotly() f(x,y) = y \< x ? cos(8x) + sin(8y) : NaN x = LinRange(-2, 2, 100); y = LinRange(-2, 2, 100); surface(x, y, f,aspect\_ratio = .3) See the strange f…

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

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