# Latest

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

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

**Page:** 610

---

## [Semi-static website framework?](https://discourse.julialang.org/t/semi-static-website-framework/103232)

<div class="topic-metadata">

**Author:** [@nev](https://discourse.julialang.org/u/nev)\
**Replies:** 4\
**Last updated:** [August 29, 2023, 2:50pm UTC](https://discourse.julialang.org/t/semi-static-website-framework/103232 "2023-08-29T14:50:07Z")

</div>

Hello, I am writing a blog website in Julia. I want it to be an essentially static Markdown website, but with support for authentication and dynamically generated web pages. Because of this, existing static website gene…

---

## [Deploy Literate non-html files with Documenter](https://discourse.julialang.org/t/deploy-literate-non-html-files-with-documenter/66031)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 3\
**Last updated:** [August 29, 2023, 2:04pm UTC](https://discourse.julialang.org/t/deploy-literate-non-html-files-with-documenter/66031 "2023-08-29T14:04:32Z")

</div>

I’m using Literate.jl to convert example scripts to markdown (md) and Jupyter Notebook (ipynb) for the documentation. The scripts are in examples, and I have a script in docs/generate.jl that gets run as part of docs/mak…

---

## [How to add/create/use submodules?](https://discourse.julialang.org/t/how-to-add-create-use-submodules/103329)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 5\
**Last updated:** [August 29, 2023, 1:40pm UTC](https://discourse.julialang.org/t/how-to-add-create-use-submodules/103329 "2023-08-29T13:40:59Z")

</div>

In the documentation for modules, I understand that the name of a module (or submodule) does not necessarily have to be the same as the module name - since the module name is a namespace. I’m having trouble loading a sub…

---

## [Iterating through the fieldnames of tuples](https://discourse.julialang.org/t/iterating-through-the-fieldnames-of-tuples/103288)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 6\
**Last updated:** [August 29, 2023, 1:19pm UTC](https://discourse.julialang.org/t/iterating-through-the-fieldnames-of-tuples/103288 "2023-08-29T13:19:12Z")

</div>

Hello, I have a problem where I use several named tuples with common structure and field names, e.g.: a = (x=ones(N), y=ones(N), z=ones(N)) b = (x=ones(N), y=ones(N), z=ones(N)) I would like to loop through the fields…

---

## [Solving Poisson PDE in an arbitrary 2D geometry, under different types of both internal and external boundary conditions](https://discourse.julialang.org/t/solving-poisson-pde-in-an-arbitrary-2d-geometry-under-different-types-of-both-internal-and-external-boundary-conditions/103130)

<div class="topic-metadata">

**Author:** [@Zeljko](https://discourse.julialang.org/u/Zeljko)\
**Replies:** 6\
**Last updated:** [August 29, 2023, 1:10pm UTC](https://discourse.julialang.org/t/solving-poisson-pde-in-an-arbitrary-2d-geometry-under-different-types-of-both-internal-and-external-boundary-conditions/103130 "2023-08-29T13:10:21Z")

</div>

Fairly new to Julia, and I am trying to solve a 2D PDE problem of the form: with finite differences where the 2D domain may not necessarily be a pure rectangle (e.g., a cross-like shape, or rectangle with internal rec…

---

## [How to extract pvalue?](https://discourse.julialang.org/t/how-to-extract-pvalue/103327)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [August 29, 2023, 12:33pm UTC](https://discourse.julialang.org/t/how-to-extract-pvalue/103327 "2023-08-29T12:33:24Z")

</div>

Hello i’m using EqualVarianceTTest() from HypothesisTests.jl. I did test and it gives a summary report but i don’t know how can i extract some specific values from summary? such as p-value in case i want to do several…

---

## [Cronbach's alpha StatsBase](https://discourse.julialang.org/t/cronbachs-alpha-statsbase/103292)

<div class="topic-metadata">

**Author:** [@victorshiramizu](https://discourse.julialang.org/u/victorshiramizu)\
**Replies:** 8\
**Last updated:** [August 29, 2023, 11:26am UTC](https://discourse.julialang.org/t/cronbachs-alpha-statsbase/103292 "2023-08-29T11:26:05Z")

</div>

I’m trying to calculate Cronbach’s alpha via cronbachalpha function from StatsBase. I’m getting the following error: ERROR: MethodError: no method matching cronbachalpha(::Matrix{Union{Missing, Float64}}). However, my ma…

---

## [LinearAlgebra package not being parsed by LanguageServer.jl](https://discourse.julialang.org/t/linearalgebra-package-not-being-parsed-by-languageserver-jl/103317)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 3\
**Last updated:** [August 29, 2023, 11:12am UTC](https://discourse.julialang.org/t/linearalgebra-package-not-being-parsed-by-languageserver-jl/103317 "2023-08-29T11:12:34Z")

</div>

Hello, good evening. Im facing a problem with julia LanguageServer.jl. LanguageServer parses and autocomplete all packages, but LinearAlgebra dont. I dont know whats happening with LSP and why it is not autocompleting,…

---

## [Implement two variants of a simulation which works with the same objects](https://discourse.julialang.org/t/implement-two-variants-of-a-simulation-which-works-with-the-same-objects/103321)

<div class="topic-metadata">

**Author:** [@natema](https://discourse.julialang.org/u/natema)\
**Replies:** 2\
**Last updated:** [August 29, 2023, 9:17am UTC](https://discourse.julialang.org/t/implement-two-variants-of-a-simulation-which-works-with-the-same-objects/103321 "2023-08-29T09:17:03Z")

</div>

I want to simulate two variants of a process that involves the same objects (e.g. a stochastic process on the unit interval \[0,1) or on the circle \\mathbb R/\\mathbb Z). For the first variant, I’ve grouped the objects de…

---

## [The challenges of documenting generic functions](https://discourse.julialang.org/t/the-challenges-of-documenting-generic-functions/103198)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 24\
**Last updated:** [August 29, 2023, 8:28am UTC](https://discourse.julialang.org/t/the-challenges-of-documenting-generic-functions/103198 "2023-08-29T08:28:22Z")

</div>

First of all, I must apologize, in advance, for the blunt language below. I’m not going to accuse anybody. I’ll just try to describe the problems I’ve encountered. I have been using Julia for 1.5 years (and I’m sorry to…

---

## [Best practice to set limits for Julia version](https://discourse.julialang.org/t/best-practice-to-set-limits-for-julia-version/103254)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 15\
**Last updated:** [August 29, 2023, 6:42am UTC](https://discourse.julialang.org/t/best-practice-to-set-limits-for-julia-version/103254 "2023-08-29T06:42:42Z")

</div>

What is the best practice to set the limits for the Julia version of a package? To my experience packages like QML.jl that rely on C++ code break with new Julia versions. I could add for example: \[compat\] julia = "1.6…

---

## [Package compatibility constraints](https://discourse.julialang.org/t/package-compatibility-constraints/103217)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 8\
**Last updated:** [August 29, 2023, 6:00am UTC](https://discourse.julialang.org/t/package-compatibility-constraints/103217 "2023-08-29T06:00:41Z")

</div>

I put the following line into a Project.toml for a package and am trying to figure out what consequences it has: \[compat\] julia = "1.0 - 1.7" When I try to add this package in another package from Julia 1.9.3 it is acc…

---

## [Memory allocation when solving ODE with Vern7 and ContinuousCallback](https://discourse.julialang.org/t/memory-allocation-when-solving-ode-with-vern7-and-continuouscallback/101087)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 2\
**Last updated:** [August 29, 2023, 5:27am UTC](https://discourse.julialang.org/t/memory-allocation-when-solving-ode-with-vern7-and-continuouscallback/101087 "2023-08-29T05:27:39Z")

</div>

Hello, I went through a memory allocation problem in a ODE system, when using Vern7() algorithm and ContinuousCallback. The minimal working example is the following: using LinearAlgebra using SparseArrays using Ordinar…

---

## [Julia VS Code Extension References Old Version](https://discourse.julialang.org/t/julia-vs-code-extension-references-old-version/103315)

<div class="topic-metadata">

**Author:** [@tgf314](https://discourse.julialang.org/u/tgf314)\
**Replies:** 0\
**Last updated:** [August 28, 2023, 11:17pm UTC](https://discourse.julialang.org/t/julia-vs-code-extension-references-old-version/103315 "2023-08-28T23:17:08Z")

</div>

After updating the julia vs code extension to 1.50.2 I’m getting errors in the julia REPL. After some investigation it appears that the extension is running julia with a reference to the old version of the extension, wh…

---

## [Difference between two dates in Julia](https://discourse.julialang.org/t/difference-between-two-dates-in-julia/103048)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 8\
**Last updated:** [August 28, 2023, 11:12pm UTC](https://discourse.julialang.org/t/difference-between-two-dates-in-julia/103048 "2023-08-28T23:12:47Z")

</div>

I am trying to get difference between two dates in number of “days”. I am able to substract the two date fields but results is being produced as “n days”. As we can see below DATE\_DIFF is produced after executing below…

---

## [Is the julia package registry down today?](https://discourse.julialang.org/t/is-the-julia-package-registry-down-today/103304)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 10:01pm UTC](https://discourse.julialang.org/t/is-the-julia-package-registry-down-today/103304 "2023-08-28T22:01:28Z")

</div>

Today I’m unable to do anything with the package manager; it cannot download anything from the registry, (@v1.9) pkg\> up Updating registry at \`C:\\Users\\rvq\\.julia\\registries\\General.toml\` ┌ Error: Some registries fa…

---

## [How Can I Display Meta-Data with PrettyTables in Julia?](https://discourse.julialang.org/t/how-can-i-display-meta-data-with-prettytables-in-julia/103310)

<div class="topic-metadata">

**Author:** [@Olegg](https://discourse.julialang.org/u/Olegg)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 8:53pm UTC](https://discourse.julialang.org/t/how-can-i-display-meta-data-with-prettytables-in-julia/103310 "2023-08-28T20:53:51Z")

</div>

When using PrettyTables to display a DataFrame, eg with an HTML back-end, the size of the DataFrame is typically displayed at the top, as shown in the figure below. Is there a way to customize this to display some basic …

---

## [Is there a function in Julia similar to Python's \`tell\`?](https://discourse.julialang.org/t/is-there-a-function-in-julia-similar-to-pythons-tell/103308)

<div class="topic-metadata">

**Author:** [@frylock](https://discourse.julialang.org/u/frylock)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 8:09pm UTC](https://discourse.julialang.org/t/is-there-a-function-in-julia-similar-to-pythons-tell/103308 "2023-08-28T20:09:57Z")

</div>

In addition to seek on open files, Python has a tell function … so I could save my place in a file and go back to it? Perhaps I am going about things wrong. What I’m really trying to do is read in a structure from a fil…

---

## [How to add plot icon displayed in legend to axis label?](https://discourse.julialang.org/t/how-to-add-plot-icon-displayed-in-legend-to-axis-label/103299)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 7:54pm UTC](https://discourse.julialang.org/t/how-to-add-plot-icon-displayed-in-legend-to-axis-label/103299 "2023-08-28T19:54:49Z")

</div>

Is it possible to extract the icon (line, marker, etc) displayed in a typical Legend so that I can display them in ax.xlabel and ax.ylabel? Edit: The left plot is what we usually get by using Legend (or axislegend). I …

---

## [What are the t-tests in the GLM.jl's models?](https://discourse.julialang.org/t/what-are-the-t-tests-in-the-glm-jls-models/103261)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 7\
**Last updated:** [August 28, 2023, 7:38pm UTC](https://discourse.julialang.org/t/what-are-the-t-tests-in-the-glm-jls-models/103261 "2023-08-28T19:38:53Z")

</div>

Hi all, I’m not sure about the meaning of the pretty prints of GLM.jl’s models: julia\> model StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPiv…

---

## [Custom iterator failed](https://discourse.julialang.org/t/custom-iterator-failed/103301)

<div class="topic-metadata">

**Author:** [@Denis\_Ivanov](https://discourse.julialang.org/u/Denis_Ivanov)\
**Replies:** 12\
**Last updated:** [August 28, 2023, 6:41pm UTC](https://discourse.julialang.org/t/custom-iterator-failed/103301 "2023-08-28T18:41:41Z")

</div>

Here is very simple idea: struct Test a::Int n::Int end step(x::Int) = x \> 1 ? x - 1 : 1 Base.iterate(t::Test, state=1) = state \> t.n ? nothing : (step(t.a), state + 1) Base.length(t::Test) = t.n For some …

---

## [Passing a struct to a function allocates whereas passing an array does not](https://discourse.julialang.org/t/passing-a-struct-to-a-function-allocates-whereas-passing-an-array-does-not/103303)

<div class="topic-metadata">

**Author:** [@simon79](https://discourse.julialang.org/u/simon79)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 6:08pm UTC](https://discourse.julialang.org/t/passing-a-struct-to-a-function-allocates-whereas-passing-an-array-does-not/103303 "2023-08-28T18:08:01Z")

</div>

Hi, I noticed that the simple code example\_1! below allocates memory (lots of it when this is embedded in a large loop) whereas example\_2! does not. example\_1! takes the 3-dimenional array conn\[iel, :, :\] and, with…

---

## [\[ANN\] Satisfiability.jl: a simple interface to theorem provers using the SMT-LIB standard](https://discourse.julialang.org/t/ann-satisfiability-jl-a-simple-interface-to-theorem-provers-using-the-smt-lib-standard/102984)

<div class="topic-metadata">

**Author:** [@elsoroka](https://discourse.julialang.org/u/elsoroka)\
**Replies:** 4\
**Last updated:** [August 28, 2023, 5:37pm UTC](https://discourse.julialang.org/t/ann-satisfiability-jl-a-simple-interface-to-theorem-provers-using-the-smt-lib-standard/102984 "2023-08-28T17:37:29Z")

</div>

Satisfiability.jl is a package for representing satisfiability modulo theories (SMT) problems in Julia. SMT is used in formal verification and synthesis. You can use it to find satisfying assignments for logical stateme…

---

## [How to check whether a variable is reassignable or not? (e.g. whether it is a function definition)](https://discourse.julialang.org/t/how-to-check-whether-a-variable-is-reassignable-or-not-e-g-whether-it-is-a-function-definition/103276)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 5\
**Last updated:** [August 28, 2023, 5:21pm UTC](https://discourse.julialang.org/t/how-to-check-whether-a-variable-is-reassignable-or-not-e-g-whether-it-is-a-function-definition/103276 "2023-08-28T17:21:22Z")

</div>

I have a module A and want to copy things from it to module B such that everything can be changed like before (this is needed inside Pluto). For this goal, I need to know which variable is actually a variable, because i…

---

## [Rownumber() in Dataframe like SQL](https://discourse.julialang.org/t/rownumber-in-dataframe-like-sql/72098)

<div class="topic-metadata">

**Author:** [@AlexanderChen](https://discourse.julialang.org/u/AlexanderChen)\
**Replies:** 9\
**Last updated:** [August 28, 2023, 4:21pm UTC](https://discourse.julialang.org/t/rownumber-in-dataframe-like-sql/72098 "2023-08-28T16:21:36Z")

</div>

Hi, In SQL you have a function called rownumber() over which you partition a certain column and get a column from 1 …n. Like this: dataframes has a function called rownumber but it only return an integer in specific…

---

## [SQLite.jl and LibPQ.jl packages don't work when wrapped in a package](https://discourse.julialang.org/t/sqlite-jl-and-libpq-jl-packages-dont-work-when-wrapped-in-a-package/103297)

<div class="topic-metadata">

**Author:** [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 4:14pm UTC](https://discourse.julialang.org/t/sqlite-jl-and-libpq-jl-packages-dont-work-when-wrapped-in-a-package/103297 "2023-08-28T16:14:11Z")

</div>

Hello! I found that the SQLite.jl and LibPQ.jl packages don’t work when wrapped in a package (not a module but a package with manifest and project.toml). has anyone experienced this? module N import LibPQ import Tabl…

---

## [How to parse text between specific characters in Julia?](https://discourse.julialang.org/t/how-to-parse-text-between-specific-characters-in-julia/103284)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 3:01pm UTC](https://discourse.julialang.org/t/how-to-parse-text-between-specific-characters-in-julia/103284 "2023-08-28T15:01:16Z")

</div>

Hello, I would like to create a text files (a plain text txt or a tab-separated file tsv) with modular information. I have been thinking of including the information within some markers, for instance \*= and =\* so that t…

---

## [Convert floating point to integer type?](https://discourse.julialang.org/t/convert-floating-point-to-integer-type/103273)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 6\
**Last updated:** [August 28, 2023, 12:34pm UTC](https://discourse.julialang.org/t/convert-floating-point-to-integer-type/103273 "2023-08-28T12:34:06Z")

</div>

Currently, the float function allows one to go from an Integer type to a floating-point type. julia\> float(BigInt) BigFloat Is there a function to go the other way, that is given BigFloat as an argument, it returns Big…

---

## [Problems with BSON](https://discourse.julialang.org/t/problems-with-bson/103150)

<div class="topic-metadata">

**Author:** [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 12:06pm UTC](https://discourse.julialang.org/t/problems-with-bson/103150 "2023-08-28T12:06:42Z")

</div>

This has been discussed before, but I can’t say that I have fully understood all intricacies of the problem. I try to load an object (flux model) with BSON.@load "/pathy/path" model. I have also tried to load it with bs…

---

## [GLMakie & Observables: Cannot update screen when observable holds reference to struct field](https://discourse.julialang.org/t/glmakie-observables-cannot-update-screen-when-observable-holds-reference-to-struct-field/102364)

<div class="topic-metadata">

**Author:** [@f.ij](https://discourse.julialang.org/u/f.ij)\
**Replies:** 20\
**Last updated:** [August 28, 2023, 10:52am UTC](https://discourse.julialang.org/t/glmakie-observables-cannot-update-screen-when-observable-holds-reference-to-struct-field/102364 "2023-08-28T10:52:37Z")

</div>

I’m working on a simulation and was using QML before, but since it is not well maintained, I was looking into using GLMakie. I have this code snippet where I update data in a matrix from a thread, and visualize it using…

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

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