# Latest

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

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

**Page:** 982

---

## [New Bayesian Statistics tutorials with Turing](https://discourse.julialang.org/t/new-bayesian-statistics-tutorials-with-turing/60825)

<div class="topic-metadata">

**Author:** [@Storopoli](https://discourse.julialang.org/u/Storopoli)\
**Replies:** 25\
**Last updated:** [July 15, 2022, 5:56am UTC](https://discourse.julialang.org/t/new-bayesian-statistics-tutorials-with-turing/60825 "2022-07-15T05:56:49Z")

</div>

I’ve just made some Bayesian Statistics tutorials using Julia and Turing. The content is fully opensourced in GitHub and has a very permissive Creative Commons License (which means you can copy and alter the crap out it……

---

## [Can someone please explain the \`lib\` directory?](https://discourse.julialang.org/t/can-someone-please-explain-the-lib-directory/84238)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 8:27pm UTC](https://discourse.julialang.org/t/can-someone-please-explain-the-lib-directory/84238 "2022-07-14T20:27:15Z")

</div>

I see a lib directory in GitHub - JuliaArrays/ArrayInterface.jl: Designs for new Base array interface primitives, used widely through scientific machine learning (SciML) and other organizations and GitHub - SciML/Optimiz…

---

## [Problem with ImplicitEquation involving the incomplete gamma function](https://discourse.julialang.org/t/problem-with-implicitequation-involving-the-incomplete-gamma-function/84247)

<div class="topic-metadata">

**Author:** [@Dennis-Yang87](https://discourse.julialang.org/u/Dennis-Yang87)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 1:45am UTC](https://discourse.julialang.org/t/problem-with-implicitequation-involving-the-incomplete-gamma-function/84247 "2022-07-15T01:45:38Z")

</div>

Hi everyone, I am new to Julia and trying to plot an implicit function involving incomplete gamma function Q(x, a) with the code below (gamma\_inc returns a two-element tuple and I only need the second element, so the in…

---

## [ANN: JuMP-dev 2022](https://discourse.julialang.org/t/ann-jump-dev-2022/77043)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 3\
**Last updated:** [July 15, 2022, 1:32am UTC](https://discourse.julialang.org/t/ann-jump-dev-2022/77043 "2022-07-15T01:32:11Z")

</div>

Dear all, We are pleased to announce that JuMP-dev 2022 will be co-located with JuliaCon 2022, to be held virtually July 27-29 2022. The purpose of JuMP-dev is to bring together students, researchers, and practitioners…

---

## [How to get the value of an NLconstraint in JuMP](https://discourse.julialang.org/t/how-to-get-the-value-of-an-nlconstraint-in-jump/84248)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 3\
**Last updated:** [July 15, 2022, 12:52am UTC](https://discourse.julialang.org/t/how-to-get-the-value-of-an-nlconstraint-in-jump/84248 "2022-07-15T00:52:53Z")

</div>

The value(.) function accepts a ConstraintRef argument, so you can use it to print the value of a JuMP @constraint after the optimization is done. But if you have a @NLconstraint, whose type is e.g. NonlinearConstraintRe…

---

## [DAMMmodel.jl Can't Work](https://discourse.julialang.org/t/dammmodel-jl-cant-work/84101)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 14\
**Last updated:** [July 15, 2022, 12:14am UTC](https://discourse.julialang.org/t/dammmodel-jl-cant-work/84101 "2022-07-15T00:14:39Z")

</div>

Hi all, I am trying this Julia package: https://github.com/CUPofTEAproject/DAMMmodel.jl After typing \`using DAMMmodel’, I get this error: UndefVarError: DAMMfdata not defined UndefVarError: DAMMviz not defined

---

## [PythonCall pip dependency not building correctly](https://discourse.julialang.org/t/pythoncall-pip-dependency-not-building-correctly/84237)

<div class="topic-metadata">

**Author:** [@AnushaSekar](https://discourse.julialang.org/u/AnushaSekar)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 10:24pm UTC](https://discourse.julialang.org/t/pythoncall-pip-dependency-not-building-correctly/84237 "2022-07-14T22:24:32Z")

</div>

I have a python package, which I can pip install. I am trying to wrap it using PythonCall. My python package has a pyproject.toml file and it has scipy as one of its dependencies. The latest scipy seems to need a version…

---

## [Zygote and SDE failure: cannot differentiate through Lux NN](https://discourse.julialang.org/t/zygote-and-sde-failure-cannot-differentiate-through-lux-nn/84177)

<div class="topic-metadata">

**Author:** [@evolbio](https://discourse.julialang.org/u/evolbio)\
**Replies:** 5\
**Last updated:** [July 14, 2022, 10:16pm UTC](https://discourse.julialang.org/t/zygote-and-sde-failure-cannot-differentiate-through-lux-nn/84177 "2022-07-14T22:16:08Z")

</div>

I am optimizing the parameters of a differential equation with a Lux.jl neural network (NN) component, using Optimization.jl. The code for the ODE part is below. This works well when there is no stochasticity, ie, an OD…

---

## [PlotlyJS & savefig](https://discourse.julialang.org/t/plotlyjs-savefig/83637)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 4\
**Last updated:** [July 14, 2022, 8:59pm UTC](https://discourse.julialang.org/t/plotlyjs-savefig/83637 "2022-07-14T20:59:47Z")

</div>

I like the package PlotlyJS because of the good support of a secondary Y-axis. Unfortunatly, I discovered that the savefig() seems to be restricted in the number of points it can handle and I don’t know if this is a Pl…

---

## [\[ANN\] Crystalline.jl: symmetry analysis of crystals and their bands](https://discourse.julialang.org/t/ann-crystalline-jl-symmetry-analysis-of-crystals-and-their-bands/83855)

<div class="topic-metadata">

**Author:** [@tchr](https://discourse.julialang.org/u/tchr)\
**Replies:** 0\
**Last updated:** [July 6, 2022, 8:20pm UTC](https://discourse.julialang.org/t/ann-crystalline-jl-symmetry-analysis-of-crystals-and-their-bands/83855 "2022-07-06T20:20:36Z")

</div>

On and off over the past two years, I’ve been developing a package - Crystalline.jl - for “hands-on” analysis and computations involving space group theory. I never announced the result, but the paper for which I develo…

---

## [Writing to a serial port using SerialPorts.jl](https://discourse.julialang.org/t/writing-to-a-serial-port-using-serialports-jl/84236)

<div class="topic-metadata">

**Author:** [@Aditya\_Rai](https://discourse.julialang.org/u/Aditya_Rai)\
**Replies:** 4\
**Last updated:** [July 14, 2022, 7:47pm UTC](https://discourse.julialang.org/t/writing-to-a-serial-port-using-serialports-jl/84236 "2022-07-14T19:47:36Z")

</div>

Hello Everyone, I was trying to write to a device (laser) using SerialPorts.jl however there seems to be some error in my code as the device does not respond to my commands. I was able to wrtie to this device using MAT…

---

## [Replicate Pkg.jl progress bar](https://discourse.julialang.org/t/replicate-pkg-jl-progress-bar/84217)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 5\
**Last updated:** [July 14, 2022, 5:58pm UTC](https://discourse.julialang.org/t/replicate-pkg-jl-progress-bar/84217 "2022-07-14T17:58:21Z")

</div>

Hi, Is there a way to replicate exactly the progress bar of julia package manager Pkg.jl ? The progress bar appears when a project is pre-compiling the necessary libraries. It displays spinning wheels for multiple pack…

---

## [Pushforward in Enzyme.jl](https://discourse.julialang.org/t/pushforward-in-enzyme-jl/83921)

<div class="topic-metadata">

**Author:** [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Replies:** 3\
**Last updated:** [July 14, 2022, 4:37pm UTC](https://discourse.julialang.org/t/pushforward-in-enzyme-jl/83921 "2022-07-14T16:37:54Z")

</div>

Hello is there a way to obtain the pushforward of a function using Enzyme.jl? Concretely, given the function foo below, I want the enzyme to produce the function dfoo: #output in d, mutated function foo(d,c) d.=c.^…

---

## [Custom graph typing question (Graphs.jl)](https://discourse.julialang.org/t/custom-graph-typing-question-graphs-jl/84191)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 2\
**Last updated:** [July 14, 2022, 4:31pm UTC](https://discourse.julialang.org/t/custom-graph-typing-question-graphs-jl/84191 "2022-07-14T16:31:32Z")

</div>

I’ve defined a new graph type which is a subtype of Graphs.AbstractSimpleGraph to represent a grid-like structure: using Graphs mutable struct GridSpace{N, T\<:Integer} \<: Graphs.AbstractSimpleGraph{T} ne::T …

---

## [Defining an array of symbolic variables causes error with NeuralPDE.discretize()](https://discourse.julialang.org/t/defining-an-array-of-symbolic-variables-causes-error-with-neuralpde-discretize/83842)

<div class="topic-metadata">

**Author:** [@hpieper14](https://discourse.julialang.org/u/hpieper14)\
**Replies:** 7\
**Last updated:** [July 14, 2022, 4:21pm UTC](https://discourse.julialang.org/t/defining-an-array-of-symbolic-variables-causes-error-with-neuralpde-discretize/83842 "2022-07-14T16:21:37Z")

</div>

I am trying to solve a PDE with variables \[t, z1, …, zn\] using NeuralPDE.jl. Here’s my code: using Test, Flux, Optim, DiffEqFlux, Optimization using Random, NeuralPDE, DifferentialEquations using Statistics, Distributio…

---

## [How can I do list comprehension for vcat?](https://discourse.julialang.org/t/how-can-i-do-list-comprehension-for-vcat/84178)

<div class="topic-metadata">

**Author:** [@Phuntsho](https://discourse.julialang.org/u/Phuntsho)\
**Replies:** 10\
**Last updated:** [July 14, 2022, 11:20am UTC](https://discourse.julialang.org/t/how-can-i-do-list-comprehension-for-vcat/84178 "2022-07-14T11:20:22Z")

</div>

I have many 1-d lists that I want to concatenate to have a 1-d list, probably in a list comprehension style. Following is how I can achieve using explicit for-loop f = \[\] a = \[1,2,3,4,6\] b = \[3,4,5,20\] c = \[8,4,5,20\] d …

---

## [How to estimate uncertainty in a LinearMixedModel?](https://discourse.julialang.org/t/how-to-estimate-uncertainty-in-a-linearmixedmodel/84124)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 8\
**Last updated:** [July 14, 2022, 2:14pm UTC](https://discourse.julialang.org/t/how-to-estimate-uncertainty-in-a-linearmixedmodel/84124 "2022-07-14T14:14:37Z")

</div>

In this example, I want to estimate the uncertainty around the beta value for each Cut & Clarity pair. I’m not sure how to interpret the allpars data. Is it producing a single sigma shared across all values of Cut & Clar…

---

## [Create Groupedbar in Statsplot from Dataframe with dates on the x-axis](https://discourse.julialang.org/t/create-groupedbar-in-statsplot-from-dataframe-with-dates-on-the-x-axis/84108)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 12\
**Last updated:** [July 14, 2022, 2:09pm UTC](https://discourse.julialang.org/t/create-groupedbar-in-statsplot-from-dataframe-with-dates-on-the-x-axis/84108 "2022-07-14T14:09:04Z")

</div>

Hi all, I want to plot this csv: To become a groupedbar like this: With dates on the x-axis (do I need to change the format in the csv of 01.2015 / 02.2015?) I want to plot an entire column (e.g. Solar) and plo…

---

## [\[JuliaCon 2022\] Is there a program available?](https://discourse.julialang.org/t/juliacon-2022-is-there-a-program-available/84017)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [July 14, 2022, 1:25pm UTC](https://discourse.julialang.org/t/juliacon-2022-is-there-a-program-available/84017 "2022-07-14T13:25:29Z")

</div>

Could not find it yet…

---

## [Pycall is taking too much time to building and install](https://discourse.julialang.org/t/pycall-is-taking-too-much-time-to-building-and-install/84180)

<div class="topic-metadata">

**Author:** [@Risharky](https://discourse.julialang.org/u/Risharky)\
**Replies:** 3\
**Last updated:** [July 14, 2022, 12:55pm UTC](https://discourse.julialang.org/t/pycall-is-taking-too-much-time-to-building-and-install/84180 "2022-07-14T12:55:05Z")

</div>

Hi everyone I’m using Julia I am trying to install the list or manifest (file)\[DataScience/Manifest.toml at main · JuliaAcademy/DataScience · GitHub\] included the JuliaAcademy datacience course. Is it normal for the pac…

---

## [(Efficiently) construct a Dictionary from a Set](https://discourse.julialang.org/t/efficiently-construct-a-dictionary-from-a-set/83896)

<div class="topic-metadata">

**Author:** [@April-Hannah-Lena](https://discourse.julialang.org/u/April-Hannah-Lena)\
**Replies:** 15\
**Last updated:** [July 14, 2022, 11:24am UTC](https://discourse.julialang.org/t/efficiently-construct-a-dictionary-from-a-set/83896 "2022-07-14T11:24:27Z")

</div>

In our package we have some data structures that act as wrappers around Set{Int} to keep track of various index sets. We now want to insert a ‘weight’ for each item in the set, ie construct a Dict{Int,Float64}, and we wa…

---

## [Syntax error: 'invalid interpolation syntax' when using include()](https://discourse.julialang.org/t/syntax-error-invalid-interpolation-syntax-when-using-include/52732)

<div class="topic-metadata">

**Author:** [@MattWillFlood](https://discourse.julialang.org/u/MattWillFlood)\
**Replies:** 4\
**Last updated:** [July 14, 2022, 10:19am UTC](https://discourse.julialang.org/t/syntax-error-invalid-interpolation-syntax-when-using-include/52732 "2022-07-14T10:19:24Z")

</div>

Hi Guys, I’m new-ish to Julia and so far things have been great, but this syntax error has really stumped me. :man\_shrugging:t3: Here’s the background. I have several files called \_Aa.jl, \_Bb.jl, and so on. Each one…

---

## [Parameter estimation problem in Turing](https://discourse.julialang.org/t/parameter-estimation-problem-in-turing/84147)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 11\
**Last updated:** [July 14, 2022, 10:16am UTC](https://discourse.julialang.org/t/parameter-estimation-problem-in-turing/84147 "2022-07-14T10:16:35Z")

</div>

Hi, I am new to Turing PPL. I have a random variable X which is Gamma distributed, i.e., X ~Ga(α, β). And the scale β parameter of X is also obeys a Gamma law, namely, β ~ Ga(α0, β0). Then I want to infer the above par…

---

## [Finding features in irregular regions with OpenStreetMapX.jl](https://discourse.julialang.org/t/finding-features-in-irregular-regions-with-openstreetmapx-jl/84099)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 3\
**Last updated:** [July 14, 2022, 9:33am UTC](https://discourse.julialang.org/t/finding-features-in-irregular-regions-with-openstreetmapx-jl/84099 "2022-07-14T09:33:59Z")

</div>

Is there a way to restrict the boundary of OpenStreetMapX.jl to irregular polygonal regions? For example, I would like to find all the public water fountains in the 11eme arrondissement of Paris. Can this be done? Man…

---

## [Uneven grid layout in Makie.jl](https://discourse.julialang.org/t/uneven-grid-layout-in-makie-jl/84208)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 7:43am UTC](https://discourse.julialang.org/t/uneven-grid-layout-in-makie-jl/84208 "2022-07-14T07:43:41Z")

</div>

Hello everyone, I try to great a two row figure in Makie, where the first row contains 3 Axis elements and the second row only two and the plot legend. Sadly, I cannot figure out the logic behind Makie’s layout algorit…

---

## [Pre-evaluating Symbolics / ModelingToolkit expressions for a package](https://discourse.julialang.org/t/pre-evaluating-symbolics-modelingtoolkit-expressions-for-a-package/84188)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 2\
**Last updated:** [July 14, 2022, 7:28am UTC](https://discourse.julialang.org/t/pre-evaluating-symbolics-modelingtoolkit-expressions-for-a-package/84188 "2022-07-14T07:28:07Z")

</div>

I have some very large expressions (many pages of latex) that I code up manually as functions. But these functions also get processed by Symbolics and/or ModelingToolkit to create other functions and ODE problems that I…

---

## [Help with defining macros](https://discourse.julialang.org/t/help-with-defining-macros/84206)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 4\
**Last updated:** [July 14, 2022, 7:07am UTC](https://discourse.julialang.org/t/help-with-defining-macros/84206 "2022-07-14T07:07:34Z")

</div>

I have a struct as follows: @kwdef struct Node index value optional\_attribute = 0.0 end @kwdef struct Network nodes::Vector{node} = Node\[\] end Now, I can define a Network object and assign nodes to it.…

---

## [Efficient global parameters](https://discourse.julialang.org/t/efficient-global-parameters/84090)

<div class="topic-metadata">

**Author:** [@Nathaniel](https://discourse.julialang.org/u/Nathaniel)\
**Replies:** 12\
**Last updated:** [July 14, 2022, 7:01am UTC](https://discourse.julialang.org/t/efficient-global-parameters/84090 "2022-07-14T07:01:18Z")

</div>

I’m getting back into Julia after a long time not using it, so this is a fairly basic question. I have a cell in my notebook something like this: parameters = \[ \[1.0, 2,0\], \[3.0, 4.0\], \[5.0, 6.0\], \[7.0, 8.0…

---

## [How to get vector of tuples from the vector of tuples using certain conditions?](https://discourse.julialang.org/t/how-to-get-vector-of-tuples-from-the-vector-of-tuples-using-certain-conditions/84205)

<div class="topic-metadata">

**Author:** [@Phuntsho](https://discourse.julialang.org/u/Phuntsho)\
**Replies:** 2\
**Last updated:** [July 14, 2022, 4:42am UTC](https://discourse.julialang.org/t/how-to-get-vector-of-tuples-from-the-vector-of-tuples-using-certain-conditions/84205 "2022-07-14T04:42:35Z")

</div>

I have a vector containing tuples and I want to extract some tuples that meet certain conditions. I tried something as shown below but didn’t get the expected result. A = \[(1,2),(3,2),(3,4),(5,4),(3,2)\] A\_c = findall(x-\>…

---

## [Does Julia use original PCRE or PCRE2?](https://discourse.julialang.org/t/does-julia-use-original-pcre-or-pcre2/84203)

<div class="topic-metadata">

**Author:** [@ProvocaTeach](https://discourse.julialang.org/u/ProvocaTeach)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 2:36am UTC](https://discourse.julialang.org/t/does-julia-use-original-pcre-or-pcre2/84203 "2022-07-14T02:36:09Z")

</div>

Does Julia 1.7.3 use the original Perl-compatible regular expressions (PCRE) or the second version (PCRE2)? The Julia docs on regexes say Julia uses PCRE, but they link to the PCRE2 spec while making no mention of the v…

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

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