# Latest

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

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

**Page:** 931

---

## [How to correct the contents of GroupedDataFrame to update it?](https://discourse.julialang.org/t/how-to-correct-the-contents-of-groupeddataframe-to-update-it/86928)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 7\
**Last updated:** [September 8, 2022, 2:24pm UTC](https://discourse.julialang.org/t/how-to-correct-the-contents-of-groupeddataframe-to-update-it/86928 "2022-09-08T14:24:27Z")

</div>

how to correct the contents of groupeddataframe to update it? group = \[:A, :A, :B, :B\] X = 1:4 Y = 5:8 df = DataFrame(; group, X, Y) julia\> df = DataFrame(; group, X, Y) 4×3 DataFrame Row │ group X Y │ Symb…

---

## [Cloud based code development](https://discourse.julialang.org/t/cloud-based-code-development/86217)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 1:47pm UTC](https://discourse.julialang.org/t/cloud-based-code-development/86217 "2022-09-08T13:47:38Z")

</div>

We are looking for a part-time or full-time employee to support the development of cloud-based computational frameworks and visualization dashboards performing: Network optimization, including mixed integer-linear prog…

---

## [How to connect two dictionary together?](https://discourse.julialang.org/t/how-to-connect-two-dictionary-together/86938)

<div class="topic-metadata">

**Author:** [@frank20000](https://discourse.julialang.org/u/frank20000)\
**Replies:** 2\
**Last updated:** [September 8, 2022, 1:29pm UTC](https://discourse.julialang.org/t/how-to-connect-two-dictionary-together/86938 "2022-09-08T13:29:30Z")

</div>

Hi there, Do you know of any easy way of connecting two or more tuples together? A simple example that explains one of the thing I need is this situation: I have a dictionary that maps a set of pairs to a value (1,2) …

---

## [Pluto noobie questions](https://discourse.julialang.org/t/pluto-noobie-questions/86887)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 9\
**Last updated:** [September 8, 2022, 1:21pm UTC](https://discourse.julialang.org/t/pluto-noobie-questions/86887 "2022-09-08T13:21:14Z")

</div>

How does one hide cell output of the cell in Pluto? Putting ; at the end of the line does not seem to work. Also, when I have created a notebook for the first time and a ran a cell with using, Pluto initiated system-wid…

---

## [Functor preprocessing pattern](https://discourse.julialang.org/t/functor-preprocessing-pattern/86200)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 7\
**Last updated:** [September 8, 2022, 1:18pm UTC](https://discourse.julialang.org/t/functor-preprocessing-pattern/86200 "2022-09-08T13:18:26Z")

</div>

I’m trying to adapt the preprocessing pattern showcased by https://github.com/jeremiedb here https://www.youtube.com/watch?v=dzChtn9WWT8 He basically creates a structure to store transformation functions and a functor…

---

## [A recent "pre-quantum, pre-spacetime theory" an 8D octonic theory more fundamental than QM or QFT/the standard model (and explaining it) predicting 6 particles, e.g. dark photon](https://discourse.julialang.org/t/a-recent-pre-quantum-pre-spacetime-theory-an-8d-octonic-theory-more-fundamental-than-qm-or-qft-the-standard-model-and-explaining-it-predicting-6-particles-e-g-dark-photon/86797)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 8\
**Last updated:** [September 8, 2022, 10:09am UTC](https://discourse.julialang.org/t/a-recent-pre-quantum-pre-spacetime-theory-an-8d-octonic-theory-more-fundamental-than-qm-or-qft-the-standard-model-and-explaining-it-predicting-6-particles-e-g-dark-photon/86797 "2022-09-08T10:09:17Z")

</div>

@ExpandingMan You may not have heard Prof Singh, and his new theory: According to it the fine-structure constant is (and the other (mass) constants tend to also include √(3/8)): julia\> @interval 1/(9/1024 \* exp((1/3 -…

---

## [How to make the slider larger](https://discourse.julialang.org/t/how-to-make-the-slider-larger/86895)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 7\
**Last updated:** [September 8, 2022, 12:28pm UTC](https://discourse.julialang.org/t/how-to-make-the-slider-larger/86895 "2022-09-08T12:28:10Z")

</div>

How to make the size of the slider bar larger, so that it is easier to fine tune the accessed values? Right now I have a problem, that, when I move the slider, I actually skip some of the available values.

---

## [How to measure a length of an edge?](https://discourse.julialang.org/t/how-to-measure-a-length-of-an-edge/86833)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 3\
**Last updated:** [September 7, 2022, 6:16am UTC](https://discourse.julialang.org/t/how-to-measure-a-length-of-an-edge/86833 "2022-09-07T06:16:43Z")

</div>

When calling edges(g) in Graph.jl , it gives a list. Is there any function that returns the length of and edge in a weighted graph? I know it might seems strange to ask this as we already know the weight (length) of eac…

---

## [Frédéric Goualard found an inexactness in our rand()](https://discourse.julialang.org/t/frederic-goualard-found-an-inexactness-in-our-rand/85274)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 19\
**Last updated:** [September 8, 2022, 11:59am UTC](https://discourse.julialang.org/t/frederic-goualard-found-an-inexactness-in-our-rand/85274 "2022-09-08T11:59:09Z")

</div>

The paper, with analysis and a recommended approach (Julia is not alone) Drawing random floating-point numbers from an interval

---

## [Finalize for modules?](https://discourse.julialang.org/t/finalize-for-modules/86934)

<div class="topic-metadata">

**Author:** [@sfuerst](https://discourse.julialang.org/u/sfuerst)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 11:33am UTC](https://discourse.julialang.org/t/finalize-for-modules/86934 "2022-09-08T11:33:22Z")

</div>

I’m working on a package that is using MPI in the background, and are calling MPI.Init() in the modules init function. But I have no idea how I can detect that the module is unloaded (or the Julia session is finished) to…

---

## [GLMakie \`recordframe!\` not working with \`MeshViz\`](https://discourse.julialang.org/t/glmakie-recordframe-not-working-with-meshviz/86921)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 6\
**Last updated:** [September 8, 2022, 11:15am UTC](https://discourse.julialang.org/t/glmakie-recordframe-not-working-with-meshviz/86921 "2022-09-08T11:15:46Z")

</div>

I implemented a cloth-simulation algorithm in Julia and visualized the results using MeshViz and GLMakie. The GUI worked fluently and here are some screenshots: The problem is that I was unable to record a movie. …

---

## [Construct Big Integers with odd digits only](https://discourse.julialang.org/t/construct-big-integers-with-odd-digits-only/86927)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 5\
**Last updated:** [September 8, 2022, 10:29am UTC](https://discourse.julialang.org/t/construct-big-integers-with-odd-digits-only/86927 "2022-09-08T10:29:08Z")

</div>

My question is essentially: what is the best way to solve this problem with Julia? I don’t think I have the “right words” or “concepts” to even research a solution. The Problem: Say I wanted to construct positive inte…

---

## [Getting first element of a possibly empty Eduction (Transducers.jl)](https://discourse.julialang.org/t/getting-first-element-of-a-possibly-empty-eduction-transducers-jl/86932)

<div class="topic-metadata">

**Author:** [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Replies:** 0\
**Last updated:** [September 8, 2022, 9:54am UTC](https://discourse.julialang.org/t/getting-first-element-of-a-possibly-empty-eduction-transducers-jl/86932 "2022-09-08T09:54:17Z")

</div>

Consider the following eduction julia\> using Transducers julia\> ed = (rand() for i in 1:10) |\> Filter(\<(0.1)) Base.Generator{UnitRange{Int64}, var"#1#2"} |\> Filter(Fix2) Getting the first element is tricky becau…

---

## [Namedtuple destructuring in macro fails roughly due to macro hygiene (since gensym goes eagerly)](https://discourse.julialang.org/t/namedtuple-destructuring-in-macro-fails-roughly-due-to-macro-hygiene-since-gensym-goes-eagerly/86172)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 2\
**Last updated:** [September 8, 2022, 9:14am UTC](https://discourse.julialang.org/t/namedtuple-destructuring-in-macro-fails-roughly-due-to-macro-hygiene-since-gensym-goes-eagerly/86172 "2022-09-08T09:14:35Z")

</div>

Here is the situation f(x) = (; a=2x, b=x\*x) macro ma(x) quote f($x) end end macro mb(x) quote nt = f($x) (; nt.a, nt.b) end end macro mc(x) quote (; a,b) = f($x) …

---

## [How to define a type that may be a vector of itself?](https://discourse.julialang.org/t/how-to-define-a-type-that-may-be-a-vector-of-itself/86914)

<div class="topic-metadata">

**Author:** [@SodAlmighty](https://discourse.julialang.org/u/SodAlmighty)\
**Replies:** 12\
**Last updated:** [September 8, 2022, 8:57am UTC](https://discourse.julialang.org/t/how-to-define-a-type-that-may-be-a-vector-of-itself/86914 "2022-09-08T08:57:53Z")

</div>

How to define a type that may be a vector of itself? const ListExpr = Vector{Union{ListExpr, Number, String}} ERROR: UndefVarError: ListExpr not defined

---

## [Julia User Group Munich: Share&Code on Agents.jl with George Datseris](https://discourse.julialang.org/t/julia-user-group-munich-share-code-on-agents-jl-with-george-datseris/86241)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 8:46am UTC](https://discourse.julialang.org/t/julia-user-group-munich-share-code-on-agents-jl-with-george-datseris/86241 "2022-09-08T08:46:50Z")

</div>

Join us :spiral\_calendar: Monday 05. September 2022 :clock630: 18:30 CEST organized via meetup Agent-based modeling (ABM) in Julia with Agents.jl ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ I am glad to welcome George Datseris @D…

---

## [Nonlinear fiting with posibility to fix some of the parameters](https://discourse.julialang.org/t/nonlinear-fiting-with-posibility-to-fix-some-of-the-parameters/86874)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 4\
**Last updated:** [September 8, 2022, 8:22am UTC](https://discourse.julialang.org/t/nonlinear-fiting-with-posibility-to-fix-some-of-the-parameters/86874 "2022-09-08T08:22:19Z")

</div>

Dear all, I am trying to figure out how to fit nonlinear function to my data using Optim package. Here is example # data x and y using Optim model(x,p) = p\[1\] .+ p\[2\] .\* x .+ p\[3\] .\*x.^2 loss\_function(p) = sum((mo…

---

## [Voicebot / NLP packages](https://discourse.julialang.org/t/voicebot-nlp-packages/86841)

<div class="topic-metadata">

**Author:** [@davide445](https://discourse.julialang.org/u/davide445)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 8:11am UTC](https://discourse.julialang.org/t/voicebot-nlp-packages/86841 "2022-09-08T08:11:18Z")

</div>

For a specific project where is needed a system to ask a series of questions and evaluate if the human tell the needed informations, was looking around to understand if in the Julia ecosystem there is anything relevant. …

---

## [Installed Julia through snap. How to install newer versions of Julia?](https://discourse.julialang.org/t/installed-julia-through-snap-how-to-install-newer-versions-of-julia/76290)

<div class="topic-metadata">

**Author:** [@munizalex](https://discourse.julialang.org/u/munizalex)\
**Replies:** 7\
**Last updated:** [September 8, 2022, 7:44am UTC](https://discourse.julialang.org/t/installed-julia-through-snap-how-to-install-newer-versions-of-julia/76290 "2022-09-08T07:44:49Z")

</div>

The snap version of Julia, 1.0.4 is enough, or do I need to install a newer version of Julia?

---

## [SCATTERPLOT new color to each marker](https://discourse.julialang.org/t/scatterplot-new-color-to-each-marker/86905)

<div class="topic-metadata">

**Author:** [@naturalmechanics](https://discourse.julialang.org/u/naturalmechanics)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 6:59am UTC](https://discourse.julialang.org/t/scatterplot-new-color-to-each-marker/86905 "2022-09-08T06:59:33Z")

</div>

Hi I want to make a scatterplot, where each marker has an unique color. Consider this code: xVals = \[\] yVals = \[\] cellVals = \[\] cols = \[\] my\_function() # this function will fill up xVals, yVals, and cellVals mx = m…

---

## [Finite difference stencils in 2D with mixed orders](https://discourse.julialang.org/t/finite-difference-stencils-in-2d-with-mixed-orders/86868)

<div class="topic-metadata">

**Author:** [@damuir](https://discourse.julialang.org/u/damuir)\
**Replies:** 5\
**Last updated:** [September 8, 2022, 5:57am UTC](https://discourse.julialang.org/t/finite-difference-stencils-in-2d-with-mixed-orders/86868 "2022-09-08T05:57:02Z")

</div>

Apologies if this topic has been covered or if there is a good guide for this (I have been looking for a while, including at source code for more advanced packages but I can’t wrap my head around if/how they do this sort…

---

## [Return from Websockets.open do block](https://discourse.julialang.org/t/return-from-websockets-open-do-block/86879)

<div class="topic-metadata">

**Author:** [@Tharsalys](https://discourse.julialang.org/u/Tharsalys)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 5:35am UTC](https://discourse.julialang.org/t/return-from-websockets-open-do-block/86879 "2022-09-08T05:35:12Z")

</div>

I have a scenario in which I’m intentionally sending a wrong message to a websocket and it returns me the right input; I need to parse and store the right input and use it across the application. But I can’t return it. H…

---

## [Will Distributed.jl support Infiniband?](https://discourse.julialang.org/t/will-distributed-jl-support-infiniband/86899)

<div class="topic-metadata">

**Author:** [@deltaeecs](https://discourse.julialang.org/u/deltaeecs)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 2:08am UTC](https://discourse.julialang.org/t/will-distributed-jl-support-infiniband/86899 "2022-09-08T02:08:46Z")

</div>

I use the iterative solvers on a slurm cluster using DistributedArrays and I have to communicate data between workers every iteration, which is really slow because no InfiniBand support (10~200times slower than in-node d…

---

## [On the format of the Palmer Penguins dataset](https://discourse.julialang.org/t/on-the-format-of-the-palmer-penguins-dataset/86915)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 11:15pm UTC](https://discourse.julialang.org/t/on-the-format-of-the-palmer-penguins-dataset/86915 "2022-09-07T23:15:02Z")

</div>

Hello all! Sorry for this basic question. I have been trying to understand whether PalmerPenguins dataset comes as a long or wide format. I would appreciate if you could check the following: As each row corresponds uni…

---

## [\[ANN\] PrettyTables.jl v2.0.0](https://discourse.julialang.org/t/ann-prettytables-jl-v2-0-0/86917)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 10:39pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-v2-0-0/86917 "2022-09-07T22:39:52Z")

</div>

Hi! After almost 8 months of work, I could release PrettyTables.jl v2.0.0! There are a lot of new features and many optimizations, see the CHANGELOG.md for more details. Unfortunately there are some breaking changes. T…

---

## [Storing an MTK model in JLD2 fails on load](https://discourse.julialang.org/t/storing-an-mtk-model-in-jld2-fails-on-load/86916)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 10:21pm UTC](https://discourse.julialang.org/t/storing-an-mtk-model-in-jld2-fails-on-load/86916 "2022-09-07T22:21:48Z")

</div>

I have an MTK model solution that I want to store temporarily. For that I can easily use Serialization.jl and it works nicely. However, when I want to store the solution object using JLD2 it saves the object, but on loa…

---

## [LsqFit: strange DomainError](https://discourse.julialang.org/t/lsqfit-strange-domainerror/86907)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 5\
**Last updated:** [September 7, 2022, 9:49pm UTC](https://discourse.julialang.org/t/lsqfit-strange-domainerror/86907 "2022-09-07T21:49:13Z")

</div>

I am using LsqFit to fit the data for some correlation function. I am not going to go into details, but it is convenient for me to actually fit the logarithm of the correlation function. using LsqFit g(x, N, ξ, α, β) = …

---

## [Corner plots with AoG](https://discourse.julialang.org/t/corner-plots-with-aog/86849)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 9:11pm UTC](https://discourse.julialang.org/t/corner-plots-with-aog/86849 "2022-09-07T21:11:38Z")

</div>

Hello, I am looking for any example/template of how to make a corner plot with AoG preferentially (otherwise with plain Makie). Thank you very much.

---

## [Difference between T and {T} in where clause](https://discourse.julialang.org/t/difference-between-t-and-t-in-where-clause/86909)

<div class="topic-metadata">

**Author:** [@SodAlmighty](https://discourse.julialang.org/u/SodAlmighty)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 8:08pm UTC](https://discourse.julialang.org/t/difference-between-t-and-t-in-where-clause/86909 "2022-09-07T20:08:04Z")

</div>

Can someone please explain the difference between where T and where {T}? I’ve been reading the documentation, but I’m kinda hazy on the specifics of this bit.

---

## [How to create a patch/shape with a color gradient in a simple 2d plot?](https://discourse.julialang.org/t/how-to-create-a-patch-shape-with-a-color-gradient-in-a-simple-2d-plot/62607)

<div class="topic-metadata">

**Author:** [@philihp](https://discourse.julialang.org/u/philihp)\
**Replies:** 12\
**Last updated:** [September 7, 2022, 6:52pm UTC](https://discourse.julialang.org/t/how-to-create-a-patch-shape-with-a-color-gradient-in-a-simple-2d-plot/62607 "2022-09-07T18:52:23Z")

</div>

Hi, I am trying to add a rectangle with a color gradient to a plot to indicate a special region that should fade out, i.e. have a color gradient to white. So far I have tried hpatch() and vpatch(), which give me the rect…

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

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