# Latest

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

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

**Page:** 1505

---

## [Assignment vs mutation with bang! functions](https://discourse.julialang.org/t/assignment-vs-mutation-with-bang-functions/54466)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 2\
**Last updated:** [February 2, 2021, 4:14pm UTC](https://discourse.julialang.org/t/assignment-vs-mutation-with-bang-functions/54466 "2021-02-02T16:14:34Z")

</div>

Hi, a question on mutating functions. If I have a function sum!(A::Matrix, B::Matrix) that adds A to B in place, due to Julia’s way of handling arrays it won’t actually overwrite B unless I call it in the following way:…

---

## [Question: Is there a function to flatten a nested dictionary?](https://discourse.julialang.org/t/question-is-there-a-function-to-flatten-a-nested-dictionary/54462)

<div class="topic-metadata">

**Author:** [@florian](https://discourse.julialang.org/u/florian)\
**Replies:** 4\
**Last updated:** [February 2, 2021, 3:08pm UTC](https://discourse.julialang.org/t/question-is-there-a-function-to-flatten-a-nested-dictionary/54462 "2021-02-02T15:08:43Z")

</div>

Hi everyone, I’m facing the following problem: Suppose I have a nested dictionary like data = Dict( "id" =\> 42, "name" =\> Dict("first" =\> "John", "last" =\> "Doe", "nick" =\> nothing)) which I want to flatten i…

---

## [A module for some additional try catch semantics](https://discourse.julialang.org/t/a-module-for-some-additional-try-catch-semantics/54465)

<div class="topic-metadata">

**Author:** [@heetbeet](https://discourse.julialang.org/u/heetbeet)\
**Replies:** 0\
**Last updated:** [February 2, 2021, 2:54pm UTC](https://discourse.julialang.org/t/a-module-for-some-additional-try-catch-semantics/54465 "2021-02-02T14:54:36Z")

</div>

Would anyone find something like this useful? I wrote it in order to scratch a bit of an itch I had, but can just as well make it a public package. The aim is to provide try-catch-finally semantics that behaves a bit lik…

---

## [Julia package documentation “Load key: invalid format”](https://discourse.julialang.org/t/julia-package-documentation-load-key-invalid-format/54461)

<div class="topic-metadata">

**Author:** [@wangjie212](https://discourse.julialang.org/u/wangjie212)\
**Replies:** 0\
**Last updated:** [February 2, 2021, 2:08pm UTC](https://discourse.julialang.org/t/julia-package-documentation-load-key-invalid-format/54461 "2021-02-02T14:08:34Z")

</div>

I followed the hosting documentation (Documenter.jl) to deploy the documentation for the TSSOS Julia package. But I got the following error in the workflow (GitHub Actions): Failed to add the RSA host key for IP addres…

---

## [Repeatedly calculating a hessian using both ForwardDiff and ReverseDiff](https://discourse.julialang.org/t/repeatedly-calculating-a-hessian-using-both-forwarddiff-and-reversediff/54051)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 3\
**Last updated:** [February 2, 2021, 1:28pm UTC](https://discourse.julialang.org/t/repeatedly-calculating-a-hessian-using-both-forwarddiff-and-reversediff/54051 "2021-02-02T13:28:52Z")

</div>

I would like to calculate a Hessian matrix of a function f:\\mathbb{R}^n \\rightarrow \\mathbb{R} where n\\gg1. In my usecase the Jacobian of f is always needed, and the Hessian may or may not be needed (but this is known be…

---

## [Best JuMP modelling technique!](https://discourse.julialang.org/t/best-jump-modelling-technique/54183)

<div class="topic-metadata">

**Author:** [@musman](https://discourse.julialang.org/u/musman)\
**Replies:** 9\
**Last updated:** [February 2, 2021, 12:32pm UTC](https://discourse.julialang.org/t/best-jump-modelling-technique/54183 "2021-02-02T12:32:04Z")

</div>

Hi all, I came across two ways of defining a same constraint in JuMP. I want to know if both ways, from the point of view of the time taken by the JuMP to model the constraint, are equivalent OR does one method leads to…

---

## [DDE parameter estimation with unknown constant delay using DiffEqFlux](https://discourse.julialang.org/t/dde-parameter-estimation-with-unknown-constant-delay-using-diffeqflux/54381)

<div class="topic-metadata">

**Author:** [@zamk](https://discourse.julialang.org/u/zamk)\
**Replies:** 2\
**Last updated:** [February 2, 2021, 12:29pm UTC](https://discourse.julialang.org/t/dde-parameter-estimation-with-unknown-constant-delay-using-diffeqflux/54381 "2021-02-02T12:29:14Z")

</div>

I am trying to estimate the parameters for a delay differential equation. One of the parameters that I try to estimate is the (constant) delay itself. Following the tutorial documentation, I wrote the following code: pr…

---

## [How to import to a Matrix data defined in the code script](https://discourse.julialang.org/t/how-to-import-to-a-matrix-data-defined-in-the-code-script/54452)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [February 2, 2021, 12:21pm UTC](https://discourse.julialang.org/t/how-to-import-to-a-matrix-data-defined-in-the-code-script/54452 "2021-02-02T12:21:07Z")

</div>

For a DataFrame I can do: coeff = CSV.read(IOBuffer(""" -400 -100 1 0 0 0 0 -300 0 1 0 0 1 0 0 0 -1 0 0 1 0 0 0 -1 0.8 0.4 0 0…

---

## [Converting CSV string values to floats (Python to Julia)](https://discourse.julialang.org/t/converting-csv-string-values-to-floats-python-to-julia/54330)

<div class="topic-metadata">

**Author:** [@George\_Korpas](https://discourse.julialang.org/u/George_Korpas)\
**Replies:** 13\
**Last updated:** [February 2, 2021, 11:23am UTC](https://discourse.julialang.org/t/converting-csv-string-values-to-floats-python-to-julia/54330 "2021-02-02T11:23:03Z")

</div>

I am very new to Julia and I am struggling with the following. I have a python hdf5 file in Python full of data and I convert it to a Python bumpy DataFrame which I then save to a csv file. Then I want to use this file i…

---

## [SciML, early works and precursors](https://discourse.julialang.org/t/sciml-early-works-and-precursors/54374)

<div class="topic-metadata">

**Author:** [@Axlrsn](https://discourse.julialang.org/u/Axlrsn)\
**Replies:** 2\
**Last updated:** [February 2, 2021, 11:08am UTC](https://discourse.julialang.org/t/sciml-early-works-and-precursors/54374 "2021-02-02T11:08:14Z")

</div>

Hi everyone! As a part of my master thesis, I’m making a literature overview of SciML and particularly tracing the origins of the approach. I appreciate any suggestions on early papers or other sources on research that…

---

## [Area under the solution curve](https://discourse.julialang.org/t/area-under-the-solution-curve/54442)

<div class="topic-metadata">

**Author:** [@vaglino](https://discourse.julialang.org/u/vaglino)\
**Replies:** 1\
**Last updated:** [February 2, 2021, 9:27am UTC](https://discourse.julialang.org/t/area-under-the-solution-curve/54442 "2021-02-02T09:27:02Z")

</div>

I am trying to calculate the integral of the solution of a differential equation and find the area under the curve. So far I numerically integrate the solution with a certain dt (see following MWE), but I was wondering …

---

## [MCMC for a customized distribution](https://discourse.julialang.org/t/mcmc-for-a-customized-distribution/54444)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 3\
**Last updated:** [February 2, 2021, 10:03am UTC](https://discourse.julialang.org/t/mcmc-for-a-customized-distribution/54444 "2021-02-02T10:03:42Z")

</div>

Is there any good package for discret sampling and supports a customized distribution?

---

## [Error while Sampling in Turing.jl](https://discourse.julialang.org/t/error-while-sampling-in-turing-jl/54441)

<div class="topic-metadata">

**Author:** [@Sourav](https://discourse.julialang.org/u/Sourav)\
**Replies:** 0\
**Last updated:** [February 2, 2021, 8:30am UTC](https://discourse.julialang.org/t/error-while-sampling-in-turing-jl/54441 "2021-02-02T08:30:46Z")

</div>

When I try to run the code given in the turing examples, using Turing using StatsPlots # Define a simple Normal model with unknown mean and variance. @model function gdemo(x, y) s ~ InverseGamma(2, 3) m ~ Normal(0,…

---

## [Condition constraint symbol on problem data](https://discourse.julialang.org/t/condition-constraint-symbol-on-problem-data/54431)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 1\
**Last updated:** [February 2, 2021, 8:12am UTC](https://discourse.julialang.org/t/condition-constraint-symbol-on-problem-data/54431 "2021-02-02T08:12:13Z")

</div>

Here is a linear program I am trying to solve: using JuMP import GLPK function LP\_example(A::Array{Int64, 2}, B::Array{Int64, 2}, c::Array{Int64, 1}) n, m = size(B) model = Model(GLPK.Optimi…

---

## ["Dequeues" vs "deques"](https://discourse.julialang.org/t/dequeues-vs-deques/54428)

<div class="topic-metadata">

**Author:** [@yesenadam](https://discourse.julialang.org/u/yesenadam)\
**Replies:** 2\
**Last updated:** [February 2, 2021, 7:30am UTC](https://discourse.julialang.org/t/dequeues-vs-deques/54428 "2021-02-02T07:30:00Z")

</div>

Am pretty new to Julia, I guess this has been discussed before. Anyway… In the Julia documentation there’s a heading Dequeues. I gather this is a variant spelling of Deques, both pronounced decks. Isn’t that needlessly …

---

## [Edit of the titles of HelpDesk-Bridges posts](https://discourse.julialang.org/t/edit-of-the-titles-of-helpdesk-bridges-posts/54419)

<div class="topic-metadata">

**Author:** [@thofma](https://discourse.julialang.org/u/thofma)\
**Replies:** 3\
**Last updated:** [February 2, 2021, 4:50am UTC](https://discourse.julialang.org/t/edit-of-the-titles-of-helpdesk-bridges-posts/54419 "2021-02-02T04:50:36Z")

</div>

It is great that one can edit the posts in the HelpDesk-Bridges category, but it would be even more helpful if one could also edit the titles. @logankilpatrick

---

## [JuliaInXL in Excel](https://discourse.julialang.org/t/juliainxl-in-excel/36196)

<div class="topic-metadata">

**Author:** [@Maicol\_Hair\_Mendo\_Co](https://discourse.julialang.org/u/Maicol_Hair_Mendo_Co)\
**Replies:** 6\
**Last updated:** [February 2, 2021, 4:16am UTC](https://discourse.julialang.org/t/juliainxl-in-excel/36196 "2021-02-02T04:16:00Z")

</div>

I have JuliaPro and I just installed the JuliaInXL package and before I got this: \*\* incremental compilation may be broken for this module \*\*. Then I stop outputting that and when I want to use the package I can’t see th…

---

## [Julia code for 1-D discrete system](https://discourse.julialang.org/t/julia-code-for-1-d-discrete-system/54403)

<div class="topic-metadata">

**Author:** [@mukherji](https://discourse.julialang.org/u/mukherji)\
**Replies:** 4\
**Last updated:** [February 2, 2021, 3:36am UTC](https://discourse.julialang.org/t/julia-code-for-1-d-discrete-system/54403 "2021-02-02T03:36:24Z")

</div>

I have a relatively straightforward one-dimensional discrete system that is a variation of the logistic equation. I cannot figure out how to create my own function in Julia. For example, how do I model x(t+1) = p\[1\]+p\[2…

---

## [Pkg: Unsatisfiable requirements detected](https://discourse.julialang.org/t/pkg-unsatisfiable-requirements-detected/22269)

<div class="topic-metadata">

**Author:** [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Replies:** 10\
**Last updated:** [February 2, 2021, 1:30am UTC](https://discourse.julialang.org/t/pkg-unsatisfiable-requirements-detected/22269 "2021-02-02T01:30:51Z")

</div>

I have this problem when trying to install AutoGrad.jl (1.1) pkg\>add AutoGrad ERROR: Unsatisfiable requirements detected for package SIUnits \[b9d75638\]: SIUnits \[b9d75638\] log: ├─possible versions are: \[0.0.1-0.0.6, 0…

---

## [‌Basic question about Threads.@threads and multithreading](https://discourse.julialang.org/t/basic-question-about-threads-threads-and-multithreading/54420)

<div class="topic-metadata">

**Author:** [@Arshia](https://discourse.julialang.org/u/Arshia)\
**Replies:** 1\
**Last updated:** [February 2, 2021, 1:01am UTC](https://discourse.julialang.org/t/basic-question-about-threads-threads-and-multithreading/54420 "2021-02-02T01:01:45Z")

</div>

Hello everybody. I’m very new to Julia. I read documents and many topics in the discourse still I’m not sure I’m doing right. I want to implement the 2 sets of equations in multi-threads. my equations something like t…

---

## [Error running the ODE tutorial script](https://discourse.julialang.org/t/error-running-the-ode-tutorial-script/54405)

<div class="topic-metadata">

**Author:** [@vikhes](https://discourse.julialang.org/u/vikhes)\
**Replies:** 3\
**Last updated:** [February 2, 2021, 12:34am UTC](https://discourse.julialang.org/t/error-running-the-ode-tutorial-script/54405 "2021-02-02T00:34:04Z")

</div>

Hi Everyone, I’m trying to run the ODE tutorial (Ordinary Differential Equations · DifferentialEquations.jl), but the code fails to run. I’m using a mac with BigSur and using vscode as the editor. I hope you can help m…

---

## [Hi! Suppose I want to code a function that returns a \`SVector\` but each component](https://discourse.julialang.org/t/hi-suppose-i-want-to-code-a-function-that-returns-a-svector-but-each-component/54372)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 9\
**Last updated:** [February 2, 2021, 12:14am UTC](https://discourse.julialang.org/t/hi-suppose-i-want-to-code-a-function-that-returns-a-svector-but-each-component/54372 "2021-02-02T00:14:23Z")

</div>

Hi! Suppose I want to code a function that returns a SVector but each component is computed inside the function without knowing the size. Should I create a MVector and then cast that to a SVector? This is what I am think…

---

## [How to get vertices in the order they are discovered in BFS?](https://discourse.julialang.org/t/how-to-get-vertices-in-the-order-they-are-discovered-in-bfs/53966)

<div class="topic-metadata">

**Author:** [@mlelarge](https://discourse.julialang.org/u/mlelarge)\
**Replies:** 1\
**Last updated:** [February 1, 2021, 10:09pm UTC](https://discourse.julialang.org/t/how-to-get-vertices-in-the-order-they-are-discovered-in-bfs/53966 "2021-02-01T22:09:24Z")

</div>

Hi, I am learning LightGraphs.jl and would like to get the list of vertices in my graph in the order they are discovered in BFS. Is there a simple way?

---

## [Format LightGraph / GraphPlot](https://discourse.julialang.org/t/format-lightgraph-graphplot/54373)

<div class="topic-metadata">

**Author:** [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Replies:** 0\
**Last updated:** [February 1, 2021, 1:35pm UTC](https://discourse.julialang.org/t/format-lightgraph-graphplot/54373 "2021-02-01T13:35:45Z")

</div>

Hi! I am experimenting with LightGraph and GraphPlot packages. Below code is a MWE which is working. So my issue is not that my below code has a bug. However, two things I cannot manage: How can I ensure that the n…

---

## [What does it mean x=-3:0.1:3?](https://discourse.julialang.org/t/what-does-it-mean-x-3-0-1-3/54394)

<div class="topic-metadata">

**Author:** [@Volodymyr\_Pakholok](https://discourse.julialang.org/u/Volodymyr_Pakholok)\
**Replies:** 3\
**Last updated:** [February 1, 2021, 8:13pm UTC](https://discourse.julialang.org/t/what-does-it-mean-x-3-0-1-3/54394 "2021-02-01T20:13:05Z")

</div>

what does it mean x = -3:0.1:3 ? How it works?

---

## [Generic way to apply function to a dimension of a matrix](https://discourse.julialang.org/t/generic-way-to-apply-function-to-a-dimension-of-a-matrix/54378)

<div class="topic-metadata">

**Author:** [@Ribeiro](https://discourse.julialang.org/u/Ribeiro)\
**Replies:** 6\
**Last updated:** [February 1, 2021, 8:01pm UTC](https://discourse.julialang.org/t/generic-way-to-apply-function-to-a-dimension-of-a-matrix/54378 "2021-02-01T20:01:43Z")

</div>

Hello! The mean function from statistics has the “dims” option, which lets me average a matrix into a vector by averaging the rows or columns. Is there a generic way to do this without for loops? Say I want to do the s…

---

## [When (likely) Julia 1.6 will be released?](https://discourse.julialang.org/t/when-likely-julia-1-6-will-be-released/51605)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 18\
**Last updated:** [February 1, 2021, 7:41pm UTC](https://discourse.julialang.org/t/when-likely-julia-1-6-will-be-released/51605 "2021-02-01T19:41:39Z")

</div>

I have a colleague that asked me help to install Julia, and I wanted to know when Julia 1.6 is likely to be released (I am afraid he get scared with the infamous time-to-first-plot issue). I understand that the correct …

---

## [Help with exporting data to .CSV](https://discourse.julialang.org/t/help-with-exporting-data-to-csv/54410)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 1\
**Last updated:** [February 1, 2021, 7:36pm UTC](https://discourse.julialang.org/t/help-with-exporting-data-to-csv/54410 "2021-02-01T19:36:44Z")

</div>

Hello everybody! I am trying to export only the numeric data of the result of the variable r to a .CSV. The model does not give an error, but I cannot export the data as I need it. I would like the data to be written …

---

## [Gnuplot.jl: errors and correlation matrix from fit?](https://discourse.julialang.org/t/gnuplot-jl-errors-and-correlation-matrix-from-fit/54411)

<div class="topic-metadata">

**Author:** [@Vasily\_Pisarev](https://discourse.julialang.org/u/Vasily_Pisarev)\
**Replies:** 0\
**Last updated:** [February 1, 2021, 7:26pm UTC](https://discourse.julialang.org/t/gnuplot-jl-errors-and-correlation-matrix-from-fit/54411 "2021-02-01T19:26:22Z")

</div>

The Gnuplot.jl manual nicely shows how to use curve-fitting feature of gnulot from Julia and get the converged fit parameters. Is it possible to get the estimated uncertainties of the parameters and the correlation matri…

---

## [How to distribute a set of private packages](https://discourse.julialang.org/t/how-to-distribute-a-set-of-private-packages/42389)

<div class="topic-metadata">

**Author:** [@danielmatz](https://discourse.julialang.org/u/danielmatz)\
**Replies:** 13\
**Last updated:** [February 1, 2021, 6:32pm UTC](https://discourse.julialang.org/t/how-to-distribute-a-set-of-private-packages/42389 "2021-02-01T18:32:07Z")

</div>

At my company, we have a private package registry and a suite of packages we’ve developed. We can’t make these packages public, but we are thinking about sharing the packages with another company. Assuming I can’t give t…

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

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