# Latest

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

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

**Page:** 664

---

## [Hand-editable serialization: JSON, Fortran's namelist, etc](https://discourse.julialang.org/t/hand-editable-serialization-json-fortrans-namelist-etc/100468)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 14\
**Last updated:** [June 23, 2023, 2:48pm UTC](https://discourse.julialang.org/t/hand-editable-serialization-json-fortrans-namelist-etc/100468 "2023-06-23T14:48:17Z")

</div>

I don’t know the issue well enough to be able to come up with an apt title to this thread. My question is, what are the common, hand-editable data formats to initialize variables? Suppose you want to supply various par…

---

## [SimpleChains method error with custom loss function and train\_unbatched](https://discourse.julialang.org/t/simplechains-method-error-with-custom-loss-function-and-train-unbatched/89828)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 7\
**Last updated:** [June 23, 2023, 2:43pm UTC](https://discourse.julialang.org/t/simplechains-method-error-with-custom-loss-function-and-train-unbatched/89828 "2023-06-23T14:43:24Z")

</div>

Hi SimpleChains.jl people! I am trying to build a contrastive classifier on small dimensional data. I built the custom loss function, following the example in the SimpleChains docs. valgrad! doesn’t error EDIT: but does…

---

## [How to make a named tuple from a dictionary?](https://discourse.julialang.org/t/how-to-make-a-named-tuple-from-a-dictionary/10899)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 40\
**Last updated:** [June 23, 2023, 1:04pm UTC](https://discourse.julialang.org/t/how-to-make-a-named-tuple-from-a-dictionary/10899 "2023-06-23T13:04:37Z")

</div>

Is there a simple way to make a named tuple from a Dict{Symbol, T}?

---

## [Parametrized Helicoid plot becomes a cone + "Arrow=True" is not working for 3-D](https://discourse.julialang.org/t/parametrized-helicoid-plot-becomes-a-cone-arrow-true-is-not-working-for-3-d/100735)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 12:36pm UTC](https://discourse.julialang.org/t/parametrized-helicoid-plot-becomes-a-cone-arrow-true-is-not-working-for-3-d/100735 "2023-06-23T12:36:35Z")

</div>

Hi all, I might misunderstood the parametrized conversion to the code from this site: I follow the parametrized helicoid and it becomes a cone: using Plots; gr() function helicoid(r) n = 100 θ = range(…

---

## [Sampling percentage indicator](https://discourse.julialang.org/t/sampling-percentage-indicator/100728)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 11:57am UTC](https://discourse.julialang.org/t/sampling-percentage-indicator/100728 "2023-06-23T11:57:34Z")

</div>

Why this don’t show percentage with interval of 1. I mean like 1%, 2%… but it shows directly around 50%. Is there any way to change this ? I feel like sitting blind, when running long inferences.

---

## [Understanding the performance and overhead of a vector of SOA vs a vector of AOS for SIMD and the effect of push!](https://discourse.julialang.org/t/understanding-the-performance-and-overhead-of-a-vector-of-soa-vs-a-vector-of-aos-for-simd-and-the-effect-of-push/100560)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 11:13am UTC](https://discourse.julialang.org/t/understanding-the-performance-and-overhead-of-a-vector-of-soa-vs-a-vector-of-aos-for-simd-and-the-effect-of-push/100560 "2023-06-23T11:13:23Z")

</div>

I’ve been working on an interactive simulation tool for Monte Carlo simulations of Ising(-like) Models. Performance is key, and something I’ve been a bit confused by. I made a very simplified version of the program here,…

---

## [Solving the drawbacks of @enum](https://discourse.julialang.org/t/solving-the-drawbacks-of-enum/74506)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 15\
**Last updated:** [June 23, 2023, 8:12am UTC](https://discourse.julialang.org/t/solving-the-drawbacks-of-enum/74506 "2023-06-23T08:12:16Z")

</div>

So, @enum is causing me major problems: I can’t use the names I want to use because it puts the names directly in the namespace. I need to go back and forth between strings and enums easily. Override Base.show for enum…

---

## [FMI and Function as a Service](https://discourse.julialang.org/t/fmi-and-function-as-a-service/100734)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [June 23, 2023, 9:41am UTC](https://discourse.julialang.org/t/fmi-and-function-as-a-service/100734 "2023-06-23T09:41:00Z")

</div>

ABSTRACT Serverless functions provide elastic scaling and a fine-grained billing model, making Function-as-a-Service (FaaS) an attractive programming model. However, for distributed jobs that benefit from largescal…

---

## [Distributed.jl: Group myid() by computing nodes?](https://discourse.julialang.org/t/distributed-jl-group-myid-by-computing-nodes/100619)

<div class="topic-metadata">

**Author:** [@lmtzx9h4qqnt](https://discourse.julialang.org/u/lmtzx9h4qqnt)\
**Replies:** 3\
**Last updated:** [June 23, 2023, 9:30am UTC](https://discourse.julialang.org/t/distributed-jl-group-myid-by-computing-nodes/100619 "2023-06-23T09:30:14Z")

</div>

Using Distributed.jl, is there no built-in way to find out which workers are on the same shared-memory node? This post: shows a manual implementation based on gethostname(), but I don’t know how robust that is? If ther…

---

## [Makie - xscale - no method matching defaultlimits](https://discourse.julialang.org/t/makie-xscale-no-method-matching-defaultlimits/96696)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 6\
**Last updated:** [June 23, 2023, 9:10am UTC](https://discourse.julialang.org/t/makie-xscale-no-method-matching-defaultlimits/96696 "2023-06-23T09:10:39Z")

</div>

julia\> scatter(1:1.0:10, rand(10); axis=(; xscale=x-\>2.0\*x)) ERROR: MethodError: no method matching defaultlimits(::var"#118#119") Closest candidates are: defaultlimits(::Tuple{Real, Real}, ::Any) @ Makie ~/.julia/…

---

## [Good workflow for data import/cleanup](https://discourse.julialang.org/t/good-workflow-for-data-import-cleanup/100697)

<div class="topic-metadata">

**Author:** [@owiecc](https://discourse.julialang.org/u/owiecc)\
**Replies:** 6\
**Last updated:** [June 23, 2023, 9:06am UTC](https://discourse.julialang.org/t/good-workflow-for-data-import-cleanup/100697 "2023-06-23T09:06:55Z")

</div>

I often have to import data from various measurement equipment or software. These come in plethora of formats and conventions. Some come with metadata. Some need to be appended with metadata (e.g. external parameters not…

---

## [Plot layout with parametrized number of rows/columns](https://discourse.julialang.org/t/plot-layout-with-parametrized-number-of-rows-columns/100702)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 5\
**Last updated:** [June 23, 2023, 9:04am UTC](https://discourse.julialang.org/t/plot-layout-with-parametrized-number-of-rows-columns/100702 "2023-06-23T09:04:41Z")

</div>

Hi all I would like to incrementally build a plot from different subplots using layout. The issue I’m struggling with is that the number of subplots is a parameter/variable. So I would like to build a list of subplots, …

---

## [Can't fit dose response curve, could you tell me Why and How](https://discourse.julialang.org/t/cant-fit-dose-response-curve-could-you-tell-me-why-and-how/79996)

<div class="topic-metadata">

**Author:** [@MEEMO](https://discourse.julialang.org/u/MEEMO)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 8:43am UTC](https://discourse.julialang.org/t/cant-fit-dose-response-curve-could-you-tell-me-why-and-how/79996 "2023-06-23T08:43:04Z")

</div>

Hello there ! I just have started programming and Julia these days, and I am trying fitting curve (dose response) by Optim.jl But I can’t obtain better parameters and predictions (the all predictions have same value ev…

---

## [Efficient Hessian assembling within an interior point method](https://discourse.julialang.org/t/efficient-hessian-assembling-within-an-interior-point-method/100731)

<div class="topic-metadata">

**Author:** [@twopii](https://discourse.julialang.org/u/twopii)\
**Replies:** 0\
**Last updated:** [June 23, 2023, 8:33am UTC](https://discourse.julialang.org/t/efficient-hessian-assembling-within-an-interior-point-method/100731 "2023-06-23T08:33:07Z")

</div>

Hi all! I am currently considering an assembling problem. Given is a dense matrix A and a sparse matrix B and the goal is to efficiently compute the matrix H = B^\\top (A \\otimes A) B. If one expresses the matrix B as B…

---

## [Make Makie pan on left-click drag](https://discourse.julialang.org/t/make-makie-pan-on-left-click-drag/100729)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 0\
**Last updated:** [June 23, 2023, 8:07am UTC](https://discourse.julialang.org/t/make-makie-pan-on-left-click-drag/100729 "2023-06-23T08:07:49Z")

</div>

Currently, Makie zooms to the selected rectangle when you left-click drag and pans when you right-click drag. Is there an easy way to make Makie pan on left-click drag?

---

## [Truncated distributions in Gen](https://discourse.julialang.org/t/truncated-distributions-in-gen/50051)

<div class="topic-metadata">

**Author:** [@dell\_parker](https://discourse.julialang.org/u/dell_parker)\
**Replies:** 5\
**Last updated:** [June 23, 2023, 7:49am UTC](https://discourse.julialang.org/t/truncated-distributions-in-gen/50051 "2023-06-23T07:49:05Z")

</div>

Is there a way to sample from a truncated distribution in Gen? In other words, what should go in ?? below? using Gen, Distributions @gen function line\_model(xs::Vector{Float64}) slope = @trace(??, :slope) inte…

---

## [How to Plot 3D Catenoid from Catenary with parametric equations](https://discourse.julialang.org/t/how-to-plot-3d-catenoid-from-catenary-with-parametric-equations/100727)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [June 23, 2023, 7:19am UTC](https://discourse.julialang.org/t/how-to-plot-3d-catenoid-from-catenary-with-parametric-equations/100727 "2023-06-23T07:19:31Z")

</div>

Hi all, I can use some help here. I want to plot a Catenoid, and find this parametric equations: but the code can’t plot the Catenoid. Must be something wrong with how I interpret the parametric equations using Plot…

---

## [Select default browser to display PlotlyLight.Plot()](https://discourse.julialang.org/t/select-default-browser-to-display-plotlylight-plot/99987)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [June 7, 2023, 7:11am UTC](https://discourse.julialang.org/t/select-default-browser-to-display-plotlylight-plot/99987 "2023-06-07T07:11:42Z")

</div>

One important feature for a plot package the produces interactive HTML-output is for me the feature to select the default browser to display my HTML-figure. Below a code snippet for the package plotlylight-jl: using Plo…

---

## [Plots/GR broken after updating Pluto dependencies](https://discourse.julialang.org/t/plots-gr-broken-after-updating-pluto-dependencies/100546)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 23\
**Last updated:** [June 23, 2023, 5:26am UTC](https://discourse.julialang.org/t/plots-gr-broken-after-updating-pluto-dependencies/100546 "2023-06-23T05:26:00Z")

</div>

I am running Pluto and just installed the most recent Plots.jl which unfortunately failed. I think this should never happen, maybe some missing tests on GR or Plots.jl for interacting with previously installed versions? …

---

## [Basic of \`@everywhere\` and \`@distributed\` macro](https://discourse.julialang.org/t/basic-of-everywhere-and-distributed-macro/100498)

<div class="topic-metadata">

**Author:** [@YZX](https://discourse.julialang.org/u/YZX)\
**Replies:** 5\
**Last updated:** [June 23, 2023, 3:46am UTC](https://discourse.julialang.org/t/basic-of-everywhere-and-distributed-macro/100498 "2023-06-23T03:46:28Z")

</div>

Hi everyone, I am trying to do distributed programming in cluster and I have tried a few tests but I can’t get what I expected. I think I don’t understand the basic of @everywhere and @distributed macro. The following i…

---

## [Shifting the bit in the array](https://discourse.julialang.org/t/shifting-the-bit-in-the-array/100586)

<div class="topic-metadata">

**Author:** [@divon](https://discourse.julialang.org/u/divon)\
**Replies:** 29\
**Last updated:** [June 22, 2023, 10:17pm UTC](https://discourse.julialang.org/t/shifting-the-bit-in-the-array/100586 "2023-06-22T22:17:07Z")

</div>

Hello everyone, I am looking forward to the advice about this problem. In the initial state, I have: G = 1 Z = \[0, 0, 0, 0\] Then, with the increasing value of G, Z will also be updated as follows: G = 2 …

---

## [What's a quick way of generating a string like this?](https://discourse.julialang.org/t/whats-a-quick-way-of-generating-a-string-like-this/100722)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 2\
**Last updated:** [June 23, 2023, 12:32am UTC](https://discourse.julialang.org/t/whats-a-quick-way-of-generating-a-string-like-this/100722 "2023-06-23T00:32:47Z")

</div>

A\_01.jpg A\_02.jpg ... A\_16.jpg Basically how do I let Julia add a zero in front of it, when it is a single digit number? Do I have to write an if loop? Thanks

---

## [Baffling bug counting nonzero elements in a vector](https://discourse.julialang.org/t/baffling-bug-counting-nonzero-elements-in-a-vector/100718)

<div class="topic-metadata">

**Author:** [@ilanggear](https://discourse.julialang.org/u/ilanggear)\
**Replies:** 4\
**Last updated:** [June 22, 2023, 11:33pm UTC](https://discourse.julialang.org/t/baffling-bug-counting-nonzero-elements-in-a-vector/100718 "2023-06-22T23:33:45Z")

</div>

I have been banging my head against the following bug for more than a couple days now, and I’m still baffled. I want to count the number of zero and non-zero elements in a couple vectors as shown below. In the code below…

---

## [How to convert a string to a StepRange](https://discourse.julialang.org/t/how-to-convert-a-string-to-a-steprange/100703)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [June 22, 2023, 2:45pm UTC](https://discourse.julialang.org/t/how-to-convert-a-string-to-a-steprange/100703 "2023-06-22T14:45:57Z")

</div>

From a YAML file I get the string “2.0:0.25:10.0”. How can I convert it to a StepRange? tsr="2.0:0.25:10.0" TSR=eval(tsr) # not working

---

## [Symbolics.jacobian\_sparsity detection errors with PreallocationTools](https://discourse.julialang.org/t/symbolics-jacobian-sparsity-detection-errors-with-preallocationtools/100715)

<div class="topic-metadata">

**Author:** [@sanjeev](https://discourse.julialang.org/u/sanjeev)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 10:02pm UTC](https://discourse.julialang.org/t/symbolics-jacobian-sparsity-detection-errors-with-preallocationtools/100715 "2023-06-22T22:02:52Z")

</div>

When I try to do jacobian sparsity detection, I get error that ERROR: MethodError: no method matching zero(::Type{Any}). The array returned from PreallocationsTools.jl for array of Symbolics.Num datatype, is of type Ve…

---

## [Log automatic selection of sensitivity algorithm](https://discourse.julialang.org/t/log-automatic-selection-of-sensitivity-algorithm/100691)

<div class="topic-metadata">

**Author:** [@nina](https://discourse.julialang.org/u/nina)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 9:48pm UTC](https://discourse.julialang.org/t/log-automatic-selection-of-sensitivity-algorithm/100691 "2023-06-22T21:48:19Z")

</div>

Dear all, I am training a universal differential equation with Zygote without specifying what sensitivity algorithm I am using. Hence, according to the SciMLSensitivity Docs a “smart polyalgorithm is used to automatical…

---

## [Setting default arguments for a function passed to another function](https://discourse.julialang.org/t/setting-default-arguments-for-a-function-passed-to-another-function/100712)

<div class="topic-metadata">

**Author:** [@dlcole3](https://discourse.julialang.org/u/dlcole3)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 8:43pm UTC](https://discourse.julialang.org/t/setting-default-arguments-for-a-function-passed-to-another-function/100712 "2023-06-22T20:43:55Z")

</div>

I am defining a function that takes a keyword argument. I am setting a default function for this keyword argument, but I would like to also pass a default keyword to that second function. I am not sure how to do this. F…

---

## [Specify \[compat\] for \_jll binary (Libtiff\_jll)](https://discourse.julialang.org/t/specify-compat-for-jll-binary-libtiff-jll/100713)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 8:06pm UTC](https://discourse.julialang.org/t/specify-compat-for-jll-binary-libtiff-jll/100713 "2023-06-22T20:06:56Z")

</div>

Hi, I am having problem with the newly released version of Libtiff\_jll which apparently breaks PROJ\_jll. I also filed an issue on Yggdrasil Problems with Libtiff\_jllv4.5 and PROJ\_jll · Issue #6928 · JuliaPackaging/Yggd…

---

## [Deprecate keyword argument](https://discourse.julialang.org/t/deprecate-keyword-argument/33740)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 7:58pm UTC](https://discourse.julialang.org/t/deprecate-keyword-argument/33740 "2023-06-22T19:58:04Z")

</div>

I want to deprecate a renamed keyword argument e.g. like this @deprecate foo(;a1=1, a2=2) foo(;b1=1, a2=2) foo(a1=2, a2=3) Warning: foo(; a1=1, a2=2) is deprecated, use foo(; b1=1, a2=2) instead. But I dont want to …

---

## [Standard way to deprecate a keyword argument](https://discourse.julialang.org/t/standard-way-to-deprecate-a-keyword-argument/100534)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 7:55pm UTC](https://discourse.julialang.org/t/standard-way-to-deprecate-a-keyword-argument/100534 "2023-06-22T19:55:22Z")

</div>

Is there a simple and standard way to deprecate a keyword argument? From reading through past threads it sounds like you need to do this manually, e.g., Deprecate keyword argument. But surely there’s a nice macro for thi…

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

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