# Latest

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

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

**Page:** 1055

---

## [Create new dataframe with minor changes](https://discourse.julialang.org/t/create-new-dataframe-with-minor-changes/80245)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 11\
**Last updated:** [April 30, 2022, 2:28am UTC](https://discourse.julialang.org/t/create-new-dataframe-with-minor-changes/80245 "2022-04-30T02:28:16Z")

</div>

Hi , I tried to create a new data frame with theminor changes from my original dataframe. But whenever i tried to change something in new dataframe, it gets changed in original as well. Can some one help me to solve thi…

---

## [Map over combinations of parameters, and grouping results as DataFrame](https://discourse.julialang.org/t/map-over-combinations-of-parameters-and-grouping-results-as-dataframe/77306)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 10\
**Last updated:** [April 29, 2022, 10:55pm UTC](https://discourse.julialang.org/t/map-over-combinations-of-parameters-and-grouping-results-as-dataframe/77306 "2022-04-29T22:55:43Z")

</div>

Coming from the R world, I’m wondering how to translate the following task in a more Julian way. I often need to run a function, say my\_model(x, a, b, c) for various combinations of parameters a,b,c, where the output of m…

---

## [Fastest way to parse a string of numbers](https://discourse.julialang.org/t/fastest-way-to-parse-a-string-of-numbers/16720)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 21\
**Last updated:** [April 29, 2022, 9:07pm UTC](https://discourse.julialang.org/t/fastest-way-to-parse-a-string-of-numbers/16720 "2022-04-29T21:07:44Z")

</div>

I have a string of space separated numbers like this: "1.0 2.34345 7.9" And I want to parse it. Currently I use the following code for this: function parse\_numbers(s) pieces = split(s, ' ', keepemp…

---

## [Signaling "production-ready" for Julia packages, MATLAB.jl as an example](https://discourse.julialang.org/t/signaling-production-ready-for-julia-packages-matlab-jl-as-an-example/80205)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 4\
**Last updated:** [April 29, 2022, 8:50pm UTC](https://discourse.julialang.org/t/signaling-production-ready-for-julia-packages-matlab-jl-as-an-example/80205 "2022-04-29T20:50:15Z")

</div>

Julia follows semver (and its packages should too): Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable. Version 1.0.0 defines t…

---

## [Performance of resize! vs pre-allocating with zeros(...)](https://discourse.julialang.org/t/performance-of-resize-vs-pre-allocating-with-zeros/80258)

<div class="topic-metadata">

**Author:** [@fcdimitr](https://discourse.julialang.org/u/fcdimitr)\
**Replies:** 9\
**Last updated:** [April 29, 2022, 8:28pm UTC](https://discourse.julialang.org/t/performance-of-resize-vs-pre-allocating-with-zeros/80258 "2022-04-29T20:28:18Z")

</div>

I observe a factor of 5x time difference in writing over a vector with two different preallocation strategies. Using x = zeros(Int64, n) Using x = Int64\[\]; resize!(x,n) The benchmark code is bellow using BenchmarkT…

---

## [Strange behavior in defining function](https://discourse.julialang.org/t/strange-behavior-in-defining-function/80271)

<div class="topic-metadata">

**Author:** [@neujmin1](https://discourse.julialang.org/u/neujmin1)\
**Replies:** 3\
**Last updated:** [April 29, 2022, 8:19pm UTC](https://discourse.julialang.org/t/strange-behavior-in-defining-function/80271 "2022-04-29T20:19:38Z")

</div>

Had a “gotcha” that I don’t understand the behavior of. Bug maybe, or am I missing something here?? Here’s a simplified code example… “”" function foo() wookie = false f(x) = 5 if wookie println("wookie acti…

---

## [Visualizing a dynamic changing graph](https://discourse.julialang.org/t/visualizing-a-dynamic-changing-graph/80255)

<div class="topic-metadata">

**Author:** [@flobe](https://discourse.julialang.org/u/flobe)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 6:45pm UTC](https://discourse.julialang.org/t/visualizing-a-dynamic-changing-graph/80255 "2022-04-29T18:45:01Z")

</div>

Hi all, I am in the process of implementing a graph using MetaGraphs(Next).jl. The graph dynamically expands over time. Currently, I am using GraphRecipes to visualize the resulting graph at the end of my “time simulat…

---

## [Providing context to @test macro](https://discourse.julialang.org/t/providing-context-to-test-macro/80235)

<div class="topic-metadata">

**Author:** [@col16](https://discourse.julialang.org/u/col16)\
**Replies:** 6\
**Last updated:** [April 29, 2022, 6:09pm UTC](https://discourse.julialang.org/t/providing-context-to-test-macro/80235 "2022-04-29T18:09:04Z")

</div>

I’m using Julia to test the integrity of a large dataset by re-calculating values at random locations and checking that they match. When a test that was run using the @test macro fails, it reports what was evaluated (an…

---

## [New file options in VS Code drop-down menu](https://discourse.julialang.org/t/new-file-options-in-vs-code-drop-down-menu/80222)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 7\
**Last updated:** [April 29, 2022, 3:21pm UTC](https://discourse.julialang.org/t/new-file-options-in-vs-code-drop-down-menu/80222 "2022-04-29T15:21:17Z")

</div>

Does anyone know, is it a bug or something wrong with my VS Code installation that causes two entries for New File in VS Code File drop-down menu?

---

## [\[ANN\] SPCSpectra.jl reading spectroscopic files](https://discourse.julialang.org/t/ann-spcspectra-jl-reading-spectroscopic-files/78620)

<div class="topic-metadata">

**Author:** [@hhaensel](https://discourse.julialang.org/u/hhaensel)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 3:11pm UTC](https://discourse.julialang.org/t/ann-spcspectra-jl-reading-spectroscopic-files/78620 "2022-04-29T15:11:22Z")

</div>

SPCSpectra.jl A module for working with .SPC files in Julia. SPC is a binary data format to store a variety of spectral data, developed by Galactic Industries Corporation in the '90s. Popularly used Thermo Fisher/Scienti…

---

## [Plotting heatmap PlotlyJS, double bar](https://discourse.julialang.org/t/plotting-heatmap-plotlyjs-double-bar/80199)

<div class="topic-metadata">

**Author:** [@Line](https://discourse.julialang.org/u/Line)\
**Replies:** 3\
**Last updated:** [April 29, 2022, 3:09pm UTC](https://discourse.julialang.org/t/plotting-heatmap-plotlyjs-double-bar/80199 "2022-04-29T15:09:23Z")

</div>

Hi, I am plotting heatmap subplots using PlotlyJS package and get the problem of the bar being double. The input into the heatmap is just values of either 1, 2 or 3. I assume a part of the problem is some plots only take…

---

## [Pkg: Proxy Authentication Required (Received HTTP code 407 from proxy after CONNECT)](https://discourse.julialang.org/t/pkg-proxy-authentication-required-received-http-code-407-from-proxy-after-connect/79984)

<div class="topic-metadata">

**Author:** [@Keluaa](https://discourse.julialang.org/u/Keluaa)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 2:32pm UTC](https://discourse.julialang.org/t/pkg-proxy-authentication-required-received-http-code-407-from-proxy-after-connect/79984 "2022-04-29T14:32:33Z")

</div>

Hello, I am currently working with Julia 1.7.2 on a linux machine through ssh which requires a proxy to access the internet. By configuring the environment variables “http\_proxy” and “https\_proxy” to http://usr:@some\_a…

---

## [Is there a Julia Style Guide?](https://discourse.julialang.org/t/is-there-a-julia-style-guide/80195)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 23\
**Last updated:** [April 29, 2022, 2:24pm UTC](https://discourse.julialang.org/t/is-there-a-julia-style-guide/80195 "2022-04-29T14:24:40Z")

</div>

Hi, I’m learning Julia right now and want to teach myself a good coding style right form the start. Is there a Julia design proposal similar to the PEP guidelines for python?

---

## [The best way to pass intermediate value to auxiliary functions](https://discourse.julialang.org/t/the-best-way-to-pass-intermediate-value-to-auxiliary-functions/80254)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 2:19pm UTC](https://discourse.julialang.org/t/the-best-way-to-pass-intermediate-value-to-auxiliary-functions/80254 "2022-04-29T14:19:15Z")

</div>

I’m writing a Monte Carlo program and I need a lot of auxiliary function dependent on one or two fields of the parameter model of the main function sweep!(model) in the following way: function sweep!(model, n\_sweep) …

---

## [Physics model parametrization](https://discourse.julialang.org/t/physics-model-parametrization/79529)

<div class="topic-metadata">

**Author:** [@davide445](https://discourse.julialang.org/u/davide445)\
**Replies:** 14\
**Last updated:** [April 29, 2022, 1:53pm UTC](https://discourse.julialang.org/t/physics-model-parametrization/79529 "2022-04-29T13:53:29Z")

</div>

Thinking about my first test project/learning with Julia I got this option: will receive a Windows DLL implementing a physics model, modelling the behavior of soft soil pushed from a vehicle. Hi input will be: height …

---

## [Why does scientific notation break the range function?](https://discourse.julialang.org/t/why-does-scientific-notation-break-the-range-function/80014)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 94\
**Last updated:** [April 29, 2022, 1:52pm UTC](https://discourse.julialang.org/t/why-does-scientific-notation-break-the-range-function/80014 "2022-04-29T13:52:30Z")

</div>

This line of code creates a 1000 element array of values, evenly spaced from 0 to 10: x = range(0,10,length=1000) The code above works perfectly. This line of code, however, throws an error: x = range(0,10,length=1e3)…

---

## [Using pmap: Do all workers have to be equally capable?](https://discourse.julialang.org/t/using-pmap-do-all-workers-have-to-be-equally-capable/74122)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 5\
**Last updated:** [April 29, 2022, 12:18pm UTC](https://discourse.julialang.org/t/using-pmap-do-all-workers-have-to-be-equally-capable/74122 "2022-04-29T12:18:32Z")

</div>

I am using pmap with workers from many computers. Some of those computers have more resources than others ~ does pmap know this? And distribute tasks accordingly? e.g. if I have 10 workers on one machine vs 2 workers on …

---

## [Linear model with categorical variable](https://discourse.julialang.org/t/linear-model-with-categorical-variable/80201)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 10:17am UTC](https://discourse.julialang.org/t/linear-model-with-categorical-variable/80201 "2022-04-29T10:17:05Z")

</div>

Hi, I’m trying to implement a linear model with a categorical variable in turing but am stuck. The model has a different μ, depending on whether S=0 or S=1: Wᵢ ~ Normal(μᵢ, σ) μᵢ = α\_S\[i\] α = \[α1, α2\] Priors: αᵢ ~ …

---

## [How to understand the ProfileView output](https://discourse.julialang.org/t/how-to-understand-the-profileview-output/79968)

<div class="topic-metadata">

**Author:** [@Himbeersternchen](https://discourse.julialang.org/u/Himbeersternchen)\
**Replies:** 3\
**Last updated:** [April 29, 2022, 9:52am UTC](https://discourse.julialang.org/t/how-to-understand-the-profileview-output/79968 "2022-04-29T09:52:54Z")

</div>

Hello Everyone, Similar as this topic, i want to understand the profileview output. The test code is as Following: init() = begin n = 250 a1 = Vector{Vector{Float64}}(undef, n) for i in 1:n a1\[i\] …

---

## [Convert Symbolic expression to a function](https://discourse.julialang.org/t/convert-symbolic-expression-to-a-function/80225)

<div class="topic-metadata">

**Author:** [@Jack](https://discourse.julialang.org/u/Jack)\
**Replies:** 5\
**Last updated:** [April 29, 2022, 8:57am UTC](https://discourse.julialang.org/t/convert-symbolic-expression-to-a-function/80225 "2022-04-29T08:57:13Z")

</div>

Greetings. I am trying to convert the a very simple example of the following using SymbolicUtils @syms x f = 2\*x the f into a function that would evaluate at a concrete number of x, so ideally it’s a function that has …

---

## [Improve performance of CRRA utility function](https://discourse.julialang.org/t/improve-performance-of-crra-utility-function/80229)

<div class="topic-metadata">

**Author:** [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Replies:** 6\
**Last updated:** [April 29, 2022, 8:28am UTC](https://discourse.julialang.org/t/improve-performance-of-crra-utility-function/80229 "2022-04-29T08:28:26Z")

</div>

I want to improve the performance of u in the code below. I have tried rewriting the formula and inlining the broadcasting, which helped some. But when tried using @turbo from LoopVectorization.jl something goes wrong an…

---

## [Data Storage Quo Vadis under Julia: HDF5 - JLD2 - MAT -](https://discourse.julialang.org/t/data-storage-quo-vadis-under-julia-hdf5-jld2-mat/80159)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [April 27, 2022, 5:35pm UTC](https://discourse.julialang.org/t/data-storage-quo-vadis-under-julia-hdf5-jld2-mat/80159 "2022-04-27T17:35:45Z")

</div>

The good news: Julia can beat the phyton data-compression package “hdf5storage”. But it is useful to have a closer look into the matter. And, if you store data, it should be better or at least as good as hdf5storage. …

---

## [Best way to implement distributed read/write with Zarr.jl?](https://discourse.julialang.org/t/best-way-to-implement-distributed-read-write-with-zarr-jl/80243)

<div class="topic-metadata">

**Author:** [@ConnectedSystems](https://discourse.julialang.org/u/ConnectedSystems)\
**Replies:** 0\
**Last updated:** [April 29, 2022, 7:14am UTC](https://discourse.julialang.org/t/best-way-to-implement-distributed-read-write-with-zarr-jl/80243 "2022-04-29T07:14:21Z")

</div>

Trying out Zarr.jl for comparison with NetCDF.jl I ran into an issue with distributed writes, where workers were silently hanging. I thought I could pass the data store created by zopen() via pmap(), similar to a Share…

---

## [Pluto: How to redirect the logging message to the terminal?](https://discourse.julialang.org/t/pluto-how-to-redirect-the-logging-message-to-the-terminal/80232)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 1\
**Last updated:** [April 29, 2022, 6:24am UTC](https://discourse.julialang.org/t/pluto-how-to-redirect-the-logging-message-to-the-terminal/80232 "2022-04-29T06:24:35Z")

</div>

Current version (or versions) displays @info message in the cell instead of in the terminal. I have a very long simulation to run and it emits many messages per iteration. These messages are clustering in a line which I …

---

## [Do AutoMerge of Julia Registry and CI use the same package compatibility rule?](https://discourse.julialang.org/t/do-automerge-of-julia-registry-and-ci-use-the-same-package-compatibility-rule/80238)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 0\
**Last updated:** [April 29, 2022, 2:20am UTC](https://discourse.julialang.org/t/do-automerge-of-julia-registry-and-ci-use-the-same-package-compatibility-rule/80238 "2022-04-29T02:20:47Z")

</div>

I am very puzzled by the behavior of AutoMerge process of the Julia Registry. I had difficulty registering my updated version of the package GitHub - UCD4IDS/MultiscaleGraphSignalTransforms.jl: MultiscaleGraphSignalTran…

---

## [How can I get Proj4 to transform multiple locations?](https://discourse.julialang.org/t/how-can-i-get-proj4-to-transform-multiple-locations/80098)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 11\
**Last updated:** [April 29, 2022, 12:32am UTC](https://discourse.julialang.org/t/how-can-i-get-proj4-to-transform-multiple-locations/80098 "2022-04-29T00:32:20Z")

</div>

This is probably more of a Julia question than a Proj4 question, but how can I perform coordinate transformations on multiple locations at once? I’m writing a function that would need to handle the following three cases: …

---

## [Collecting experiences from new Julia users?](https://discourse.julialang.org/t/collecting-experiences-from-new-julia-users/80094)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 8\
**Last updated:** [April 28, 2022, 10:48pm UTC](https://discourse.julialang.org/t/collecting-experiences-from-new-julia-users/80094 "2022-04-28T22:48:54Z")

</div>

I’m teaching a class on computational science in fall 2022, and was interested in trying to collect experiences from new Julia users to understand what common hangups are and how to ease transitions into the language. I…

---

## [Replicate Vega-Lite Interactive Index Chart](https://discourse.julialang.org/t/replicate-vega-lite-interactive-index-chart/80231)

<div class="topic-metadata">

**Author:** [@klwlevy](https://discourse.julialang.org/u/klwlevy)\
**Replies:** 0\
**Last updated:** [April 28, 2022, 10:42pm UTC](https://discourse.julialang.org/t/replicate-vega-lite-interactive-index-chart/80231 "2022-04-28T22:42:41Z")

</div>

Is it possible to replicate this using vegalite.jl? Interactive Index Chart | Vega-Lite

---

## [Contour plots on non-rectangular domain](https://discourse.julialang.org/t/contour-plots-on-non-rectangular-domain/47193)

<div class="topic-metadata">

**Author:** [@Stein](https://discourse.julialang.org/u/Stein)\
**Replies:** 6\
**Last updated:** [April 28, 2022, 11:17am UTC](https://discourse.julialang.org/t/contour-plots-on-non-rectangular-domain/47193 "2022-04-28T11:17:59Z")

</div>

Is there any way to use the contour and contourf commands from the Plots.jl package to produce figures with non-rectangular domains? Or what would be the most flexible/complete alternative? Suppose I have the following …

---

## [Inconsistent build\_function behavior in Symbolics](https://discourse.julialang.org/t/inconsistent-build-function-behavior-in-symbolics/80230)

<div class="topic-metadata">

**Author:** [@Elmo](https://discourse.julialang.org/u/Elmo)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 10:08pm UTC](https://discourse.julialang.org/t/inconsistent-build-function-behavior-in-symbolics/80230 "2022-04-28T22:08:04Z")

</div>

Hi, is there a good way to make sure that the output function from build\_function in Symbolics returns output in the same dimensions as the symbolic function used to generate it? In the simple example below, if N = 5, …

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

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