# Latest

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

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

**Page:** 949

---

## [Is it possible to get results in the form of irrationals?](https://discourse.julialang.org/t/is-it-possible-to-get-results-in-the-form-of-irrationals/85998)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 3\
**Last updated:** [August 19, 2022, 3:27pm UTC](https://discourse.julialang.org/t/is-it-possible-to-get-results-in-the-form-of-irrationals/85998 "2022-08-19T15:27:13Z")

</div>

Is it possible to get the result of a computation in the form 2pi//5 2√2//3 just like there is for Rationals?

---

## [CDF of a copula from Copulas.jl?](https://discourse.julialang.org/t/cdf-of-a-copula-from-copulas-jl/85786)

<div class="topic-metadata">

**Author:** [@HJW019](https://discourse.julialang.org/u/HJW019)\
**Replies:** 24\
**Last updated:** [August 19, 2022, 2:41pm UTC](https://discourse.julialang.org/t/cdf-of-a-copula-from-copulas-jl/85786 "2022-08-19T14:41:15Z")

</div>

I am experimenting with Copulas.jl to see if I could use it for my work. I am in general impressed. However, I found I could not get the CDF value from a joint distribution constructed by the copula. Getting the PDF valu…

---

## [\`ylabel\` and \`xlabel\` next to axes in facet plot](https://discourse.julialang.org/t/ylabel-and-xlabel-next-to-axes-in-facet-plot/86002)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 2:14pm UTC](https://discourse.julialang.org/t/ylabel-and-xlabel-next-to-axes-in-facet-plot/86002 "2022-08-19T14:14:19Z")

</div>

Is there a way in Makie.jl to “combine” the xlabel and ylabel by putting them in the middle of the axes? This would be useful for facet plots. For example, I have the following plot and I would like to avoid the dupl…

---

## [Lines on maps with PlotlyJS](https://discourse.julialang.org/t/lines-on-maps-with-plotlyjs/86000)

<div class="topic-metadata">

**Author:** [@lgo](https://discourse.julialang.org/u/lgo)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 1:54pm UTC](https://discourse.julialang.org/t/lines-on-maps-with-plotlyjs/86000 "2022-08-19T13:54:45Z")

</div>

I want to use PlotlyJS to create lines on maps as explained here. I build on the maps example from the PlotlyJS documentation to “translate” the JavaScript code into the Julia/PlotlyJS notation, but the resulting map doe…

---

## [Compat of a child package ignored](https://discourse.julialang.org/t/compat-of-a-child-package-ignored/85937)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 3\
**Last updated:** [August 19, 2022, 1:05pm UTC](https://discourse.julialang.org/t/compat-of-a-child-package-ignored/85937 "2022-08-19T13:05:40Z")

</div>

I have a couple private packages I’m developing, let’s call them Pkg A and B (which is a dependency of A). For Pkg B, I have a dependency of TerminalLoggers.jl, which I’ve just set the compat section to \[compat\] Termin…

---

## [Automatic differentiation with subset of parameters in ModelingToolkit](https://discourse.julialang.org/t/automatic-differentiation-with-subset-of-parameters-in-modelingtoolkit/85917)

<div class="topic-metadata">

**Author:** [@Antomek](https://discourse.julialang.org/u/Antomek)\
**Replies:** 6\
**Last updated:** [August 19, 2022, 1:01pm UTC](https://discourse.julialang.org/t/automatic-differentiation-with-subset-of-parameters-in-modelingtoolkit/85917 "2022-08-19T13:01:09Z")

</div>

Hello, I am building a large ODESystem using ModelingToolkit, on which I’d like to use automatic differentiation. Because it is large, there are many parameters, resulting from the many subsystems. However, I want to…

---

## [Lectureship (assistant prof) in Bristol, UK](https://discourse.julialang.org/t/lectureship-assistant-prof-in-bristol-uk/86005)

<div class="topic-metadata">

**Author:** [@dawbarton](https://discourse.julialang.org/u/dawbarton)\
**Replies:** 0\
**Last updated:** [August 19, 2022, 12:58pm UTC](https://discourse.julialang.org/t/lectureship-assistant-prof-in-bristol-uk/86005 "2022-08-19T12:58:50Z")

</div>

We’ve got a new lectureship (=assistant prof, though permanent contract) available at the University of Bristol, UK, focused on data-driven mathematical modelling for industrially-focused problems. The host department is…

---

## [Help me to plot point-normal equations of plane](https://discourse.julialang.org/t/help-me-to-plot-point-normal-equations-of-plane/86001)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 0\
**Last updated:** [August 19, 2022, 12:33pm UTC](https://discourse.julialang.org/t/help-me-to-plot-point-normal-equations-of-plane/86001 "2022-08-19T12:33:57Z")

</div>

Hi all, I am able to use and modify a bit LazySets with Plots to create 2-dimension point-normal equations of a line. using LazySets, LaTeXStrings using Plots: plot, plot!, text, lens!, bbox gr() p(args...; kwargs...) …

---

## [jUnit compatible output of tests](https://discourse.julialang.org/t/junit-compatible-output-of-tests/85999)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 12:21pm UTC](https://discourse.julialang.org/t/junit-compatible-output-of-tests/85999 "2022-08-19T12:21:49Z")

</div>

For running Julia tests on azure I was asked if my tests can produce jUnit compatible output. Any idea how to achieve that?

---

## [Plotting a Sphere with Inputs of Radius and center](https://discourse.julialang.org/t/plotting-a-sphere-with-inputs-of-radius-and-center/85978)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 4\
**Last updated:** [August 19, 2022, 12:05pm UTC](https://discourse.julialang.org/t/plotting-a-sphere-with-inputs-of-radius-and-center/85978 "2022-08-19T12:05:14Z")

</div>

Hi all, I read this forum: I want to know whether there is a way to plot a sphere based on an inputs of: radius center of the sphere (x,y,z) Instead of using sin,cos inputs. I use this code from the forum: using…

---

## [Accessing variables constructed within another function](https://discourse.julialang.org/t/accessing-variables-constructed-within-another-function/85897)

<div class="topic-metadata">

**Author:** [@structural](https://discourse.julialang.org/u/structural)\
**Replies:** 15\
**Last updated:** [August 19, 2022, 11:54am UTC](https://discourse.julialang.org/t/accessing-variables-constructed-within-another-function/85897 "2022-08-19T11:54:11Z")

</div>

I need to create many variables within a function and input these data into numerous functions which conduct operations on the data. How can I do this without declaring the variables as globals? As I understand it variab…

---

## [Vectors/matrices with units vs. units for individual entries (Unitful.jl)](https://discourse.julialang.org/t/vectors-matrices-with-units-vs-units-for-individual-entries-unitful-jl/50453)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 11:35am UTC](https://discourse.julialang.org/t/vectors-matrices-with-units-vs-units-for-individual-entries-unitful-jl/50453 "2022-08-19T11:35:42Z")

</div>

I ran into something interesting yesterday - I wrote this function to create the cross-product matrix for 3-vector (sometimes known as the tilde operator): tilde(x) = \[0 -x\[3\] x\[2\]; x\[3\] 0 -x\[1\]; -x\[2\] x\[1\] 0\] If I the…

---

## [How to increase the vertical gap between subplots in Plots.jl](https://discourse.julialang.org/t/how-to-increase-the-vertical-gap-between-subplots-in-plots-jl/85990)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 10:11am UTC](https://discourse.julialang.org/t/how-to-increase-the-vertical-gap-between-subplots-in-plots-jl/85990 "2022-08-19T10:11:13Z")

</div>

I have four subplots using MonteCarloMeasurements, Plots x = LinRange(1:0.1:3) a = 1 \\pm 0.1 b = 2 \\pm 0.3 f(x) = a\*x + b fig1 = plot(x, f.(x)) fig2 = plot(x, f.(x)) fig3 = plot(x, f.(x)) fig4 = plot(x, f.(x)) They…

---

## [How to stack a new environment over the present one?](https://discourse.julialang.org/t/how-to-stack-a-new-environment-over-the-present-one/85993)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 10:07am UTC](https://discourse.julialang.org/t/how-to-stack-a-new-environment-over-the-present-one/85993 "2022-08-19T10:07:14Z")

</div>

For example, in this sequence: (@v1.8) pkg\> activate a Activating new project at \`~/a\` julia\> Base.load\_path() 4-element Vector{String}: "/home/jishnu/a/Project.toml" "/tmp/jl\_wT5lem" "/home/jishnu/.julia/environm…

---

## [Tab-completion during readline() function call](https://discourse.julialang.org/t/tab-completion-during-readline-function-call/85420)

<div class="topic-metadata">

**Author:** [@jlawrie](https://discourse.julialang.org/u/jlawrie)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 9:58am UTC](https://discourse.julialang.org/t/tab-completion-during-readline-function-call/85420 "2022-08-19T09:58:51Z")

</div>

Hello, I observe that tab-completion is not available during calls to readline(), or at least it appears to behave this way for me. Sometimes, the user being able to use tab completion to write special characters when …

---

## [\[ANN\] TuringGLM.jl: A simple @formula macro for specifying Bayesian models in Turing.jl](https://discourse.julialang.org/t/ann-turingglm-jl-a-simple-formula-macro-for-specifying-bayesian-models-in-turing-jl/75978)

<div class="topic-metadata">

**Author:** [@Storopoli](https://discourse.julialang.org/u/Storopoli)\
**Replies:** 8\
**Last updated:** [August 19, 2022, 9:56am UTC](https://discourse.julialang.org/t/ann-turingglm-jl-a-simple-formula-macro-for-specifying-bayesian-models-in-turing-jl/75978 "2022-08-19T09:56:12Z")

</div>

I am excited to announce TuringGLM.jl! It uses the well-known @formula macro from JuliaStats ecosystem (StatsModels.jl, GLM.jl and MixedModels.jl) to specify a Bayesian model and returns a ready to be sampled/run Turing…

---

## [Inverse of symbolic matrix](https://discourse.julialang.org/t/inverse-of-symbolic-matrix/85764)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 27\
**Last updated:** [August 19, 2022, 9:32am UTC](https://discourse.julialang.org/t/inverse-of-symbolic-matrix/85764 "2022-08-19T09:32:52Z")

</div>

using Symbolics, LinearAlgebra @variables q::Real iden = collect(I(4) .\* 1.0) k = inv(iden .\* q^2) I get true/q^2 on the diagonal instead of 1/q^2

---

## [Change the color of shaded area in plotting uncertain quantity in MonteCarloMeasurements.jl](https://discourse.julialang.org/t/change-the-color-of-shaded-area-in-plotting-uncertain-quantity-in-montecarlomeasurements-jl/85956)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 2\
**Last updated:** [August 19, 2022, 8:24am UTC](https://discourse.julialang.org/t/change-the-color-of-shaded-area-in-plotting-uncertain-quantity-in-montecarlomeasurements-jl/85956 "2022-08-19T08:24:29Z")

</div>

From the following code using MonteCarloMeasurements, Plots x = LinRange(1:0.1:3) a = 1 \\pm 0.1 b = 2 \\pm 0.3 f(x) = a\*x + b plot(x, f.(x)) I obtained a plot with shaded area in light blue. How can I change this co…

---

## [\[Avoid cfunction closure\] GSL root finding problem with function passed as argument](https://discourse.julialang.org/t/avoid-cfunction-closure-gsl-root-finding-problem-with-function-passed-as-argument/85955)

<div class="topic-metadata">

**Author:** [@Norman](https://discourse.julialang.org/u/Norman)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 7:30am UTC](https://discourse.julialang.org/t/avoid-cfunction-closure-gsl-root-finding-problem-with-function-passed-as-argument/85955 "2022-08-19T07:30:25Z")

</div>

I have a usage scenario in which the functions that represent the equations for the multidimentional root-finding problem are generated in run time. I use GSL.jl to solve the root-finding problem, which requires wrapping…

---

## [DataFrames.jl vcat column data from different rows](https://discourse.julialang.org/t/dataframes-jl-vcat-column-data-from-different-rows/85809)

<div class="topic-metadata">

**Author:** [@ethomag](https://discourse.julialang.org/u/ethomag)\
**Replies:** 11\
**Last updated:** [August 19, 2022, 5:57am UTC](https://discourse.julialang.org/t/dataframes-jl-vcat-column-data-from-different-rows/85809 "2022-08-19T05:57:31Z")

</div>

I have a number of networks packets with sampled data, that is fragmented and was wondering whether de-fragmentation can be done with DataFrames or if I have to pre-process the data first ? sort!(df, \[:frame, :subframe,…

---

## [Trying to implement a Read-Write Lock, but get ConcurrencyViolationError](https://discourse.julialang.org/t/trying-to-implement-a-read-write-lock-but-get-concurrencyviolationerror/85960)

<div class="topic-metadata">

**Author:** [@taketo1024](https://discourse.julialang.org/u/taketo1024)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 5:51am UTC](https://discourse.julialang.org/t/trying-to-implement-a-read-write-lock-but-get-concurrencyviolationerror/85960 "2022-08-19T05:51:43Z")

</div>

Hello. I am trying to implement myself a (write-preferring) read-write lock in Julia, following the explanation in this article: Readers–writer lock - Wikipedia Here is the ReadWriteLocks module I wrote, module ReadWri…

---

## [Julia fails to handle properly the Git meta credential helper](https://discourse.julialang.org/t/julia-fails-to-handle-properly-the-git-meta-credential-helper/85928)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 7\
**Last updated:** [August 19, 2022, 2:32am UTC](https://discourse.julialang.org/t/julia-fails-to-handle-properly-the-git-meta-credential-helper/85928 "2022-08-19T02:32:13Z")

</div>

Julia 1.8 on Windows fails to handle properly the Git meta credential helper. In .gitconfig: \[credential "helperselector"\] selected = \<no helper\> Introduced in Git for Windows v2.23.0. I wonder if Julia is being tes…

---

## [Check whether a macro is defined](https://discourse.julialang.org/t/check-whether-a-macro-is-defined/85961)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [August 19, 2022, 2:41am UTC](https://discourse.julialang.org/t/check-whether-a-macro-is-defined/85961 "2022-08-19T02:41:10Z")

</div>

I want a function (or macro) macro\_is\_defined which will return true if and only if the macro SomeModule.@some\_macro is defined.

---

## [Catalyst.jl compositions with parameters as stoichiometric constants](https://discourse.julialang.org/t/catalyst-jl-compositions-with-parameters-as-stoichiometric-constants/85934)

<div class="topic-metadata">

**Author:** [@snystrom](https://discourse.julialang.org/u/snystrom)\
**Replies:** 4\
**Last updated:** [August 19, 2022, 2:36am UTC](https://discourse.julialang.org/t/catalyst-jl-compositions-with-parameters-as-stoichiometric-constants/85934 "2022-08-19T02:36:47Z")

</div>

I am trying to build a set of reaction models that I can compose together using Catalyst.jl, but running into a small problem. Say I want to model a system and include stoichiometric terms as parameters. For instance, t…

---

## [DiffEqParamEstim with Modellingtoolkit](https://discourse.julialang.org/t/diffeqparamestim-with-modellingtoolkit/85788)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 11\
**Last updated:** [August 19, 2022, 2:22am UTC](https://discourse.julialang.org/t/diffeqparamestim-with-modellingtoolkit/85788 "2022-08-19T02:22:52Z")

</div>

Hi I am generating a model using MTK and would like to generate a simple loss function for it. Is there a way in which I can access the observed variables in my solution when solving my problem. I know given a standar…

---

## [Announcing CoherentNoise.jl](https://discourse.julialang.org/t/announcing-coherentnoise-jl/85860)

<div class="topic-metadata">

**Author:** [@mfiano](https://discourse.julialang.org/u/mfiano)\
**Replies:** 15\
**Last updated:** [August 18, 2022, 11:46pm UTC](https://discourse.julialang.org/t/announcing-coherentnoise-jl/85860 "2022-08-18T23:46:21Z")

</div>

I am proud to announce the first version of CoherentNoise.jl, a library consisting of several coherent noise algorithms and tools to compose them into interesting pipelines. This is actually my first real package, only …

---

## [Looping over structure elements by their names](https://discourse.julialang.org/t/looping-over-structure-elements-by-their-names/85946)

<div class="topic-metadata">

**Author:** [@tradler](https://discourse.julialang.org/u/tradler)\
**Replies:** 12\
**Last updated:** [August 18, 2022, 11:17pm UTC](https://discourse.julialang.org/t/looping-over-structure-elements-by-their-names/85946 "2022-08-18T23:17:47Z")

</div>

I am wondering how to loop over the elements of a structure by their names? Big-picture, I have a structure which contains the parameters of an economic model, some of which are functions of other parameters. I would li…

---

## [Does Debian's BenchmarkGames show representative performance?](https://discourse.julialang.org/t/does-debians-benchmarkgames-show-representative-performance/80018)

<div class="topic-metadata">

**Author:** [@Volker\_Weissmann](https://discourse.julialang.org/u/Volker_Weissmann)\
**Replies:** 40\
**Last updated:** [August 18, 2022, 11:04pm UTC](https://discourse.julialang.org/t/does-debians-benchmarkgames-show-representative-performance/80018 "2022-08-18T23:04:44Z")

</div>

Source? I just measured that integrate(sin, 0, 1, 100000000) takes 960 ms in Julia, 930 ms in Rust and 73 seconds in Python. My point is that hot loops are fast in Julia and this is certainly true.

---

## [Use of nohup inside the run() command](https://discourse.julialang.org/t/use-of-nohup-inside-the-run-command/85945)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 2\
**Last updated:** [August 18, 2022, 10:52pm UTC](https://discourse.julialang.org/t/use-of-nohup-inside-the-run-command/85945 "2022-08-18T22:52:24Z")

</div>

Hello everyone! Congratulations on the release of version 1.8 of Julia, it just keeps getting better and better! I would like to ask the following question: What is the correct form of the command? run(\`nohup julia test…

---

## [Performance of collections with Functions as abstract type](https://discourse.julialang.org/t/performance-of-collections-with-functions-as-abstract-type/85929)

<div class="topic-metadata">

**Author:** [@RGon](https://discourse.julialang.org/u/RGon)\
**Replies:** 6\
**Last updated:** [August 18, 2022, 9:48pm UTC](https://discourse.julialang.org/t/performance-of-collections-with-functions-as-abstract-type/85929 "2022-08-18T21:48:11Z")

</div>

I know from the docs I should avoid containers with abstract types, however I am running into a couple of use cases where I have tag calculation objects with arbitrary functions. Base.@kwdef struct TagCalculation{T\<:Fun…

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

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