# Latest

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

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

**Page:** 453

---

## [MethodError: no method matching heatmap\_edges(::RecipesPipeline.Surface{Matrix{Float64}}, ::Symbol)](https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 0\
**Last updated:** [March 21, 2024, 4:07pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938 "2024-03-21T16:07:26Z")

</div>

I am getting MethodError: no method matching heatmap\_edges(::RecipesPipeline.Surface{Matrix{Float64}}, ::Symbol) My code is :face\_with\_diagonal\_mouth: begin # Create the plot plot() # Define colormap colormap = …

---

## [Feature request: unsafe\_free!](https://discourse.julialang.org/t/feature-request-unsafe-free/111767)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 25\
**Last updated:** [March 21, 2024, 3:46pm UTC](https://discourse.julialang.org/t/feature-request-unsafe-free/111767 "2024-03-21T15:46:55Z")

</div>

In view of the thread on feature requests, let’s put that here first before github. I really like how CUDA.jl mixes memory management strategies: Memory is garbage collected, as in normal julia. But, optionally and on u…

---

## [\[ANN\] ToggleMenus.jl](https://discourse.julialang.org/t/ann-togglemenus-jl/111934)

<div class="topic-metadata">

**Author:** [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Replies:** 0\
**Last updated:** [March 21, 2024, 3:10pm UTC](https://discourse.julialang.org/t/ann-togglemenus-jl/111934 "2024-03-21T15:10:37Z")

</div>

I am pleased to announce the publication of ToggleMenus.jl in the General Registry. This is a REPL package, which provides a TerminalMenu where each option can have one of several choices. These may be navigated with \[…

---

## [Create set of of non-slice arrays referencing contiguous memory](https://discourse.julialang.org/t/create-set-of-of-non-slice-arrays-referencing-contiguous-memory/111908)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 7\
**Last updated:** [March 21, 2024, 3:05pm UTC](https://discourse.julialang.org/t/create-set-of-of-non-slice-arrays-referencing-contiguous-memory/111908 "2024-03-21T15:05:34Z")

</div>

I have a use case where I manipulate an AbstractVector{Vector{Int64}}, each of the latter of the same length. I then do many element-by-element computations between pairs of vectors in the set. There are N~100 vectors of…

---

## [Add specific elements of a CUDA matrix](https://discourse.julialang.org/t/add-specific-elements-of-a-cuda-matrix/111909)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 2:48pm UTC](https://discourse.julialang.org/t/add-specific-elements-of-a-cuda-matrix/111909 "2024-03-21T14:48:48Z")

</div>

Question I have an N \\times N matrix A on the GPU (e.g. CuArray{Float32, 2, CUDA.Mem.DeviceBuffer} from CUDA.jl), and two N-element “index vectors” iVector and jVector also on the GPU. I want to add the elements of A lo…

---

## [How to detect if a GLMakie window is closed?](https://discourse.julialang.org/t/how-to-detect-if-a-glmakie-window-is-closed/111933)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 2:19pm UTC](https://discourse.julialang.org/t/how-to-detect-if-a-glmakie-window-is-closed/111933 "2024-03-21T14:19:12Z")

</div>

When I start my program, I open an GLMakie window. How can I detect if the window is still open or if it was closed by the user? Is there an on\_close() event? I want to stop my simulation when the user closes the window…

---

## [Running Julia in browser - sharing simulation code that plots live. Possible?](https://discourse.julialang.org/t/running-julia-in-browser-sharing-simulation-code-that-plots-live-possible/106835)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 5\
**Last updated:** [March 21, 2024, 1:58pm UTC](https://discourse.julialang.org/t/running-julia-in-browser-sharing-simulation-code-that-plots-live-possible/106835 "2024-03-21T13:58:23Z")

</div>

I have some simulation code that runs, constantly plots to a GLMakie window using observables, and lets me use sliders to change parameter values live. I was wondering if it is possible to share this publically on a webp…

---

## [Efficient dataframe operations \[unclear task\]](https://discourse.julialang.org/t/efficient-dataframe-operations-unclear-task/111925)

<div class="topic-metadata">

**Author:** [@haidangel](https://discourse.julialang.org/u/haidangel)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 12:47pm UTC](https://discourse.julialang.org/t/efficient-dataframe-operations-unclear-task/111925 "2024-03-21T12:47:19Z")

</div>

I have a dataframe with 2715 attribute columns, values ranging from \[0, 0.92). Additionally, the dataframe has an auxiliary attribute column with one-hot values (0 or 1) for a binary classification task. I want to use Ju…

---

## [Normative or descriptive linguistics for the English language usage](https://discourse.julialang.org/t/normative-or-descriptive-linguistics-for-the-english-language-usage/111793)

<div class="topic-metadata">

**Author:** [@neophytedave](https://discourse.julialang.org/u/neophytedave)\
**Replies:** 7\
**Last updated:** [March 21, 2024, 12:41pm UTC](https://discourse.julialang.org/t/normative-or-descriptive-linguistics-for-the-english-language-usage/111793 "2024-03-21T12:41:08Z")

</div>

It would seem the new usage of the word “impact” is as a verb, not a noun, and is rapidly gaining ascendency. In older dictionairies, there is no verb form of that word. The verb form was “affect”.

---

## [Profiler Timing Related to Line 0](https://discourse.julialang.org/t/profiler-timing-related-to-line-0/71033)

<div class="topic-metadata">

**Author:** [@andrew-saydjari](https://discourse.julialang.org/u/andrew-saydjari)\
**Replies:** 4\
**Last updated:** [March 21, 2024, 11:26am UTC](https://discourse.julialang.org/t/profiler-timing-related-to-line-0/71033 "2024-03-21T11:26:37Z")

</div>

When using the profiler via ProfileSVG I sometimes see significant traceback blocks in the flame graph coming from line “0” of a notebook cell where the function was defined. An recent example is below (sorry for not bei…

---

## [Julia frameworks for large-scale nonlinear least-squares optimization for computer vision](https://discourse.julialang.org/t/julia-frameworks-for-large-scale-nonlinear-least-squares-optimization-for-computer-vision/49344)

<div class="topic-metadata">

**Author:** [@masoug](https://discourse.julialang.org/u/masoug)\
**Replies:** 3\
**Last updated:** [March 21, 2024, 10:42am UTC](https://discourse.julialang.org/t/julia-frameworks-for-large-scale-nonlinear-least-squares-optimization-for-computer-vision/49344 "2024-03-21T10:42:44Z")

</div>

Hi, Julia newcomer here :slight\_smile: I’m working on learning both Julia and computer vision by implementing common vision algorithms like camera calibration in the Julia language. I’m at a point right now where I’m lo…

---

## [Recursion in Julia — bad idea?](https://discourse.julialang.org/t/recursion-in-julia-bad-idea/99304)

<div class="topic-metadata">

**Author:** [@rgu](https://discourse.julialang.org/u/rgu)\
**Replies:** 13\
**Last updated:** [May 24, 2023, 1:26pm UTC](https://discourse.julialang.org/t/recursion-in-julia-bad-idea/99304 "2023-05-24T13:26:22Z")

</div>

I’m trying to learn Julia on examples. For now I’m trying to solve some problem with DFS as a core algorithm in my solution. This recursive DFS is running on a max 1000×1000 grid and I’ve got StackOverFlow (I’m pretty s…

---

## [Naming of states, inputs and outputs in \`ControlSystemsMTK\`](https://discourse.julialang.org/t/naming-of-states-inputs-and-outputs-in-controlsystemsmtk/111783)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 12\
**Last updated:** [March 21, 2024, 10:27am UTC](https://discourse.julialang.org/t/naming-of-states-inputs-and-outputs-in-controlsystemsmtk/111783 "2024-03-21T10:27:57Z")

</div>

Hi, I just tested naming states, inputs and outputs while passing a state-space model to ODESystem. It seems the optional names are ignored, am I doing something wrong here ? using ControlSystemsBase, ControlSystemsMTK…

---

## [Camera calibration](https://discourse.julialang.org/t/camera-calibration/31525)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 25\
**Last updated:** [March 21, 2024, 10:11am UTC](https://discourse.julialang.org/t/camera-calibration/31525 "2024-03-21T10:11:26Z")

</div>

I’m hoping to start a conversation about camera calibration and test how big the usage/interest is. Do you need a camera calibration package in Julia? Do you know how to write such a package? A lot of the basic pieces…

---

## [Pkg DoubleFloats, some consts flawed](https://discourse.julialang.org/t/pkg-doublefloats-some-consts-flawed/111917)

<div class="topic-metadata">

**Author:** [@derSchorsch](https://discourse.julialang.org/u/derSchorsch)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 9:19am UTC](https://discourse.julialang.org/t/pkg-doublefloats-some-consts-flawed/111917 "2024-03-21T09:19:45Z")

</div>

Hi all, I have noticed that many of the constants related to pi in the file sequences.jl of pkg DoubleFloats are flawed. For example, the DD values for (15/32)\*%pi read: "Double64(1.4726215563702156, -5.3616983752483455…

---

## [Deployment of my package's documentation fails with github agent](https://discourse.julialang.org/t/deployment-of-my-packages-documentation-fails-with-github-agent/111816)

<div class="topic-metadata">

**Author:** [@hbrochet](https://discourse.julialang.org/u/hbrochet)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 9:22am UTC](https://discourse.julialang.org/t/deployment-of-my-packages-documentation-fails-with-github-agent/111816 "2024-03-21T09:22:24Z")

</div>

Hello, I started writing a julia package and I tried to create a documentation that would be automatically hosted on github using the documenter.jl package. Unfortunately the github agent fails to build the documentati…

---

## [About the use of the test suite when developing a package](https://discourse.julialang.org/t/about-the-use-of-the-test-suite-when-developing-a-package/111862)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 21\
**Last updated:** [March 21, 2024, 7:32am UTC](https://discourse.julialang.org/t/about-the-use-of-the-test-suite-when-developing-a-package/111862 "2024-03-21T07:32:59Z")

</div>

I have added a test suite to the package that is in development, where I am using LinearAlgebra in the MyPkg/test/runtests.jl file without add-ing it in the sub-environment test before the use. I can run the runtests.jl …

---

## [Is there a way to calculate eigenvalues for symbolic matrices?](https://discourse.julialang.org/t/is-there-a-way-to-calculate-eigenvalues-for-symbolic-matrices/110818)

<div class="topic-metadata">

**Author:** [@swsw](https://discourse.julialang.org/u/swsw)\
**Replies:** 5\
**Last updated:** [March 21, 2024, 2:43am UTC](https://discourse.julialang.org/t/is-there-a-way-to-calculate-eigenvalues-for-symbolic-matrices/110818 "2024-03-21T02:43:15Z")

</div>

I’d like to calculate the eigenvalues for the matrix like \[1 1; x x\] in julia. is there a way to do it? I tried the following but didn’t work. using SymPy @syms x A = \[1 1; x x\] eigen(A)

---

## [Type parameters & constructors](https://discourse.julialang.org/t/type-parameters-constructors/111874)

<div class="topic-metadata">

**Author:** [@mdsalerno](https://discourse.julialang.org/u/mdsalerno)\
**Replies:** 3\
**Last updated:** [March 21, 2024, 1:55am UTC](https://discourse.julialang.org/t/type-parameters-constructors/111874 "2024-03-21T01:55:10Z")

</div>

I’ve defined the following type: struct ComplexNumber{T\<:Real} \<: Number re::T im::T end I am having trouble understanding why the following two outer constructors behave differently: ComplexNumber(x::Real, y:…

---

## [Polychaos.jl for uncertainty propagation - avoiding manual operations with tensors](https://discourse.julialang.org/t/polychaos-jl-for-uncertainty-propagation-avoiding-manual-operations-with-tensors/106794)

<div class="topic-metadata">

**Author:** [@fabmnc](https://discourse.julialang.org/u/fabmnc)\
**Replies:** 8\
**Last updated:** [March 21, 2024, 1:17am UTC](https://discourse.julialang.org/t/polychaos-jl-for-uncertainty-propagation-avoiding-manual-operations-with-tensors/106794 "2024-03-21T01:17:17Z")

</div>

Hi everybody, I am assessing and trying to get my head around different ways of estimating the propagation of the uncertainty in some models (at this point, my testing models are not ODE, they are simple: model(inputs) …

---

## [Swapping in a Binary Search Tree, and Leaf-Only Trees](https://discourse.julialang.org/t/swapping-in-a-binary-search-tree-and-leaf-only-trees/111839)

<div class="topic-metadata">

**Author:** [@narnold0](https://discourse.julialang.org/u/narnold0)\
**Replies:** 3\
**Last updated:** [March 20, 2024, 2:48pm UTC](https://discourse.julialang.org/t/swapping-in-a-binary-search-tree-and-leaf-only-trees/111839 "2024-03-20T14:48:42Z")

</div>

Hi there, I’m trying to implement the Bentley-Ottmann Algorithm in Julia. My problem is that I’ve only found out now that this Algorithm doesn’t utilize the normal implementation of a BST (AVL tree, RedBlack tree etc… f…

---

## [Using RecursiveArrayTools.ArrayPartition to keep track of control parameters](https://discourse.julialang.org/t/using-recursivearraytools-arraypartition-to-keep-track-of-control-parameters/111906)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 11:57pm UTC](https://discourse.julialang.org/t/using-recursivearraytools-arraypartition-to-keep-track-of-control-parameters/111906 "2024-03-20T23:57:36Z")

</div>

I’m making some plans for the QuantumControl package to extend from optimizing arbitrary time-continuous control fields to control fields that are described analytically by a handful of scalar control parameters. Withou…

---

## [How to fix error UndefVarError when eval using?](https://discourse.julialang.org/t/how-to-fix-error-undefvarerror-when-eval-using/93503)

<div class="topic-metadata">

**Author:** [@Tatiana\_P](https://discourse.julialang.org/u/Tatiana_P)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 11:21pm UTC](https://discourse.julialang.org/t/how-to-fix-error-undefvarerror-when-eval-using/93503 "2024-03-20T23:21:05Z")

</div>

I have some string with function (curve\_expr). I need to give another name to this function and then use find\_zero for my model. Unfortunatelly, I got the error: UndefVarError(:find\_zero). Here are the code: i=1 j=2 cu…

---

## [\`eval(Symbol("varname")\` causes \`UndefVarError\` although the variable is defined](https://discourse.julialang.org/t/eval-symbol-varname-causes-undefvarerror-although-the-variable-is-defined/23726)

<div class="topic-metadata">

**Author:** [@leejm516](https://discourse.julialang.org/u/leejm516)\
**Replies:** 8\
**Last updated:** [March 20, 2024, 11:16pm UTC](https://discourse.julialang.org/t/eval-symbol-varname-causes-undefvarerror-although-the-variable-is-defined/23726 "2024-03-20T23:16:20Z")

</div>

I am revising the codes of COBRA.jl for using it on julia \> 1.0. https://github.com/opencobra/COBRA.jl/blob/master/test/p\_all.jl https://github.com/opencobra/COBRA.jl/blob/master/src/distributedFBA.jl (from Line 857) D…

---

## [Looking for SciMLSensitivity Example with LinearSolve](https://discourse.julialang.org/t/looking-for-scimlsensitivity-example-with-linearsolve/111900)

<div class="topic-metadata">

**Author:** [@Mark\_Lau](https://discourse.julialang.org/u/Mark_Lau)\
**Replies:** 3\
**Last updated:** [March 20, 2024, 10:20pm UTC](https://discourse.julialang.org/t/looking-for-scimlsensitivity-example-with-linearsolve/111900 "2024-03-20T22:20:39Z")

</div>

I’m new to SciMLSensitivity.jl and am trying to learn the ropes. I wanted to try something simple to find the sensitivities of the solution to a LinearProblem with respect to parameters. I couldn’t find an example of how…

---

## [Are broadcast-assignment and \`copyto!\` safe with aliasing?](https://discourse.julialang.org/t/are-broadcast-assignment-and-copyto-safe-with-aliasing/111903)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 9:54pm UTC](https://discourse.julialang.org/t/are-broadcast-assignment-and-copyto-safe-with-aliasing/111903 "2024-03-20T21:54:13Z")

</div>

Are broadcast-assignment and copyto! between two AbstractVector objects guaranteed to be safe if the two vectors alias each other (in a non-crazy way)? I’m especially interested if copying from an array into itself is gu…

---

## [What happens if I switch environments after loading a package?](https://discourse.julialang.org/t/what-happens-if-i-switch-environments-after-loading-a-package/111898)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 2\
**Last updated:** [March 20, 2024, 8:57pm UTC](https://discourse.julialang.org/t/what-happens-if-i-switch-environments-after-loading-a-package/111898 "2024-03-20T20:57:32Z")

</div>

Following up from That seems sketchy. I’m not sure what behavior Julia guarantees if you load a package in one environment and then switch to another environment. What behavior does Julia guarantee in such a situati…

---

## [Can't terminate input for readlines() in VSCode REPL (Windows 10)](https://discourse.julialang.org/t/cant-terminate-input-for-readlines-in-vscode-repl-windows-10/111896)

<div class="topic-metadata">

**Author:** [@olmdshumel](https://discourse.julialang.org/u/olmdshumel)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 8:12pm UTC](https://discourse.julialang.org/t/cant-terminate-input-for-readlines-in-vscode-repl-windows-10/111896 "2024-03-20T20:12:25Z")

</div>

I’m using readlines() to get multi-line input with a non-fixed number of lines of user input from stdin, but I can’t get readlines() to stop taking input. I’ve tried alt+enter, esc+enter, shift+enter, alt+shift+enter, ct…

---

## [Conversion from float to complex?](https://discourse.julialang.org/t/conversion-from-float-to-complex/111890)

<div class="topic-metadata">

**Author:** [@Sarah\_Groves](https://discourse.julialang.org/u/Sarah_Groves)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 7:12pm UTC](https://discourse.julialang.org/t/conversion-from-float-to-complex/111890 "2024-03-20T19:12:42Z")

</div>

I currently have code that takes two arrays, makes a grid of them, and then calculates the square root of the squares of each value: hx = 1 hy = 1 Nx = 16 Ny = 16 x = hx .\* (0:Nx-1) y = hy .\* (0:Ny-1) function meshgrid…

---

## [Video creation example does not work to naive way](https://discourse.julialang.org/t/video-creation-example-does-not-work-to-naive-way/111888)

<div class="topic-metadata">

**Author:** [@Julia2001](https://discourse.julialang.org/u/Julia2001)\
**Replies:** 2\
**Last updated:** [March 20, 2024, 7:02pm UTC](https://discourse.julialang.org/t/video-creation-example-does-not-work-to-naive-way/111888 "2024-03-20T19:02:48Z")

</div>

Hi, I would like to create a video from a set of pregenerated PNGs, but the naive way to copy the example from the docs does not work unfortunately. I’ve already adapted the example slightly to call the right(?) load() …

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

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