# Latest

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

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

**Page:** 603

---

## [How to use pictures in plot to show area preservation using julia?](https://discourse.julialang.org/t/how-to-use-pictures-in-plot-to-show-area-preservation-using-julia/103570)

<div class="topic-metadata">

**Author:** [@khaledharizb](https://discourse.julialang.org/u/khaledharizb)\
**Replies:** 8\
**Last updated:** [September 8, 2023, 9:42am UTC](https://discourse.julialang.org/t/how-to-use-pictures-in-plot-to-show-area-preservation-using-julia/103570 "2023-09-08T09:42:24Z")

</div>

I have a data of symplectic Euler method using Plots h = 0.05; N = 200; const g = 9; const ℓ = 1.46; θ = zeros(N+1) v = zeros(N+1) θ\[1\] = 1.0; # this is θ₀ v\[1\] = 0.5; # this is v₀ for k in 1:N θ\[k+1\] = θ\[k\] + h…

---

## [\`mode\` and \`modes\` fail in Distributions.jl](https://discourse.julialang.org/t/mode-and-modes-fail-in-distributions-jl/103634)

<div class="topic-metadata">

**Author:** [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 9:41am UTC](https://discourse.julialang.org/t/mode-and-modes-fail-in-distributions-jl/103634 "2023-09-08T09:41:29Z")

</div>

The Distributions.jl package does not calculate correctly the theoretical mode and/or modes under models like Binomial, Poisson and NegativeBinomial here some examples: using Distributions ## Example 1 B = Binomial(3, …

---

## [Packages aren't found on worker processors](https://discourse.julialang.org/t/packages-arent-found-on-worker-processors/46820)

<div class="topic-metadata">

**Author:** [@smickus](https://discourse.julialang.org/u/smickus)\
**Replies:** 9\
**Last updated:** [September 8, 2023, 9:18am UTC](https://discourse.julialang.org/t/packages-arent-found-on-worker-processors/46820 "2023-09-08T09:18:31Z")

</div>

When I upgraded to Julia v1.5.1-1 using JuliaPro , the distributed processors no longer can find any of the packages that have been imported. The following is the error message that I receive. ERROR: LoadError: On work…

---

## [Call for Participation: PackagingCon 2023, 26-28 October, Berlin & Virtual](https://discourse.julialang.org/t/call-for-participation-packagingcon-2023-26-28-october-berlin-virtual/102093)

<div class="topic-metadata">

**Author:** [@tnabtaf](https://discourse.julialang.org/u/tnabtaf)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 8:05am UTC](https://discourse.julialang.org/t/call-for-participation-packagingcon-2023-26-28-october-berlin-virtual/102093 "2023-09-08T08:05:20Z")

</div>

PackagingCon 2023 26-28th October Berlin and online Submission deadline: 31st July Early registration ends: 8th September PackagingCon 2023 will bring together different software packaging ecosystems to share best…

---

## [Reading a csv file on a Google drive without mapping](https://discourse.julialang.org/t/reading-a-csv-file-on-a-google-drive-without-mapping/103423)

<div class="topic-metadata">

**Author:** [@dgagnon](https://discourse.julialang.org/u/dgagnon)\
**Replies:** 22\
**Last updated:** [September 8, 2023, 4:02am UTC](https://discourse.julialang.org/t/reading-a-csv-file-on-a-google-drive-without-mapping/103423 "2023-09-08T04:02:31Z")

</div>

Hello I am trying to read a file on Google drive without mapping it to a drive on Windows. The reasons I don’t want to map the drive are: 1- users may map to a different letter (I’m on Windows) and I don’t want to deal…

---

## [Is there a simple way to swap the x and y axes in \`Plots.jl\` after a figure is plotted?](https://discourse.julialang.org/t/is-there-a-simple-way-to-swap-the-x-and-y-axes-in-plots-jl-after-a-figure-is-plotted/103599)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 4\
**Last updated:** [September 8, 2023, 7:43am UTC](https://discourse.julialang.org/t/is-there-a-simple-way-to-swap-the-x-and-y-axes-in-plots-jl-after-a-figure-is-plotted/103599 "2023-09-08T07:43:11Z")

</div>

Note this is not flip, which flips the x and y axes by themselves. I want to exchange the y and x axes, like a transposition of the figure.

---

## [Using ChatGPT to get code for training a neural net](https://discourse.julialang.org/t/using-chatgpt-to-get-code-for-training-a-neural-net/103648)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 0\
**Last updated:** [September 8, 2023, 7:24am UTC](https://discourse.julialang.org/t/using-chatgpt-to-get-code-for-training-a-neural-net/103648 "2023-09-08T07:24:01Z")

</div>

I recently discovered an amazing tool, chatgpt :wink: I have found that it’s pretty useful for preparing class notes, and translating them to other languages. I also was aware of discussion here about how well it does f…

---

## [Software Engineer HFT Malta / London](https://discourse.julialang.org/t/software-engineer-hft-malta-london/103538)

<div class="topic-metadata">

**Author:** [@Christian\_Rorvik](https://discourse.julialang.org/u/Christian_Rorvik)\
**Replies:** 0\
**Last updated:** [September 5, 2023, 10:12am UTC](https://discourse.julialang.org/t/software-engineer-hft-malta-london/103538 "2023-09-05T10:12:11Z")

</div>

At Graystone Trading we’re building what we believe is the next generation of high frequency and systematic trading platforms, with Julia as its backbone. Over the last 3 years we bootstrapped the company with a small te…

---

## [Automatic differentiation in Julia for gradient computation](https://discourse.julialang.org/t/automatic-differentiation-in-julia-for-gradient-computation/103643)

<div class="topic-metadata">

**Author:** [@Harsh\_Choudhary](https://discourse.julialang.org/u/Harsh_Choudhary)\
**Replies:** 1\
**Last updated:** [September 8, 2023, 4:53am UTC](https://discourse.julialang.org/t/automatic-differentiation-in-julia-for-gradient-computation/103643 "2023-09-08T04:53:55Z")

</div>

Hi, I am new to Julia and I am trying to get my head around with the Automatic Differentiation in Julia. I have a decent experience with Pytorch Autograd libraries and I wanted to ask if there is an Analog of loss.backwa…

---

## [Predicting missing physics term for discrete time dynamical system](https://discourse.julialang.org/t/predicting-missing-physics-term-for-discrete-time-dynamical-system/103595)

<div class="topic-metadata">

**Author:** [@kunal](https://discourse.julialang.org/u/kunal)\
**Replies:** 3\
**Last updated:** [September 8, 2023, 4:18am UTC](https://discourse.julialang.org/t/predicting-missing-physics-term-for-discrete-time-dynamical-system/103595 "2023-09-08T04:18:24Z")

</div>

My use case is very much similar to Using DiffEqFlux.jl for system identification with partially known system dynamics . However my objective is to utilize this in case of a discrete time space system. I was following t…

---

## [Submit your Julia talk to PyData Global!](https://discourse.julialang.org/t/submit-your-julia-talk-to-pydata-global/103639)

<div class="topic-metadata">

**Author:** [@Steven\_Kell](https://discourse.julialang.org/u/Steven_Kell)\
**Replies:** 0\
**Last updated:** [September 8, 2023, 2:52am UTC](https://discourse.julialang.org/t/submit-your-julia-talk-to-pydata-global/103639 "2023-09-08T02:52:48Z")

</div>

PyData Global 2023 December 6 - 8, 2023 A VIRTUAL CONFERENCE, ANYWHERE ON EARTH PyData Global 2023 is a 3-day virtual event for the international community of data scientists, data engineers, and developers of data an…

---

## [\[ANN\] PreferenceTools.jl - interactive preference setting](https://discourse.julialang.org/t/ann-preferencetools-jl-interactive-preference-setting/96076)

<div class="topic-metadata">

**Author:** [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Replies:** 9\
**Last updated:** [September 8, 2023, 12:14am UTC](https://discourse.julialang.org/t/ann-preferencetools-jl-interactive-preference-setting/96076 "2023-09-08T00:14:14Z")

</div>

PreferenceTools.jl I made a little package to make it easier to set and get preferences (in the sense of Preferences.jl) interactively. It hooks into the Pkg REPL so you can do this: pkg\> preference add Plots default\_…

---

## [MLStyle's vs MacroTools' @capture](https://discourse.julialang.org/t/mlstyles-vs-macrotools-capture/102968)

<div class="topic-metadata">

**Author:** [@deaminase](https://discourse.julialang.org/u/deaminase)\
**Replies:** 4\
**Last updated:** [September 8, 2023, 12:09am UTC](https://discourse.julialang.org/t/mlstyles-vs-macrotools-capture/102968 "2023-09-08T00:09:07Z")

</div>

Hey folks. I’ve been trying to figure out how to use MLStyle.Modules.AST.@capture for doing the same thing as MacroTools.@capture(ex, fn\_(args\_\_; kws\_\_) | fn\_(args\_\_)) However, I can’t seem to come up with the syntax th…

---

## [When does concrete type inference not matter for performance?](https://discourse.julialang.org/t/when-does-concrete-type-inference-not-matter-for-performance/103603)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 6\
**Last updated:** [September 8, 2023, 12:05am UTC](https://discourse.julialang.org/t/when-does-concrete-type-inference-not-matter-for-performance/103603 "2023-09-08T00:05:44Z")

</div>

The docstring for code\_warntype states that Not all non-leaf types are particularly problematic for performance, and the performance characteristics of a particular type is an implementation detail of the compiler. cod…

---

## [Vector of functions as kwarg](https://discourse.julialang.org/t/vector-of-functions-as-kwarg/103629)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 5\
**Last updated:** [September 7, 2023, 9:39pm UTC](https://discourse.julialang.org/t/vector-of-functions-as-kwarg/103629 "2023-09-07T21:39:38Z")

</div>

Good evening, what is wrong with the following? function foo(; b::Vector{Function} = \[(x)-\>x\*x\]) print(b\[1\](2)) end foo() ERROR: MethodError: no method matching var"#foo#7"(::Vector{var"#8#10"}, ::typeof(foo))

---

## [Data First Pipeline](https://discourse.julialang.org/t/data-first-pipeline/103582)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 5\
**Last updated:** [September 7, 2023, 9:10pm UTC](https://discourse.julialang.org/t/data-first-pipeline/103582 "2023-09-07T21:10:22Z")

</div>

As someone, who comes mainly from functional statically typed languages, I stumbled over this article, pointing out some potentially unique approach, and wondered how it would work in Julia. I have not had many experien…

---

## [US-RSE 2023 Conference: Polyglot Software Development](https://discourse.julialang.org/t/us-rse-2023-conference-polyglot-software-development/103630)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [September 7, 2023, 8:51pm UTC](https://discourse.julialang.org/t/us-rse-2023-conference-polyglot-software-development/103630 "2023-09-07T20:51:37Z")

</div>

A lot of what I do around the Julia community involves incorporating multiple languages. Whether that involves packages for language interop like JavaCall.jl or just making wrappers for libraries in other languages such …

---

## [Getting parameters of, and aliases for, any arbitrary type](https://discourse.julialang.org/t/getting-parameters-of-and-aliases-for-any-arbitrary-type/103616)

<div class="topic-metadata">

**Author:** [@chskcau](https://discourse.julialang.org/u/chskcau)\
**Replies:** 5\
**Last updated:** [September 7, 2023, 8:40pm UTC](https://discourse.julialang.org/t/getting-parameters-of-and-aliases-for-any-arbitrary-type/103616 "2023-09-07T20:40:28Z")

</div>

Hello, and as always, thanks in advance for taking the time to read this post and help me out. I’m back to toying around with (and hopefully learning) Julia. In order to get a better feel for the type system and the po…

---

## [Slow makie animations?](https://discourse.julialang.org/t/slow-makie-animations/103626)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 9\
**Last updated:** [September 7, 2023, 7:27pm UTC](https://discourse.julialang.org/t/slow-makie-animations/103626 "2023-09-07T19:27:00Z")

</div>

Hi, I’m trying to animate some makie plots and performance seems to be a bit lacking. Animating this plot takes about 47 seconds on my machine 47.157643 seconds (30.39 M allocations: 3.480 GiB, 1.38% gc time, 3.92% co…

---

## [Understanding Julia’s role in businesses](https://discourse.julialang.org/t/understanding-julia-s-role-in-businesses/103609)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 9\
**Last updated:** [September 7, 2023, 7:04pm UTC](https://discourse.julialang.org/t/understanding-julia-s-role-in-businesses/103609 "2023-09-07T19:04:21Z")

</div>

The question was to be divided into different topics, so here comes. Julia is an expressive language, that is, it is a good tool able to do things, and it is also efficient in computing power usage. All in all, Julia …

---

## [Does Revise work with plain modules?](https://discourse.julialang.org/t/does-revise-work-with-plain-modules/103584)

<div class="topic-metadata">

**Author:** [@Leibniz](https://discourse.julialang.org/u/Leibniz)\
**Replies:** 6\
**Last updated:** [September 7, 2023, 6:22pm UTC](https://discourse.julialang.org/t/does-revise-work-with-plain-modules/103584 "2023-09-07T18:22:22Z")

</div>

When making a change to a module, I thought I simply needed to save the file and then re-run the importing script (which loads Revise at the very top). But the changes are only ever respected if I not only save the modul…

---

## [Keyword arguments without a keyword?](https://discourse.julialang.org/t/keyword-arguments-without-a-keyword/31863)

<div class="topic-metadata">

**Author:** [@dstarerstor](https://discourse.julialang.org/u/dstarerstor)\
**Replies:** 23\
**Last updated:** [September 7, 2023, 5:50pm UTC](https://discourse.julialang.org/t/keyword-arguments-without-a-keyword/31863 "2023-09-07T17:50:59Z")

</div>

I feel like I have seen this proposal before, but I can’t find it now and I don’t remember the resolution, so sorry if this is repetitive. I think it would be very nice if single word arguments passed to a function afte…

---

## [Make Pluto notebook on Binder run again](https://discourse.julialang.org/t/make-pluto-notebook-on-binder-run-again/103611)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 2\
**Last updated:** [September 7, 2023, 5:04pm UTC](https://discourse.julialang.org/t/make-pluto-notebook-on-binder-run-again/103611 "2023-09-07T17:04:22Z")

</div>

I’d like to update the instructions on GitHub - mschauer/nonparbayes: Tour through non-parametric Bayesian regression in Fourier domain using Julia https://mschauer.github.io/nonparbayes/ so that thinks work again. https…

---

## [\[ANN\] NoteMate.jl: The Perfect Companion for Working with Your Notes](https://discourse.julialang.org/t/ann-notemate-jl-the-perfect-companion-for-working-with-your-notes/103617)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 0\
**Last updated:** [September 7, 2023, 4:15pm UTC](https://discourse.julialang.org/t/ann-notemate-jl-the-perfect-companion-for-working-with-your-notes/103617 "2023-09-07T16:15:28Z")

</div>

Hi all, :wave: I recently just released a new package called NoteMate.jl with the tagline The perfect companion for working with your notes :books: It grew out of a personal collection of scripts I had been developi…

---

## [Alternative permutation/reducing for loops](https://discourse.julialang.org/t/alternative-permutation-reducing-for-loops/103554)

<div class="topic-metadata">

**Author:** [@Leticia-maria](https://discourse.julialang.org/u/Leticia-maria)\
**Replies:** 7\
**Last updated:** [September 7, 2023, 3:50pm UTC](https://discourse.julialang.org/t/alternative-permutation-reducing-for-loops/103554 "2023-09-07T15:50:07Z")

</div>

Hello, I am writing this function where I need to combine all terms in this structure (called Basis): struct GaussianBasisSet \<: AbstractBasisSet R α::Matrix{Float64} d::Matrix{Float64} ℓ::Int m::Int…

---

## [Getting Reproducible Results in Distributed Computing with Randomness](https://discourse.julialang.org/t/getting-reproducible-results-in-distributed-computing-with-randomness/103589)

<div class="topic-metadata">

**Author:** [@naonagas](https://discourse.julialang.org/u/naonagas)\
**Replies:** 2\
**Last updated:** [September 7, 2023, 3:43pm UTC](https://discourse.julialang.org/t/getting-reproducible-results-in-distributed-computing-with-randomness/103589 "2023-09-07T15:43:44Z")

</div>

I’m stuck on how to set different random seeds for each worker in distributed computation. using Distributed, SharedArrays # Start Julia with multiple workers addprocs() @everywhere using Random # Function to set a u…

---

## [(on hold): If you have a function called \`main\`, you may need to tweak it](https://discourse.julialang.org/t/on-hold-if-you-have-a-function-called-main-you-may-need-to-tweak-it/103519)

<div class="topic-metadata">

**Author:** [@Keno](https://discourse.julialang.org/u/Keno)\
**Replies:** 42\
**Last updated:** [September 7, 2023, 3:41pm UTC](https://discourse.julialang.org/t/on-hold-if-you-have-a-function-called-main-you-may-need-to-tweak-it/103519 "2023-09-07T15:41:07Z")

</div>

EDIT: The change is on hold for the time being.

---

## [On potentially expanding or pruning the standard library](https://discourse.julialang.org/t/on-potentially-expanding-or-pruning-the-standard-library/103532)

<div class="topic-metadata">

**Author:** [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Replies:** 28\
**Last updated:** [September 7, 2023, 2:25pm UTC](https://discourse.julialang.org/t/on-potentially-expanding-or-pruning-the-standard-library/103532 "2023-09-07T14:25:23Z")

</div>

As I mentioned in one of my comments over in the “What steps” megathread, I find the current standard library a bit odd. In particular, my concerns primarily relate to included/excluded mathematics libraries. I find it…

---

## [Macro design recommendations for \`do-end\` like semantics](https://discourse.julialang.org/t/macro-design-recommendations-for-do-end-like-semantics/103610)

<div class="topic-metadata">

**Author:** [@kdheepak](https://discourse.julialang.org/u/kdheepak)\
**Replies:** 2\
**Last updated:** [September 7, 2023, 2:17pm UTC](https://discourse.julialang.org/t/macro-design-recommendations-for-do-end-like-semantics/103610 "2023-09-07T14:17:16Z")

</div>

In Julia, there’s a function do block syntax like so: foo() do x println(x) end where foo is defined like foo(f::Function) I’m interested in writing a macro that affects a block. i.e. I want user facing code to look…

---

## [Second order derivatives with ChainRules](https://discourse.julialang.org/t/second-order-derivatives-with-chainrules/103606)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 1\
**Last updated:** [September 7, 2023, 1:48pm UTC](https://discourse.julialang.org/t/second-order-derivatives-with-chainrules/103606 "2023-09-07T13:48:54Z")

</div>

How can I get the second order derivarive of a function using ChainRules? Bellow is my approach for the sin function. See the following code: using ChainRules using ChainRulesCore # from the docs, first derivative of …

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

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