# Latest

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

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

**Page:** 1380

---

## [Factors for regression models in julia](https://discourse.julialang.org/t/factors-for-regression-models-in-julia/61836)

<div class="topic-metadata">

**Author:** [@Babou](https://discourse.julialang.org/u/Babou)\
**Replies:** 5\
**Last updated:** [May 26, 2021, 8:35pm UTC](https://discourse.julialang.org/t/factors-for-regression-models-in-julia/61836 "2021-05-26T20:35:50Z")

</div>

I want to build a linear mixed model in Julia but the R code I am basing it on requires the use of factors for the model. I came across a stackoverflow post on just this topic but it was from 2017 and I am hoping ther…

---

## [Is there a workaround to render symbols from Symbolics.jl in Pluto.jl](https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 4\
**Last updated:** [May 26, 2021, 8:27pm UTC](https://discourse.julialang.org/t/is-there-a-workaround-to-render-symbols-from-symbolics-jl-in-pluto-jl/61198 "2021-05-26T20:27:35Z")

</div>

When I use Symbolics.jl in Pluto.jl I get an invalid latex expression (at least for Mathjax). Is there a workaround to remove the text part from the output? I basically makes Symbolics.jl very bothersome to use. I …

---

## [Modeling Thermodynamic System in MTK](https://discourse.julialang.org/t/modeling-thermodynamic-system-in-mtk/61095)

<div class="topic-metadata">

**Author:** [@mbologna](https://discourse.julialang.org/u/mbologna)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 8:21pm UTC](https://discourse.julialang.org/t/modeling-thermodynamic-system-in-mtk/61095 "2021-05-26T20:21:44Z")

</div>

I’m working on converting an existing Julia model using DifferentialEquations.jl and solving Stiff ODEs to using MTK. There seems to be some nuance to setting up ODESystems that I don’t understand. I’m modeling pressure …

---

## [\[ANN\] ParallelKMeans v1.0.0 - KMeans In Super Sonic Mode](https://discourse.julialang.org/t/ann-parallelkmeans-v1-0-0-kmeans-in-super-sonic-mode/61786)

<div class="topic-metadata">

**Author:** [@PyDataBlog](https://discourse.julialang.org/u/PyDataBlog)\
**Replies:** 16\
**Last updated:** [May 26, 2021, 7:16pm UTC](https://discourse.julialang.org/t/ann-parallelkmeans-v1-0-0-kmeans-in-super-sonic-mode/61786 "2021-05-26T19:16:54Z")

</div>

Hello everyone. We are finally ready to announce ParallelKMeans is finally and stable enough for daily use. Before I go into the details of this package, I would like to apologize to @Skoffer for the little commotion my…

---

## [Tree Hash Mismatch while installing JLD on Julia 1.6.1](https://discourse.julialang.org/t/tree-hash-mismatch-while-installing-jld-on-julia-1-6-1/61804)

<div class="topic-metadata">

**Author:** [@mkolar](https://discourse.julialang.org/u/mkolar)\
**Replies:** 5\
**Last updated:** [May 26, 2021, 7:13pm UTC](https://discourse.julialang.org/t/tree-hash-mismatch-while-installing-jld-on-julia-1-6-1/61804 "2021-05-26T19:13:02Z")

</div>

I’ve just downloaded Julia Version 1.6.1 (2021-04-23) on a cluster and run into a Tree Hash Mismatch when installing JLD package. (@v1.6) pkg\> add JLD Updating registry at \`~/.julia/registries/General\` Resolving …

---

## [ModelingToolkit with DataInterpolation in time-varying external force](https://discourse.julialang.org/t/modelingtoolkit-with-datainterpolation-in-time-varying-external-force/61859)

<div class="topic-metadata">

**Author:** [@lnacquaroli](https://discourse.julialang.org/u/lnacquaroli)\
**Replies:** 4\
**Last updated:** [May 26, 2021, 6:40pm UTC](https://discourse.julialang.org/t/modelingtoolkit-with-datainterpolation-in-time-varying-external-force/61859 "2021-05-26T18:40:00Z")

</div>

Hi there, I’m trying to get to work the simple example of an ODE with the external varying force with a DataInterpolation function, but I get an error building the ODESystem. The example is as follow: using ModelingTool…

---

## [How to show edges in mesh plot in Makie?](https://discourse.julialang.org/t/how-to-show-edges-in-mesh-plot-in-makie/61820)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 6\
**Last updated:** [May 26, 2021, 6:19pm UTC](https://discourse.julialang.org/t/how-to-show-edges-in-mesh-plot-in-makie/61820 "2021-05-26T18:19:32Z")

</div>

From the documentation, it is easy to plot a mesh given an array of coordinates and an array of connectivities: using GLMakie coords = \[ 0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0 \] connec = \[ 1 2 3 3 4 1 \] mesh(coo…

---

## [Keyword Arguments](https://discourse.julialang.org/t/keyword-arguments/61870)

<div class="topic-metadata">

**Author:** [@saraflgarcia](https://discourse.julialang.org/u/saraflgarcia)\
**Replies:** 9\
**Last updated:** [May 26, 2021, 6:31pm UTC](https://discourse.julialang.org/t/keyword-arguments/61870 "2021-05-26T18:31:36Z")

</div>

How do we get the number (and/or name) of keyword arguments of a function? For instance, f(;x, y, z) = x+y+z arguments(f) Thanks!

---

## [Can't create a struct with a macro from a string of types](https://discourse.julialang.org/t/cant-create-a-struct-with-a-macro-from-a-string-of-types/61876)

<div class="topic-metadata">

**Author:** [@emanuellima](https://discourse.julialang.org/u/emanuellima)\
**Replies:** 4\
**Last updated:** [May 26, 2021, 6:15pm UTC](https://discourse.julialang.org/t/cant-create-a-struct-with-a-macro-from-a-string-of-types/61876 "2021-05-26T18:15:04Z")

</div>

Hello. I am trying to create a struct through a macro with types that will be know at runtime. It would work something like this: the user would pass a string “a::A b::B” and the macro would create a struct: struct MySt…

---

## [Lacking keys/values in a dictionary](https://discourse.julialang.org/t/lacking-keys-values-in-a-dictionary/61809)

<div class="topic-metadata">

**Author:** [@bonnkleiford](https://discourse.julialang.org/u/bonnkleiford)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 5:34pm UTC](https://discourse.julialang.org/t/lacking-keys-values-in-a-dictionary/61809 "2021-05-26T17:34:08Z")

</div>

I have 3 dictionaries, A and B: A = Dict("1" =\> 0.1 "3" =\> 0.1 "5" =\> 0.1 "7" =\> 0.1 "9" =\> 0.1 "11" =\> 0.1 "13" =\> 0.1 "15" =\> 0.1 "17" =\> 0.1 "19" =\> 0.1) B = Dict("1" =\> 0.2 "5" =\> 0.1 "…

---

## [Catalyst: weird interaction between user defined functions, arrays and Num](https://discourse.julialang.org/t/catalyst-weird-interaction-between-user-defined-functions-arrays-and-num/61867)

<div class="topic-metadata">

**Author:** [@Alex0](https://discourse.julialang.org/u/Alex0)\
**Replies:** 0\
**Last updated:** [May 26, 2021, 4:18pm UTC](https://discourse.julialang.org/t/catalyst-weird-interaction-between-user-defined-functions-arrays-and-num/61867 "2021-05-26T16:18:19Z")

</div>

Hello everyone, I am currently trying to create a chemical network in Catalyst.jl using my own functions as reaction rates. These functions are provided species of the network as input arguments and then need to use if …

---

## [GitHub Actions: Cairo fails to build](https://discourse.julialang.org/t/github-actions-cairo-fails-to-build/61826)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 3:13pm UTC](https://discourse.julialang.org/t/github-actions-cairo-fails-to-build/61826 "2021-05-26T15:13:05Z")

</div>

Can’t figure out why. There appears to be issues compiling HarfBuzz\_jll , Pango\_jll , then eventually Cairo. Here is a link to a sample run demonstrating this issue: → https://github.com/ma-laforge/InspectDR.jl/runs/2…

---

## [I'm afraid the searching of the documentation needs a bit of work](https://discourse.julialang.org/t/im-afraid-the-searching-of-the-documentation-needs-a-bit-of-work/61860)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 3:01pm UTC](https://discourse.julialang.org/t/im-afraid-the-searching-of-the-documentation-needs-a-bit-of-work/61860 "2021-05-26T15:01:40Z")

</div>

Clearly, I would have appreciated some links that actually refer to Manifest.toml. The first one does not, at all.

---

## [When you don't assign a variable in the inner constructor, how does it get assigned](https://discourse.julialang.org/t/when-you-dont-assign-a-variable-in-the-inner-constructor-how-does-it-get-assigned/61852)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 7\
**Last updated:** [May 26, 2021, 2:49pm UTC](https://discourse.julialang.org/t/when-you-dont-assign-a-variable-in-the-inner-constructor-how-does-it-get-assigned/61852 "2021-05-26T14:49:55Z")

</div>

Consider the following code: struct Employee ID::Int32 name::String end and I can create an object and call any field: svetlana = Employee(1,"Queen Svetlana") println(svetlana.name) If I require validation, …

---

## [Accessing vector fields](https://discourse.julialang.org/t/accessing-vector-fields/61857)

<div class="topic-metadata">

**Author:** [@francesco123212](https://discourse.julialang.org/u/francesco123212)\
**Replies:** 9\
**Last updated:** [May 26, 2021, 2:27pm UTC](https://discourse.julialang.org/t/accessing-vector-fields/61857 "2021-05-26T14:27:08Z")

</div>

Hi everyone, hope you are all healthy. I’m a mechanical engineering student and I come from MATLAB, so I am sorry for my heresies. I currently am working on a NASTRAN .hdf5 output. There is a package to open such file…

---

## [Julia Interop / FFI / Smalltalk](https://discourse.julialang.org/t/julia-interop-ffi-smalltalk/61854)

<div class="topic-metadata">

**Author:** [@threadedblue](https://discourse.julialang.org/u/threadedblue)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 2:06pm UTC](https://discourse.julialang.org/t/julia-interop-ffi-smalltalk/61854 "2021-05-26T14:06:10Z")

</div>

I have come up with a need to call Julia from–wait for it–SmallTalk. If you are familiar with Pharo or Squeak, that’s where I want to call from–mostly from Pharo. I see that Pharo supports FFI, but the docs focus mostl…

---

## [Nagging coverage question](https://discourse.julialang.org/t/nagging-coverage-question/61821)

<div class="topic-metadata">

**Author:** [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Replies:** 1\
**Last updated:** [May 26, 2021, 1:51pm UTC](https://discourse.julialang.org/t/nagging-coverage-question/61821 "2021-05-26T13:51:54Z")

</div>

Ok, so, compare the following two macros: macro adds\_more\_lines\_1() quote nothing end end macro adds\_more\_lines\_2() result = quote nothing end result.args\[1\] = \_\_source\_\_ …

---

## [Finding types of combined variables to initialise arrays](https://discourse.julialang.org/t/finding-types-of-combined-variables-to-initialise-arrays/61837)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 1:13pm UTC](https://discourse.julialang.org/t/finding-types-of-combined-variables-to-initialise-arrays/61837 "2021-05-26T13:13:55Z")

</div>

I recently removed all concrete types from my code with the goal to use autodiff for gradients. In doing so I was faced with a difficulty, to initialise arrays with a type inferred from input parameters. I worked around …

---

## [How to obtain the critical value F0 of a F-distribution?](https://discourse.julialang.org/t/how-to-obtain-the-critical-value-f0-of-a-f-distribution/36448)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 12:16pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-critical-value-f0-of-a-f-distribution/36448 "2021-05-26T12:16:50Z")

</div>

Hi, I am not statistician and I need some advises to do a statistical test in Julia. I would like to obtain the critical value F0 of a F-distribution available for example in these tables I read the Distributions.jl d…

---

## [How do I find the size of a file?](https://discourse.julialang.org/t/how-do-i-find-the-size-of-a-file/61845)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 11:14am UTC](https://discourse.julialang.org/t/how-do-i-find-the-size-of-a-file/61845 "2021-05-26T11:14:20Z")

</div>

Hello, I have a file (“path/to/my/file/myfile”), and I wishes to know its size. I try filesize("path/to/my/file/myfile") but only get 0 in output (which definitely is not its size). How do I get the filesize?

---

## [Julia VS Code: Get output in file rather than in the console](https://discourse.julialang.org/t/julia-vs-code-get-output-in-file-rather-than-in-the-console/61846)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 11:09am UTC](https://discourse.julialang.org/t/julia-vs-code-get-output-in-file-rather-than-in-the-console/61846 "2021-05-26T11:09:33Z")

</div>

Hello, when I run a line using Alt+Enter in VS Code I get the output in the Julia Console. I know there’s an option to instead get it to display in-line in the file, but I cannot find it. What is the option called?

---

## [Passing method arguments: Tuple vs Dict](https://discourse.julialang.org/t/passing-method-arguments-tuple-vs-dict/61755)

<div class="topic-metadata">

**Author:** [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Replies:** 10\
**Last updated:** [May 26, 2021, 5:53am UTC](https://discourse.julialang.org/t/passing-method-arguments-tuple-vs-dict/61755 "2021-05-26T05:53:25Z")

</div>

What am I missing? """ A struct to hold parameters """ struct P a :: Float64 b :: Vector{Float64} end """ A method to update the parameters """ function P(; a = 0.0, b = \[0.0, 0.0\]) P(a, b) end Create …

---

## [Sensitivities with respect to initial conditions in DifferentialEquations.jl](https://discourse.julialang.org/t/sensitivities-with-respect-to-initial-conditions-in-differentialequations-jl/25555)

<div class="topic-metadata">

**Author:** [@rjpower4](https://discourse.julialang.org/u/rjpower4)\
**Replies:** 17\
**Last updated:** [May 26, 2021, 10:36am UTC](https://discourse.julialang.org/t/sensitivities-with-respect-to-initial-conditions-in-differentialequations-jl/25555 "2021-05-26T10:36:11Z")

</div>

For my research, I perform many differential corrections processes. Often times, for these processes I want the transition matrix, \\Phi(t\_1, t\_0), which is obtained by propagating the linearization of the system alongsid…

---

## [How to increase gap between axis title and axis in PlotlyJS?](https://discourse.julialang.org/t/how-to-increase-gap-between-axis-title-and-axis-in-plotlyjs/61798)

<div class="topic-metadata">

**Author:** [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 10:16am UTC](https://discourse.julialang.org/t/how-to-increase-gap-between-axis-title-and-axis-in-plotlyjs/61798 "2021-05-26T10:16:07Z")

</div>

Is there any parameter in PlotlyBase to set the gap between title of axis and axis. Typically with log scaled axis my axis title (for y axis) is overlapping with “numbers”.

---

## [Font of annotations?](https://discourse.julialang.org/t/font-of-annotations/14998)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 9:24am UTC](https://discourse.julialang.org/t/font-of-annotations/14998 "2021-05-26T09:24:27Z")

</div>

dear Plots wizards—how do I set the font (size) of annotations? using Plots y= 2:20; x=2:20; f(x,y)=x+y; annotations= \[ (x\[i\],y\[j\],round(f(x\[i\],y\[j\]),digits=2)) for i=1:length(x) for j=1:length(y)\]; plot( ; annotations=…

---

## [Plots.jl PGFplotsX backend is a massive boon for Julia](https://discourse.julialang.org/t/plots-jl-pgfplotsx-backend-is-a-massive-boon-for-julia/61699)

<div class="topic-metadata">

**Author:** [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Replies:** 12\
**Last updated:** [May 26, 2021, 7:36am UTC](https://discourse.julialang.org/t/plots-jl-pgfplotsx-backend-is-a-massive-boon-for-julia/61699 "2021-05-26T07:36:39Z")

</div>

There’s a lot of talk of Makie replacing plots.jl. I get it. I’ve just started using Makie and I think it’s great. However, I’ve also just started realising the power of PGFplotsX as a plots/statsplots backend. For a sta…

---

## [Enumerating all possible solutions of Knapsack problem](https://discourse.julialang.org/t/enumerating-all-possible-solutions-of-knapsack-problem/61800)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 3:57am UTC](https://discourse.julialang.org/t/enumerating-all-possible-solutions-of-knapsack-problem/61800 "2021-05-26T03:57:36Z")

</div>

Dear All, I would like to ask, if anyone has experimented with an algorithm to enumerate all possible solutions of the knapsack problem. I have seen scientific papers solving this problem and would like to know, if some…

---

## [A summer truly filled with Julia coding (2021)](https://discourse.julialang.org/t/a-summer-truly-filled-with-julia-coding-2021/61830)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [May 26, 2021, 2:21am UTC](https://discourse.julialang.org/t/a-summer-truly-filled-with-julia-coding-2021/61830 "2021-05-26T02:21:11Z")

</div>

Hey all, We are super excited to share that this summer is our largest Summer of Code (combined Julia Summer of Code and Google Summer of Code) to date. We are mentoring 23 projects directly under the Julia Language: G…

---

## [Help with JuMP variables](https://discourse.julialang.org/t/help-with-jump-variables/61733)

<div class="topic-metadata">

**Author:** [@Dan.phi](https://discourse.julialang.org/u/Dan.phi)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 11:34pm UTC](https://discourse.julialang.org/t/help-with-jump-variables/61733 "2021-05-25T23:34:40Z")

</div>

I am trying to solve a constrained optimization problem using JuMP, but there is apparently a conflict between how I define the variables and one of the packages I call in the objective function. I just started with JuMP…

---

## [\[ANN\] SBML.jl - simple wrapper for Systems biology markup language](https://discourse.julialang.org/t/ann-sbml-jl-simple-wrapper-for-systems-biology-markup-language/61815)

<div class="topic-metadata">

**Author:** [@MirekKratochvil](https://discourse.julialang.org/u/MirekKratochvil)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 10:29pm UTC](https://discourse.julialang.org/t/ann-sbml-jl-simple-wrapper-for-systems-biology-markup-language/61815 "2021-05-25T22:29:01Z")

</div>

We have released SBML.jl back in February, but since the original micropackage keeps packing up new features, I guess it’s a good time to announce it here now. SBML.jl is a wrapper for libSBML (http://sbml.org/Software/…

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

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