# Latest

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

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

**Page:** 1261

---

## [Julia v1.7.0-rc1 is now available](https://discourse.julialang.org/t/julia-v1-7-0-rc1-is-now-available/68278)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 8\
**Last updated:** [September 21, 2021, 2:29pm UTC](https://discourse.julialang.org/t/julia-v1-7-0-rc1-is-now-available/68278 "2021-09-21T14:29:45Z")

</div>

The Julia developers are pleased to announce that the first release candidate for Julia v1.7.0 is now available. You can download binaries at https://julialang.org/downloads in the “upcoming release” section for macOS (…

---

## [Parsing a bespoke file format](https://discourse.julialang.org/t/parsing-a-bespoke-file-format/68463)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 5\
**Last updated:** [September 21, 2021, 1:36pm UTC](https://discourse.julialang.org/t/parsing-a-bespoke-file-format/68463 "2021-09-21T13:36:19Z")

</div>

I have a text file that has the following structure begin"head" \<head1 content\> end"head" begin"body" \<body1 content\> end"body" begin"foot" \<foot1 content\> end"foot" begin"head" \<head2 content\> end"head"…

---

## [Measurements.jl: how to zero values without eliminating the uncertainty / strange behavior with deepcopy](https://discourse.julialang.org/t/measurements-jl-how-to-zero-values-without-eliminating-the-uncertainty-strange-behavior-with-deepcopy/68221)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 22\
**Last updated:** [September 21, 2021, 1:34pm UTC](https://discourse.julialang.org/t/measurements-jl-how-to-zero-values-without-eliminating-the-uncertainty-strange-behavior-with-deepcopy/68221 "2021-09-21T13:34:10Z")

</div>

I have the following scenario: I want to propagate the uncertainty of the positions of particles in a simulation. At each time step, I compute the forces, a computation that starts with setting the forces to zero. The co…

---

## [Assortativity coeficient in network analysis](https://discourse.julialang.org/t/assortativity-coeficient-in-network-analysis/68425)

<div class="topic-metadata">

**Author:** [@emchateau](https://discourse.julialang.org/u/emchateau)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 12:48pm UTC](https://discourse.julialang.org/t/assortativity-coeficient-in-network-analysis/68425 "2021-09-21T12:48:22Z")

</div>

Hi, For a network analysis, we are looking to calculate an assortativity coefficient or assortative mixing coefficient of a graph to state the homophily between two categories of nodes. LightGraphs have a assortativity …

---

## [Absolute value, abs(), on Gurobi solver](https://discourse.julialang.org/t/absolute-value-abs-on-gurobi-solver/68493)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 3\
**Last updated:** [September 21, 2021, 12:49pm UTC](https://discourse.julialang.org/t/absolute-value-abs-on-gurobi-solver/68493 "2021-09-21T12:49:48Z")

</div>

Hi all, is there a way to use absolute value e.g. abs(x) with JuMP/Gurobi? It seems like Gurobi supports it (see: https://www.gurobi.com/documentation/9.1/refman/py\_abs\_.html), but abs(x) is linked with a NLconstraint w…

---

## [Julia analogue of Python \`shelve\` module?](https://discourse.julialang.org/t/julia-analogue-of-python-shelve-module/68467)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 11:52am UTC](https://discourse.julialang.org/t/julia-analogue-of-python-shelve-module/68467 "2021-09-21T11:52:28Z")

</div>

Do we have something similar to: 12.3. shelve — Python object persistence Warning: Because the shelve module is backed by pickle, it is insecure to load a shelf from an untrusted source. Like with pickle, loading a …

---

## [CellListMap.jl: Is it suitable for detecting collision of particles?](https://discourse.julialang.org/t/celllistmap-jl-is-it-suitable-for-detecting-collision-of-particles/68428)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 5\
**Last updated:** [September 21, 2021, 11:43am UTC](https://discourse.julialang.org/t/celllistmap-jl-is-it-suitable-for-detecting-collision-of-particles/68428 "2021-09-21T11:43:29Z")

</div>

@lmiq I am trying to implement a naive algorithm to generate a Self-Avoiding Walk. At present I use following O(N^2) algorithm to check whether two beads are colloiding. using Random using CellListMap function random\_v…

---

## [How to measure execution time of entire jupyter notebook comprising of different cells in JULIA?](https://discourse.julialang.org/t/how-to-measure-execution-time-of-entire-jupyter-notebook-comprising-of-different-cells-in-julia/68517)

<div class="topic-metadata">

**Author:** [@H\_Shrestha](https://discourse.julialang.org/u/H_Shrestha)\
**Replies:** 4\
**Last updated:** [September 21, 2021, 10:26am UTC](https://discourse.julialang.org/t/how-to-measure-execution-time-of-entire-jupyter-notebook-comprising-of-different-cells-in-julia/68517 "2021-09-21T10:26:54Z")

</div>

have a script written in JULIA language in Jupyter notebook. The script is divided into different cells. I’d like to calculate the execution time of not only a single line or cell, but the entire script comprising all th…

---

## [Package management](https://discourse.julialang.org/t/package-management/68513)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 9:26am UTC](https://discourse.julialang.org/t/package-management/68513 "2021-09-21T09:26:33Z")

</div>

Hi there, this is my first question to the community. I am trying to understand how the package management facility and Project.toml? First, does this file, Project.toml, play the same functionality of virtualenv in Pyt…

---

## [Plot a graph with specific sub labels](https://discourse.julialang.org/t/plot-a-graph-with-specific-sub-labels/68491)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 8\
**Last updated:** [September 21, 2021, 8:02am UTC](https://discourse.julialang.org/t/plot-a-graph-with-specific-sub-labels/68491 "2021-09-21T08:02:09Z")

</div>

I need plot something with a particular axis labels. More specifically, sub-labels. First, I’m gointo to plot the standar plot: tg = 0:0.001:0.7 points = rand(size(tg)\[1\]) sublabels = fill("Julia", size(tg)\[1\] ) tab …

---

## [Inheriting package dependencies in test environment](https://discourse.julialang.org/t/inheriting-package-dependencies-in-test-environment/68505)

<div class="topic-metadata">

**Author:** [@madhavkrishnan](https://discourse.julialang.org/u/madhavkrishnan)\
**Replies:** 3\
**Last updated:** [September 21, 2021, 7:12am UTC](https://discourse.julialang.org/t/inheriting-package-dependencies-in-test-environment/68505 "2021-09-21T07:12:46Z")

</div>

I am trying to write a test module for a package I am developing. However it looks like I don’t understand exactly how to set it up. My understanding was that the test environment would automatically inherit the packages…

---

## [Change font of Julia Workspace in VS Code](https://discourse.julialang.org/t/change-font-of-julia-workspace-in-vs-code/68501)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 5\
**Last updated:** [September 21, 2021, 6:54am UTC](https://discourse.julialang.org/t/change-font-of-julia-workspace-in-vs-code/68501 "2021-09-21T06:54:36Z")

</div>

I changed the font of the VS Code editor to JuliaMono, now I want to change the font of the Julia Workspace. I use a lot of unicode characters and they glyphs in the workspace look different than the ones in the editor. …

---

## [Cannot use package from system image without first adding it to the environment?](https://discourse.julialang.org/t/cannot-use-package-from-system-image-without-first-adding-it-to-the-environment/68507)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 6:54am UTC](https://discourse.julialang.org/t/cannot-use-package-from-system-image-without-first-adding-it-to-the-environment/68507 "2021-09-21T06:54:16Z")

</div>

So, I have created a system image using PackageCompiler.jl with Plots. When I start julia with this system image, it cannot find the Plots package unless I also add Plots to my project environment. I thought the package …

---

## [How can I prevent the memory distributed in Julia?](https://discourse.julialang.org/t/how-can-i-prevent-the-memory-distributed-in-julia/68426)

<div class="topic-metadata">

**Author:** [@Lyupinpin](https://discourse.julialang.org/u/Lyupinpin)\
**Replies:** 8\
**Last updated:** [September 20, 2021, 8:18pm UTC](https://discourse.julialang.org/t/how-can-i-prevent-the-memory-distributed-in-julia/68426 "2021-09-20T20:18:11Z")

</div>

I want to use julia to write a code parallel reading data from txt file and saved into a big matrix. However, I found the matrix seems to be distributed to each CPU and I need each CPU to be tremedous big. How can I pre…

---

## [Who "Symbolics.jl" is for?](https://discourse.julialang.org/t/who-symbolics-jl-is-for/68458)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [September 20, 2021, 8:01pm UTC](https://discourse.julialang.org/t/who-symbolics-jl-is-for/68458 "2021-09-20T20:01:14Z")

</div>

Just a generic question on who is the target user for the Symbolics.jl package. I had a quick look on it, looking to find some alternative to the python-based SymPy (and the SymPy.jl wrapper), but I have now doubts if t…

---

## [Problem computing Jacobian with Symbolics.jl 3.3](https://discourse.julialang.org/t/problem-computing-jacobian-with-symbolics-jl-3-3/68336)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 5\
**Last updated:** [September 20, 2021, 7:59pm UTC](https://discourse.julialang.org/t/problem-computing-jacobian-with-symbolics-jl-3-3/68336 "2021-09-20T19:59:39Z")

</div>

I’m using Julia v.1.6.2 and the package Symbolic v.3.3. I have a simple script to compute that Jacobian that gives an error: typeusing Symbolics using LinearAlgebra renormI(x) = x ./ x\[\[end\],:\] homogenize(x) = \[x; o…

---

## [Using Symbolics to simplify Boolean algebra](https://discourse.julialang.org/t/using-symbolics-to-simplify-boolean-algebra/68473)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 7:31pm UTC](https://discourse.julialang.org/t/using-symbolics-to-simplify-boolean-algebra/68473 "2021-09-20T19:31:58Z")

</div>

Dear All, I would like to ask, if it would be possible to use Symbolics to simplify Boolean rules. For example using Symbolics x = SymbolicUtils.Sym{Real}(:x) simplify((x \> 1) & (x \> 2)) should return (x \> 1)? Or am…

---

## [ModelingToolkit parameter fit: keep some parameters fixed](https://discourse.julialang.org/t/modelingtoolkit-parameter-fit-keep-some-parameters-fixed/67760)

<div class="topic-metadata">

**Author:** [@misa](https://discourse.julialang.org/u/misa)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 7:22pm UTC](https://discourse.julialang.org/t/modelingtoolkit-parameter-fit-keep-some-parameters-fixed/67760 "2021-09-20T19:22:12Z")

</div>

I am trying to fit parameters in a ModelingToolkit model using DiffEqParamEstim. This works well when fitting all parameters contained in the model, but I would like to keep some of them fixed. For example, in the follow…

---

## [Is there anything similar to "..." in Matlab to write a Matrix over several lines?](https://discourse.julialang.org/t/is-there-anything-similar-to-in-matlab-to-write-a-matrix-over-several-lines/68490)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 5:50pm UTC](https://discourse.julialang.org/t/is-there-anything-similar-to-in-matlab-to-write-a-matrix-over-several-lines/68490 "2021-09-20T17:50:29Z")

</div>

I there a way in julia to write similar to the below in Matlab? L = \[1 2 3;... 4 5 6;... 7 8 9\];

---

## [Pkg.precompile error - exception during pkg\> update](https://discourse.julialang.org/t/pkg-precompile-error-exception-during-pkg-update/68482)

<div class="topic-metadata">

**Author:** [@Toxiro](https://discourse.julialang.org/u/Toxiro)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 5:15pm UTC](https://discourse.julialang.org/t/pkg-precompile-error-exception-during-pkg-update/68482 "2021-09-20T17:15:09Z")

</div>

Hello everybody, I am updating the packages in the Julia v1.6 pkg\> REPL and during precompilation I get the following stacktrace error: (@v1.6) pkg\> update Updating registry at ~/.julia/registries/General Installed D…

---

## [Help with Normal Distribution](https://discourse.julialang.org/t/help-with-normal-distribution/68486)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 5:07pm UTC](https://discourse.julialang.org/t/help-with-normal-distribution/68486 "2021-09-20T17:07:51Z")

</div>

Because when I compile my model I get the following error message: MethodError: no method matching Normal(; μ=0.16, σ=0.05) using JuMP, Gurobi, Random, Distributions Modelmathematical = Model(Gurobi.Optimizer) a = 280…

---

## [LoadError: UndefVarError: model not defined](https://discourse.julialang.org/t/loaderror-undefvarerror-model-not-defined/68465)

<div class="topic-metadata">

**Author:** [@sbacelar](https://discourse.julialang.org/u/sbacelar)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 5:03pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror-model-not-defined/68465 "2021-09-20T17:03:05Z")

</div>

When trying to run the example schoolyard.jl from Agents.jl I have this problem in the last line: fig, \_, \_ = abm\_data\_exploration(model, agent\_step!, dummystep, sliders; static\_preplot!)

---

## [Latex Output from MixedModels.jl](https://discourse.julialang.org/t/latex-output-from-mixedmodels-jl/54797)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 3:17pm UTC](https://discourse.julialang.org/t/latex-output-from-mixedmodels-jl/54797 "2021-09-20T15:17:22Z")

</div>

I was wondering if there is a LaTeX table package that supports MixedModels.jl similar to RegressionTables.jl for FixedEffectModels? I have hacked something together usint PrettyTables.jl in case there is not: function…

---

## [How to interact with a Julia process inside a Julia process](https://discourse.julialang.org/t/how-to-interact-with-a-julia-process-inside-a-julia-process/68460)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 2:42pm UTC](https://discourse.julialang.org/t/how-to-interact-with-a-julia-process-inside-a-julia-process/68460 "2021-09-20T14:42:48Z")

</div>

I want to measure compilation and TTFP latencies. So my idea was to run different scripts in fresh Julia processes which I start from a main Julia process so that each time Julia has to reliably compile everything anew. …

---

## [Sparse BLAS-like functionality](https://discourse.julialang.org/t/sparse-blas-like-functionality/68354)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 6\
**Last updated:** [September 20, 2021, 2:33pm UTC](https://discourse.julialang.org/t/sparse-blas-like-functionality/68354 "2021-09-20T14:33:16Z")

</div>

Looks interesting: http://librsb.sourceforge.net/ Decent speedups. No Julia interface at this point.

---

## [Constructor with multiple parametric arguments](https://discourse.julialang.org/t/constructor-with-multiple-parametric-arguments/68449)

<div class="topic-metadata">

**Author:** [@luchino\_96](https://discourse.julialang.org/u/luchino_96)\
**Replies:** 6\
**Last updated:** [September 20, 2021, 2:27pm UTC](https://discourse.julialang.org/t/constructor-with-multiple-parametric-arguments/68449 "2021-09-20T14:27:49Z")

</div>

Hi, I encounter a bizzare behaviour for an inner constructor of a struct, and I am trying to understand what is happening. The first attempt was the following struct Log\_Float{T \<: Integer, S \<: Number} sign::T #…

---

## [How does Julia stack up to Python, its and e.g. C++ standard library?](https://discourse.julialang.org/t/how-does-julia-stack-up-to-python-its-and-e-g-c-standard-library/68455)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 1:23pm UTC](https://discourse.julialang.org/t/how-does-julia-stack-up-to-python-its-and-e-g-c-standard-library/68455 "2021-09-20T13:23:14Z")

</div>

\[EDIT: I answered my own question in a comment below, the Python standard library doesn’t seem to have anything important for general programming missing in the Julia ecosystem. If you can think on an exception, please c…

---

## [Adding a NamedTuple to DataFrame row](https://discourse.julialang.org/t/adding-a-namedtuple-to-dataframe-row/68447)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 11\
**Last updated:** [September 20, 2021, 1:59pm UTC](https://discourse.julialang.org/t/adding-a-namedtuple-to-dataframe-row/68447 "2021-09-20T13:59:02Z")

</div>

I have a simulation model that iteratively produces NamedTuples which I want to aggregate (summing) to a DataFrame. Only a portion of the columns are updated, as I keep statistics for different simulation periods (years)…

---

## [Promote with "minimum" type](https://discourse.julialang.org/t/promote-with-minimum-type/68464)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 1:50pm UTC](https://discourse.julialang.org/t/promote-with-minimum-type/68464 "2021-09-20T13:50:10Z")

</div>

Is there a particular way to promote a group of variables while specifying a “minimum” type? For example, I find myself using x, y, \_ = promote(x, y, 1.0) to ensure that x and y have the same type and that the type is …

---

## [Numerical analysis course with Julia](https://discourse.julialang.org/t/numerical-analysis-course-with-julia/34215)

<div class="topic-metadata">

**Author:** [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Replies:** 8\
**Last updated:** [September 20, 2021, 11:47am UTC](https://discourse.julialang.org/t/numerical-analysis-course-with-julia/34215 "2021-09-20T11:47:09Z")

</div>

In case it’s of interest, this semester I am teaching the undergraduate numerical analysis course (course code 18.330) at MIT, using Julia. Slides, notebooks and screen recordings are available at Comments are, of cou…

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

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