# Latest

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

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

**Page:** 942

---

## [Mutating a dictionary through aliases](https://discourse.julialang.org/t/mutating-a-dictionary-through-aliases/86378)

<div class="topic-metadata">

**Author:** [@danielsoutar](https://discourse.julialang.org/u/danielsoutar)\
**Replies:** 4\
**Last updated:** [August 26, 2022, 8:40pm UTC](https://discourse.julialang.org/t/mutating-a-dictionary-through-aliases/86378 "2022-08-26T20:40:28Z")

</div>

Let’s say I have a dictionary like so: my\_object = Dict{Symbol, Any}( :foo =\> Dict{Symbol, Any}( :foo\_items =\> \["item\_a", "item\_b", "item\_c"\], :bar =\> Dict{Symbol, Any}( :bar\_name =\> \["na…

---

## [Symbolics: Extend a rule to a sum with multiple terms](https://discourse.julialang.org/t/symbolics-extend-a-rule-to-a-sum-with-multiple-terms/86384)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 8:22pm UTC](https://discourse.julialang.org/t/symbolics-extend-a-rule-to-a-sum-with-multiple-terms/86384 "2022-08-26T20:22:38Z")

</div>

I have this: @syms commutator(a, b) myRule = @rule commutator((~a)+(~b), ~c) =\> commutator(~a, ~c) + commutator(~b, ~c) how can I extend the rule to get: myRule\_ = @rule commutator((~a)+(~b)+(~d), ~c) =\> commutator(~a…

---

## [Commit to a common syntax for accessing additional index mapping information on axes](https://discourse.julialang.org/t/commit-to-a-common-syntax-for-accessing-additional-index-mapping-information-on-axes/84988)

<div class="topic-metadata">

**Author:** [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)\
**Replies:** 75\
**Last updated:** [August 26, 2022, 7:12pm UTC](https://discourse.julialang.org/t/commit-to-a-common-syntax-for-accessing-additional-index-mapping-information-on-axes/84988 "2022-08-26T19:12:54Z")

</div>

If you use AxisArrays.jl it’s axisvalues(data, dim), if you use AxisKeys.jl it’s called axiskeys(data, dim), if you use DimensionalData.jl it’s dims(data, dim).val, if you use NamedArrays.jl it’s \`names(data, dim). Whate…

---

## [Compute gradient of gradient norm using zygote](https://discourse.julialang.org/t/compute-gradient-of-gradient-norm-using-zygote/79712)

<div class="topic-metadata">

**Author:** [@brentian](https://discourse.julialang.org/u/brentian)\
**Replies:** 17\
**Last updated:** [August 26, 2022, 5:42pm UTC](https://discourse.julialang.org/t/compute-gradient-of-gradient-norm-using-zygote/79712 "2022-08-26T17:42:16Z")

</div>

I’m new to Zygote.jl and I’d like to compute the squared sum of a gradient, i.e., g = gradient(f, x), q = gradient(g’\*g, x) Sucessfully did this using Forward mode: function grad\_g\_sqr(f, d, x) function gs(x) …

---

## [Trying to wrap my head around julia's file handling (still!)](https://discourse.julialang.org/t/trying-to-wrap-my-head-around-julias-file-handling-still/86379)

<div class="topic-metadata">

**Author:** [@skypuppy](https://discourse.julialang.org/u/skypuppy)\
**Replies:** 4\
**Last updated:** [August 26, 2022, 4:43pm UTC](https://discourse.julialang.org/t/trying-to-wrap-my-head-around-julias-file-handling-still/86379 "2022-08-26T16:43:25Z")

</div>

How would one start thinking about this task: Goal: search all files in the entire filesystem for particular strings find all files that contain “somestring” for example, “dog” and or “Schnauzer” – case insensitive i…

---

## [State of machine learning in Julia](https://discourse.julialang.org/t/state-of-machine-learning-in-julia/74385)

<div class="topic-metadata">

**Author:** [@sethaxen](https://discourse.julialang.org/u/sethaxen)\
**Replies:** 60\
**Last updated:** [August 26, 2022, 4:34pm UTC](https://discourse.julialang.org/t/state-of-machine-learning-in-julia/74385 "2022-08-26T16:34:27Z")

</div>

After the Twitter space Q&A @logankilpatrick hosted yesterday on “The future of machine learning and why it looks a lot like Julia,” I thought it would be useful to accumulate some community responses to a few questions …

---

## [Parallelizing Monte Carlo - using buffers, avoiding global variables](https://discourse.julialang.org/t/parallelizing-monte-carlo-using-buffers-avoiding-global-variables/86364)

<div class="topic-metadata">

**Author:** [@psterzinger](https://discourse.julialang.org/u/psterzinger)\
**Replies:** 3\
**Last updated:** [August 26, 2022, 4:03pm UTC](https://discourse.julialang.org/t/parallelizing-monte-carlo-using-buffers-avoiding-global-variables/86364 "2022-08-26T16:03:24Z")

</div>

Hi, I am trying to parallelize a Monte Carlo simulation using Distributed and SharedArrays, where I essentially want to assign workers independent iterations of my simulation. My simulation setup boils down to a simple …

---

## [Cloud app developer and julia developer for automated CNC machining](https://discourse.julialang.org/t/cloud-app-developer-and-julia-developer-for-automated-cnc-machining/86389)

<div class="topic-metadata">

**Author:** [@justinsgray](https://discourse.julialang.org/u/justinsgray)\
**Replies:** 0\
**Last updated:** [August 26, 2022, 3:10pm UTC](https://discourse.julialang.org/t/cloud-app-developer-and-julia-developer-for-automated-cnc-machining/86389 "2022-08-26T15:10:40Z")

</div>

At Toolpath labs our goal is to make CNC machining as easy as 3D printing. We’re developing a cloud based application for CNC machining strategy generation that allows you to go from 3D geometry to a usable machining pr…

---

## [MAP Optimization and RAM usage related to autodiff](https://discourse.julialang.org/t/map-optimization-and-ram-usage-related-to-autodiff/86388)

<div class="topic-metadata">

**Author:** [@jweinstk](https://discourse.julialang.org/u/jweinstk)\
**Replies:** 0\
**Last updated:** [August 26, 2022, 2:28pm UTC](https://discourse.julialang.org/t/map-optimization-and-ram-usage-related-to-autodiff/86388 "2022-08-26T14:28:39Z")

</div>

Hi there probabilistic programming folks - I’ve enjoyed reading the posts here and now have one of my own. I am trying to estimate the MAP of a multivariate linear model with a mixture model component using Turing (will …

---

## [Order of rules in Symbolics / SymbolicUtils](https://discourse.julialang.org/t/order-of-rules-in-symbolics-symbolicutils/86383)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 1:50pm UTC](https://discourse.julialang.org/t/order-of-rules-in-symbolics-symbolicutils/86383 "2022-08-26T13:50:12Z")

</div>

Does the order of the rules in Symbolics/SymbolicUtils matter when simplifying?

---

## [Parameter Estimation of ODE system where the response variables are not the state variables](https://discourse.julialang.org/t/parameter-estimation-of-ode-system-where-the-response-variables-are-not-the-state-variables/86171)

<div class="topic-metadata">

**Author:** [@jonlym](https://discourse.julialang.org/u/jonlym)\
**Replies:** 8\
**Last updated:** [August 26, 2022, 12:46pm UTC](https://discourse.julialang.org/t/parameter-estimation-of-ode-system-where-the-response-variables-are-not-the-state-variables/86171 "2022-08-26T12:46:50Z")

</div>

I am new to Julia and I would like to write a program to estimate the kinetic parameters for a chemical system. I am aware of Catalyst.jl but my work involves systems with complex geometries so I often have to modify my …

---

## [Xtics font size in Makie?](https://discourse.julialang.org/t/xtics-font-size-in-makie/86377)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 10:31am UTC](https://discourse.julialang.org/t/xtics-font-size-in-makie/86377 "2022-08-26T10:31:13Z")

</div>

How can I tune the xtics font size in Makie ? Thank your for your help.

---

## [Create Interval Notation in Julia?](https://discourse.julialang.org/t/create-interval-notation-in-julia/86375)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 10:00am UTC](https://discourse.julialang.org/t/create-interval-notation-in-julia/86375 "2022-08-26T10:00:55Z")

</div>

Hi all, I wonder about creating interval notation using Intervals package, if there is any package that is able do tell me. I try it this way: using Plots, LaTeXStrings, Intervals a = Interval{Closed, Closed}(1, 10) …

---

## [Good way for creating a Julia project binding a C++ project](https://discourse.julialang.org/t/good-way-for-creating-a-julia-project-binding-a-c-project/85595)

<div class="topic-metadata">

**Author:** [@Lecrapouille](https://discourse.julialang.org/u/Lecrapouille)\
**Replies:** 3\
**Last updated:** [August 26, 2022, 9:51am UTC](https://discourse.julialang.org/t/good-way-for-creating-a-julia-project-binding-a-c-project/85595 "2022-08-26T09:51:08Z")

</div>

Hello ! I’m more a C++ developer than Julia dev but years ago I made a pure Julia project and successfully deployed it on the official Julia packages. This time, I made a pure C++ project (let’s name it MyProject) for a…

---

## [API for location of cov files with \`Pkg.test(; coverage = true)](https://discourse.julialang.org/t/api-for-location-of-cov-files-with-pkg-test-coverage-true/86087)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 9:35am UTC](https://discourse.julialang.org/t/api-for-location-of-cov-files-with-pkg-test-coverage-true/86087 "2022-08-26T09:35:08Z")

</div>

Suppose a user activated a project and then called import Pkg Pkg.test(; coverage = true) What would be the API for returning the location of the cov files (eg an src directory). (I need this for LocalCoverage.jl). Re…

---

## [Unitful.jl | possibly mislabelled AbstractTypes, rare sametype() error | new user observations](https://discourse.julialang.org/t/unitful-jl-possibly-mislabelled-abstracttypes-rare-sametype-error-new-user-observations/86017)

<div class="topic-metadata">

**Author:** [@jlawrie](https://discourse.julialang.org/u/jlawrie)\
**Replies:** 2\
**Last updated:** [August 26, 2022, 8:02am UTC](https://discourse.julialang.org/t/unitful-jl-possibly-mislabelled-abstracttypes-rare-sametype-error-new-user-observations/86017 "2022-08-26T08:02:19Z")

</div>

Hello everyone; I have been getting the hang of the very nice Unitful.jl package recently. I really like it, and would like to take the chance to thank those in the community who develop(ed) and maintain(ed) this packag…

---

## [How to seed the KMeans algorithm in Clustering.jl?](https://discourse.julialang.org/t/how-to-seed-the-kmeans-algorithm-in-clustering-jl/86288)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 3\
**Last updated:** [August 26, 2022, 6:58am UTC](https://discourse.julialang.org/t/how-to-seed-the-kmeans-algorithm-in-clustering-jl/86288 "2022-08-26T06:58:30Z")

</div>

How do I make sure I get the same clusters everytime I run the following code: using Clustering using Random # make a random dataset with 1000 random 5-dimensional points X = rand(MersenneTwister(10),5, 1000) # cluste…

---

## [Problem setting the Local Optimizer](https://discourse.julialang.org/t/problem-setting-the-local-optimizer/86257)

<div class="topic-metadata">

**Author:** [@Yagiz\_Dereboy](https://discourse.julialang.org/u/Yagiz_Dereboy)\
**Replies:** 4\
**Last updated:** [August 26, 2022, 6:56am UTC](https://discourse.julialang.org/t/problem-setting-the-local-optimizer/86257 "2022-08-26T06:56:24Z")

</div>

I have problem with the Augmented Lagrangian Method. With my syntax algorithm does not move and gets a forced stop. I am almost sure problem is with the setting of the local optimizer. I am not very familiar with the Jul…

---

## [How do I refer to a column name with space in it in DataFramesMacro v0.3? My code doing $"name space" used to work](https://discourse.julialang.org/t/how-do-i-refer-to-a-column-name-with-space-in-it-in-dataframesmacro-v0-3-my-code-doing-name-space-used-to-work/86369)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 4:16am UTC](https://discourse.julialang.org/t/how-do-i-refer-to-a-column-name-with-space-in-it-in-dataframesmacro-v0-3-my-code-doing-name-space-used-to-work/86369 "2022-08-26T04:16:02Z")

</div>

My code is like this pings\_for\_md = @chain pings\_for\_md\_tmp begin @subset $"Games Played" \>= NGAME\_THRESHOLD end The @subset line used to work but it no longer works and I can’t find the right syntax in the doc

---

## [BilevelJuMP: Setting start values for lower level dual variables in ProductMode()](https://discourse.julialang.org/t/bileveljump-setting-start-values-for-lower-level-dual-variables-in-productmode/86272)

<div class="topic-metadata">

**Author:** [@LukasBarner](https://discourse.julialang.org/u/LukasBarner)\
**Replies:** 4\
**Last updated:** [August 26, 2022, 12:41am UTC](https://discourse.julialang.org/t/bileveljump-setting-start-values-for-lower-level-dual-variables-in-productmode/86272 "2022-08-26T00:41:06Z")

</div>

Hi everyone, I have started to use BilevelJuMP and I’m really beginning to enjoy its flexibility! I’m trying to solve a larger scale calibration problem, where the lower level is a QP with affine (in-)equality constrai…

---

## [How to give someone your code to run](https://discourse.julialang.org/t/how-to-give-someone-your-code-to-run/86357)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 11:52pm UTC](https://discourse.julialang.org/t/how-to-give-someone-your-code-to-run/86357 "2022-08-25T23:52:14Z")

</div>

Perhaps this deserves a thread of its own. Here is a really simple solution to the problem how to give someone your code to run. Visit GitHub - PetrKryslUCSD/FreeVibrationExample: Simple Example of Free Vibration Comput…

---

## [How to continuously communicate with an external program?](https://discourse.julialang.org/t/how-to-continuously-communicate-with-an-external-program/86319)

<div class="topic-metadata">

**Author:** [@ArthurW](https://discourse.julialang.org/u/ArthurW)\
**Replies:** 5\
**Last updated:** [August 25, 2022, 11:48pm UTC](https://discourse.julialang.org/t/how-to-continuously-communicate-with-an-external-program/86319 "2022-08-25T23:48:09Z")

</div>

Hi. I’m trying to write to the stdin of an external program and read from it’s stdout multiple times while it’s still executing. For example, consider this C code that indefinetly reads an integer input a and outputs a+…

---

## [How to change the line width of mean curve when plotting with Plots.jl and MonteCarloMeasurements.jl](https://discourse.julialang.org/t/how-to-change-the-line-width-of-mean-curve-when-plotting-with-plots-jl-and-montecarlomeasurements-jl/86046)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 11:37pm UTC](https://discourse.julialang.org/t/how-to-change-the-line-width-of-mean-curve-when-plotting-with-plots-jl-and-montecarlomeasurements-jl/86046 "2022-08-25T23:37:11Z")

</div>

Using plot command in MonteCarloMeasurements.jl package, I have a plot of mean function and a shaded area showing the (0.025,0.0975) quantiles. How can I change the width (or line style) of the mean curve? I tried alrea…

---

## [LSTM with convolution instead of matrix multiplication (ConvLSTM)](https://discourse.julialang.org/t/lstm-with-convolution-instead-of-matrix-multiplication-convlstm/86315)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 11:24pm UTC](https://discourse.julialang.org/t/lstm-with-convolution-instead-of-matrix-multiplication-convlstm/86315 "2022-08-25T23:24:45Z")

</div>

Hello Community I have already used Julia for many tasks but not for machine learning purposes. Now, I would need a LSTM network, which uses internal convolutional operations (not convolved matrices as input). Such a n…

---

## [Package for financial calculator type functions?](https://discourse.julialang.org/t/package-for-financial-calculator-type-functions/86361)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 10:35pm UTC](https://discourse.julialang.org/t/package-for-financial-calculator-type-functions/86361 "2022-08-25T22:35:38Z")

</div>

Suppose you want to do the kinds of things excel will do for simple financial calculations, like net present value, internal rate of return, mortgage tables, blablabla but in Julia? Is there a package that does these thi…

---

## [ANN: new version of package BifurcationKit.jl v0.2.0](https://discourse.julialang.org/t/ann-new-version-of-package-bifurcationkit-jl-v0-2-0/84743)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 8:53pm UTC](https://discourse.julialang.org/t/ann-new-version-of-package-bifurcationkit-jl-v0-2-0/84743 "2022-08-25T20:53:45Z")

</div>

Dear all, I am glad to report a new version of BifurcationKit.jl. It is a major change in the API where users are now expected to define a BifurcationProblem to perform bifurcation / continuation analysis and pass a co…

---

## [Efficient way to restrict the domain of variables?](https://discourse.julialang.org/t/efficient-way-to-restrict-the-domain-of-variables/86314)

<div class="topic-metadata">

**Author:** [@Optimization](https://discourse.julialang.org/u/Optimization)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 7:38pm UTC](https://discourse.julialang.org/t/efficient-way-to-restrict-the-domain-of-variables/86314 "2022-08-25T19:38:09Z")

</div>

Which one is more efficient in term of computational time? (I’m looking forward to read a general answer, but below is a simple example to describe the situation) Suppose you have a large network (over 1K nodes and 10K …

---

## [Counting weeks in a timeseries](https://discourse.julialang.org/t/counting-weeks-in-a-timeseries/86181)

<div class="topic-metadata">

**Author:** [@chiraganand](https://discourse.julialang.org/u/chiraganand)\
**Replies:** 7\
**Last updated:** [August 25, 2022, 6:50pm UTC](https://discourse.julialang.org/t/counting-weeks-in-a-timeseries/86181 "2022-08-25T18:50:34Z")

</div>

Hello, For one of the codes I was working on I had to count the number of unique weeks in a timeseries. I ended up using the Dates.week() function and found that the result can be incorrect in cases where the data spans…

---

## [Dict index with multiple keys versus tuple](https://discourse.julialang.org/t/dict-index-with-multiple-keys-versus-tuple/86352)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 2\
**Last updated:** [August 25, 2022, 6:38pm UTC](https://discourse.julialang.org/t/dict-index-with-multiple-keys-versus-tuple/86352 "2022-08-25T18:38:03Z")

</div>

As I struggle to scale the slopes of julia sagacity I encountered the following and the fact that it didn’t throw an error, well, threw me. julia\> Acc\_rd Dict{Tuple{Int64, Int64}, Vector{Int64}} with 12 entries: (1015…

---

## [How to create a log file storage](https://discourse.julialang.org/t/how-to-create-a-log-file-storage/86283)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [August 25, 2022, 2:46pm UTC](https://discourse.julialang.org/t/how-to-create-a-log-file-storage/86283 "2022-08-25T14:46:07Z")

</div>

I have a lot of log files, each perhaps 100 MB of size, compressed a lot less, but they also can be bigger. I would like to store them at a central location together with some meta data. It would be nice if the meta dat…

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

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