# Latest

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

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

**Page:** 438

---

## [Join dataframe and geotable](https://discourse.julialang.org/t/join-dataframe-and-geotable/112138)

<div class="topic-metadata">

**Author:** [@TimG](https://discourse.julialang.org/u/TimG)\
**Replies:** 34\
**Last updated:** [April 10, 2024, 2:40pm UTC](https://discourse.julialang.org/t/join-dataframe-and-geotable/112138 "2024-04-10T14:40:47Z")

</div>

A very basic question, I’m afraid. I have a shape file of local authority boundaries downloaded from the Office for National Statistics and GeoIO read this as expected and Makie plots it. One of the data fields in the …

---

## [Eclipse watchers?](https://discourse.julialang.org/t/eclipse-watchers/112705)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 7\
**Last updated:** [April 10, 2024, 2:40pm UTC](https://discourse.julialang.org/t/eclipse-watchers/112705 "2024-04-10T14:40:23Z")

</div>

I managed to get this photo from Abbott, TX. Did any of you watch it?

---

## [\[ANN\] NistyPQC.jl](https://discourse.julialang.org/t/ann-nistypqc-jl/112704)

<div class="topic-metadata">

**Author:** [@erich-9](https://discourse.julialang.org/u/erich-9)\
**Replies:** 2\
**Last updated:** [April 10, 2024, 2:23pm UTC](https://discourse.julialang.org/t/ann-nistypqc-jl/112704 "2024-04-10T14:23:18Z")

</div>

NistyPQC.jl provides pure Julia implementations of the post-quantum cryptography algorithms selected in NIST’s ongoing PQC Standardization Project. So far, four winners have been selected: ML-KEM aka Kyber ML-DSA aka …

---

## [Recommended book: Atlas of AI by Kate Crawford](https://discourse.julialang.org/t/recommended-book-atlas-of-ai-by-kate-crawford/112774)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [April 10, 2024, 2:09pm UTC](https://discourse.julialang.org/t/recommended-book-atlas-of-ai-by-kate-crawford/112774 "2024-04-10T14:09:22Z")

</div>

Kate Crawford, Atlas of AI One quote that I found particularly pithy: "In contrast, in this book I argue that AI is neither artificial nor intelligent. Rather, artificial intelligence is both embodied and material, m…

---

## [How to tell Julia that my type is not iterable?](https://discourse.julialang.org/t/how-to-tell-julia-that-my-type-is-not-iterable/112767)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [April 10, 2024, 12:40pm UTC](https://discourse.julialang.org/t/how-to-tell-julia-that-my-type-is-not-iterable/112767 "2024-04-10T12:40:49Z")

</div>

How do I tell Julia that my object is not iterable? How do I make a, b, c = some\_function.(mytype, (1, 2, 3)) work automatically without throwing no method matching length(::MyType)?

---

## [\[ANN\] BayesianTomography.jl - A Julia package for Bayesian quantum state tomography](https://discourse.julialang.org/t/ann-bayesiantomography-jl-a-julia-package-for-bayesian-quantum-state-tomography/112764)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 0\
**Last updated:** [April 10, 2024, 11:31am UTC](https://discourse.julialang.org/t/ann-bayesiantomography-jl-a-julia-package-for-bayesian-quantum-state-tomography/112764 "2024-04-10T11:31:31Z")

</div>

Hello!! I’m pleased to announce the package BayesianTomography.jl. As the name suggests, its aim is to perform Quantum State Tomography using Bayesian inference. The basic ideia is that the outcomes of a quantum experi…

---

## [VSCode & search+replace](https://discourse.julialang.org/t/vscode-search-replace/112730)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [April 10, 2024, 7:17am UTC](https://discourse.julialang.org/t/vscode-search-replace/112730 "2024-04-10T07:17:54Z")

</div>

I’m sure I do something wrong… this behavior can not be intended… I’m doing search-and-replace in a Jupyter Notebook, by using Ctrl+F to get up the s&r window I specify the text string I want to replace I specif…

---

## [Best practice: Julia development under Windows?](https://discourse.julialang.org/t/best-practice-julia-development-under-windows/112711)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 10\
**Last updated:** [April 10, 2024, 7:08am UTC](https://discourse.julialang.org/t/best-practice-julia-development-under-windows/112711 "2024-04-10T07:08:09Z")

</div>

I need to buy a Laptop with a discrete graphic card for Cuda kernel development in Julia. Unfortunately, the situation with current-gen notebooks with discrete GPUs and Linux seems to be as bad as it was 10 years ago …

---

## [Rand() doesn't work with dims as tuple of Uint](https://discourse.julialang.org/t/rand-doesnt-work-with-dims-as-tuple-of-uint/112716)

<div class="topic-metadata">

**Author:** [@alex180500](https://discourse.julialang.org/u/alex180500)\
**Replies:** 5\
**Last updated:** [April 10, 2024, 6:16am UTC](https://discourse.julialang.org/t/rand-doesnt-work-with-dims-as-tuple-of-uint/112716 "2024-04-10T06:16:32Z")

</div>

I’m trying to create random numbers in a matrix given by another variable that is a UInt32. For example I have something like this: test\_uint::UInt32 = 4 rand(Float64, (test\_uint, 10)) And get the following error ERRO…

---

## [Storing non-isbits data in type parameters](https://discourse.julialang.org/t/storing-non-isbits-data-in-type-parameters/112748)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 1\
**Last updated:** [April 10, 2024, 2:23am UTC](https://discourse.julialang.org/t/storing-non-isbits-data-in-type-parameters/112748 "2024-04-10T02:23:28Z")

</div>

This is most likely not a new discovery, but I just realized you can effectively store non-isbits data in type parameters. MWE: julia\> struct Value{T} end julia\> Value(x) = Value{Symbol(repr(x))}(); julia\> unwrap(::Va…

---

## [Identify and add missing rows dynamically in dataframe](https://discourse.julialang.org/t/identify-and-add-missing-rows-dynamically-in-dataframe/112703)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 6\
**Last updated:** [April 9, 2024, 11:25pm UTC](https://discourse.julialang.org/t/identify-and-add-missing-rows-dynamically-in-dataframe/112703 "2024-04-09T23:25:28Z")

</div>

I have scenario where I need to insert the missing data into dataframe dynamically. 3×3 DataFrame Row │ month ac\_hrs crew\_hrs │ String Int64 Int64 ─────┼────────────────────────── 1 │ 202404 2 …

---

## [JuMP, large expression, and hessian "limited-memory" option in Ipopt](https://discourse.julialang.org/t/jump-large-expression-and-hessian-limited-memory-option-in-ipopt/112609)

<div class="topic-metadata">

**Author:** [@niro](https://discourse.julialang.org/u/niro)\
**Replies:** 8\
**Last updated:** [April 9, 2024, 10:04pm UTC](https://discourse.julialang.org/t/jump-large-expression-and-hessian-limited-memory-option-in-ipopt/112609 "2024-04-09T22:04:09Z")

</div>

Hi all, I have a question regarding JuMP, which I try to use to solve an optimal control problem. For this problem, I have to generate a quite complicated function using symbolic computations. Then, I build a nonlinear @…

---

## [Custom recorder on stages with different constraints](https://discourse.julialang.org/t/custom-recorder-on-stages-with-different-constraints/112718)

<div class="topic-metadata">

**Author:** [@FelixSchmidt](https://discourse.julialang.org/u/FelixSchmidt)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 9:19pm UTC](https://discourse.julialang.org/t/custom-recorder-on-stages-with-different-constraints/112718 "2024-04-09T21:19:59Z")

</div>

Hi Oscar, I’ve been having issues with creating a custom recorder in SDDP.simulate. I have a capacity expansion problem where stage 1 covers the investment decision and stages 2,…T are monthly dispatch problems at hourl…

---

## [Accessing dual variables](https://discourse.julialang.org/t/accessing-dual-variables/112719)

<div class="topic-metadata">

**Author:** [@heiwie](https://discourse.julialang.org/u/heiwie)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 7:44pm UTC](https://discourse.julialang.org/t/accessing-dual-variables/112719 "2024-04-09T19:44:54Z")

</div>

I am wondering how I can name constraints I define in a for-loop so I later could access the dual variables. My code is the following: for (m, parentnode) in enumerate(lattice\_edges\[2\]) for (n, childnode) in enumera…

---

## [Generalized eigenvalue problem in ApproxFun.jl](https://discourse.julialang.org/t/generalized-eigenvalue-problem-in-approxfun-jl/112441)

<div class="topic-metadata">

**Author:** [@jwalker](https://discourse.julialang.org/u/jwalker)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 7:26pm UTC](https://discourse.julialang.org/t/generalized-eigenvalue-problem-in-approxfun-jl/112441 "2024-04-09T19:26:02Z")

</div>

Looking through the examples in ApproxFun.jl, I didn’t see one of a generalized eigenvalue problem. Is this possible? Is there a short example?

---

## [Root finding / NonLinear problem](https://discourse.julialang.org/t/root-finding-nonlinear-problem/112720)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 12\
**Last updated:** [April 9, 2024, 6:18pm UTC](https://discourse.julialang.org/t/root-finding-nonlinear-problem/112720 "2024-04-09T18:18:38Z")

</div>

Question: I am trying to solve a root-finding problem on a vector of 14 elements, but each function evaluation needs about 7 seconds. What is the best solver for this? And is there a way to declare a valid range of th…

---

## [Can I define a type-unstable EnzymeRule?](https://discourse.julialang.org/t/can-i-define-a-type-unstable-enzymerule/112732)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 1\
**Last updated:** [April 9, 2024, 6:09pm UTC](https://discourse.julialang.org/t/can-i-define-a-type-unstable-enzymerule/112732 "2024-04-09T18:09:34Z")

</div>

I am trying to define custom Enzyme rules for my package ImplicitDifferentiation.jl, but I’m held back by type inference failures inside my rules. The typical error message looks like Enzyme execution failed. Enzyme: …

---

## [Assembly: is "jump if not zero" more expressive than "jump if odd"?](https://discourse.julialang.org/t/assembly-is-jump-if-not-zero-more-expressive-than-jump-if-odd/81391)

<div class="topic-metadata">

**Author:** [@mbaz](https://discourse.julialang.org/u/mbaz)\
**Replies:** 9\
**Last updated:** [April 9, 2024, 5:57pm UTC](https://discourse.julialang.org/t/assembly-is-jump-if-not-zero-more-expressive-than-jump-if-odd/81391 "2024-04-09T17:57:58Z")

</div>

I’m completely in favor of disallowing truthy and falsey values, and I hope the core team is never swayed otherwise. Having said that, this claim caught my eye: I teach an introductory programming course, and one of th…

---

## [Passing all variables of an outer function to an inner function?](https://discourse.julialang.org/t/passing-all-variables-of-an-outer-function-to-an-inner-function/112726)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 9\
**Last updated:** [April 9, 2024, 3:06pm UTC](https://discourse.julialang.org/t/passing-all-variables-of-an-outer-function-to-an-inner-function/112726 "2024-04-09T15:06:11Z")

</div>

Suppose I have a function structure: function NeighborLoop!(f::Function, a,b,c,d) f(a,b,c,d) end In this case I have to double specify all the variables. Is there a smart and easy way to pass all variables from Neigh…

---

## [Problem with observables and animations](https://discourse.julialang.org/t/problem-with-observables-and-animations/112731)

<div class="topic-metadata">

**Author:** [@oddsen](https://discourse.julialang.org/u/oddsen)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 2:45pm UTC](https://discourse.julialang.org/t/problem-with-observables-and-animations/112731 "2024-04-09T14:45:45Z")

</div>

Hi, Im trying to animate something with points In this code, it is supposed to show points moving for each iteration. The problem is that the points from the previous iteration aren’t being removed, resulting in an a…

---

## [Matrix exponential \* vector for various scales](https://discourse.julialang.org/t/matrix-exponential-vector-for-various-scales/112022)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 38\
**Last updated:** [April 9, 2024, 2:43pm UTC](https://discourse.julialang.org/t/matrix-exponential-vector-for-various-scales/112022 "2024-04-09T14:43:13Z")

</div>

Given a matrix Q which is a continuous-time transition matrix, ie Q\_{i,j} \\ge 0 for j \\ne i, \\sum\_j Q\_{i,j} = 0 \\ \\forall i I would like to calculate \\exp(Qt)v for multiple t's (fixed v, Q). Potentially Q is around 5…

---

## [Ordinal probit model with Turing - difficulty sampling](https://discourse.julialang.org/t/ordinal-probit-model-with-turing-difficulty-sampling/112528)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 4\
**Last updated:** [April 9, 2024, 1:43pm UTC](https://discourse.julialang.org/t/ordinal-probit-model-with-turing-difficulty-sampling/112528 "2024-04-09T13:43:58Z")

</div>

I am trying to use Turing to estimate an ordinal multinomial model with partially fixed thresholds/cutpoints, but I’m wondering if I’m doing something wrong: metropolis-hastings sampling works great, but the autodiff-bas…

---

## [Problem with JuMP + Gurobi.jl](https://discourse.julialang.org/t/problem-with-jump-gurobi-jl/111505)

<div class="topic-metadata">

**Author:** [@njozefow](https://discourse.julialang.org/u/njozefow)\
**Replies:** 7\
**Last updated:** [April 9, 2024, 1:36pm UTC](https://discourse.julialang.org/t/problem-with-jump-gurobi-jl/111505 "2024-04-09T13:36:03Z")

</div>

Hello, In continuation of the thread : Poor time performance in modifying parameters of JuMP models when using Gurobi - #10 by odow Here is a code that show the behavior (it emulates the behavior of a column generation…

---

## [DataFrames Adding Rows of Different Number of Cols](https://discourse.julialang.org/t/dataframes-adding-rows-of-different-number-of-cols/112725)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 2\
**Last updated:** [April 9, 2024, 1:28pm UTC](https://discourse.julialang.org/t/dataframes-adding-rows-of-different-number-of-cols/112725 "2024-04-09T13:28:36Z")

</div>

I’m interested in adding a row to a dataframe where the row may have a different number of columns / different columns than the existing data frame. I get the following error when I push a dictionary: push!(mydatafra…

---

## [SumOfSquares on a variety, inspecting the multipliers](https://discourse.julialang.org/t/sumofsquares-on-a-variety-inspecting-the-multipliers/112574)

<div class="topic-metadata">

**Author:** [@votroto](https://discourse.julialang.org/u/votroto)\
**Replies:** 6\
**Last updated:** [April 9, 2024, 12:54pm UTC](https://discourse.julialang.org/t/sumofsquares-on-a-variety-inspecting-the-multipliers/112574 "2024-04-09T12:54:30Z")

</div>

Is it possible with SumOfSquares to inspect the multipliers of the polynomial decomposition? Let’s say I have a poly p and I wish to maximize it over a variety F defined by polys f\_i,..,f\_n. I assume internally the cons…

---

## [Beam bending using Gridap](https://discourse.julialang.org/t/beam-bending-using-gridap/112723)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 0\
**Last updated:** [April 9, 2024, 12:40pm UTC](https://discourse.julialang.org/t/beam-bending-using-gridap/112723 "2024-04-09T12:40:59Z")

</div>

Hi Guys I would appreciate any advice on the below code. I am struggling to get it up and running. It is cantilevered beam which I am trying to solve. using Gridap 𝒯 = CartesianDiscreteModel((0,1),(5)) writevtk(model…

---

## [Arrows on Axis in Makie](https://discourse.julialang.org/t/arrows-on-axis-in-makie/79015)

<div class="topic-metadata">

**Author:** [@kfrb](https://discourse.julialang.org/u/kfrb)\
**Replies:** 7\
**Last updated:** [April 9, 2024, 12:33pm UTC](https://discourse.julialang.org/t/arrows-on-axis-in-makie/79015 "2024-04-09T12:33:59Z")

</div>

First, I love Makie and am currently switching to it as my daily plotting library! I often need arrow tips on the axis ends. Unfortunately, I could not find anything about it in the docs, so I used the following workaro…

---

## [Julia pkg unable to connect internet on termux](https://discourse.julialang.org/t/julia-pkg-unable-to-connect-internet-on-termux/109099)

<div class="topic-metadata">

**Author:** [@Anil\_Beniwal](https://discourse.julialang.org/u/Anil_Beniwal)\
**Replies:** 7\
**Last updated:** [April 9, 2024, 12:04pm UTC](https://discourse.julialang.org/t/julia-pkg-unable-to-connect-internet-on-termux/109099 "2024-04-09T12:04:38Z")

</div>

I’m trying to add language server for my text editor but Julia pkg gives me this error. I have installed glibc glibc-runner and my internet connection is working well.

---

## [Basic question about type invariance](https://discourse.julialang.org/t/basic-question-about-type-invariance/112674)

<div class="topic-metadata">

**Author:** [@Jesse1](https://discourse.julialang.org/u/Jesse1)\
**Replies:** 4\
**Last updated:** [April 8, 2024, 1:12pm UTC](https://discourse.julialang.org/t/basic-question-about-type-invariance/112674 "2024-04-08T13:12:09Z")

</div>

Hi there, I am getting unexpected behaviour with the DataType Dict when trying to specify subtypes. Specifically, I want a function to be able to accept a Dict where the keys are strings and the entries are tuples conta…

---

## [GPU Genetic Algorithm](https://discourse.julialang.org/t/gpu-genetic-algorithm/112700)

<div class="topic-metadata">

**Author:** [@fender9723](https://discourse.julialang.org/u/fender9723)\
**Replies:** 12\
**Last updated:** [April 9, 2024, 10:07am UTC](https://discourse.julialang.org/t/gpu-genetic-algorithm/112700 "2024-04-09T10:07:33Z")

</div>

Hello everyone! I’m fairly new to Julia and am attempting to enhance the performance of my code. I have a straightforward optimization problem involving finding the maximum of a function. The variables in my problem ar…

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

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