# Latest

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

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

**Page:** 819

---

## [Sortperm with keyword lt = !isless throws BoundsError](https://discourse.julialang.org/t/sortperm-with-keyword-lt-isless-throws-boundserror/92648)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 9\
**Last updated:** [January 8, 2023, 12:52pm UTC](https://discourse.julialang.org/t/sortperm-with-keyword-lt-isless-throws-boundserror/92648 "2023-01-08T12:52:30Z")

</div>

Does this happen to any of you too? Do you have any idea why? sortperm(rand(1:10,10)) # ok sortperm(rand(1:10,10^2)) # ok sortperm(rand(1:10,10^7)) # ok sortperm(rand(1:10,10), lt= \>=) #ok sortperm(rand(1:10,10^2),…

---

## [How to Get Rid of Blue Line in This Plot of Reflection?](https://discourse.julialang.org/t/how-to-get-rid-of-blue-line-in-this-plot-of-reflection/92661)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 1\
**Last updated:** [January 8, 2023, 11:59am UTC](https://discourse.julialang.org/t/how-to-get-rid-of-blue-line-in-this-plot-of-reflection/92661 "2023-01-08T11:59:17Z")

</div>

Hi all, I am filling a region between two curves from reflection. using Plots, LaTeXStrings, Plots.PlotMeasures gr() function make\_fg\_plot() g(x) = sin(x^2) + cos(2x) -1 yshift = y -\> y + 5 yreflection = …

---

## [Difficulty in using ccall](https://discourse.julialang.org/t/difficulty-in-using-ccall/92665)

<div class="topic-metadata">

**Author:** [@aditi\_dey29](https://discourse.julialang.org/u/aditi_dey29)\
**Replies:** 4\
**Last updated:** [January 8, 2023, 10:53am UTC](https://discourse.julialang.org/t/difficulty-in-using-ccall/92665 "2023-01-08T10:53:29Z")

</div>

I’m trying to wrap the LibRaw C library in Julia using Clang.jl to provide the .raw image support in Julia. The wrapping was done successfully to give me a .jl file, with julia functions calling all the respective C lang…

---

## ["No matching function wrapper was found!" with 1.8.4 release of Julia](https://discourse.julialang.org/t/no-matching-function-wrapper-was-found-with-1-8-4-release-of-julia/92638)

<div class="topic-metadata">

**Author:** [@Mikel\_Antonana](https://discourse.julialang.org/u/Mikel_Antonana)\
**Replies:** 4\
**Last updated:** [January 8, 2023, 10:36am UTC](https://discourse.julialang.org/t/no-matching-function-wrapper-was-found-with-1-8-4-release-of-julia/92638 "2023-01-08T10:36:02Z")

</div>

Hi, I have a notebook where the call sol0=solve(prob, alg, dt=dt, adaptive=false); fails with error: “No matching function wrapper was found” with 1.8.4 release but works correctly with 1.6.6 release. The notebook…

---

## [Multiple GPUs - One GPU per Process - Only one GPU works on four](https://discourse.julialang.org/t/multiple-gpus-one-gpu-per-process-only-one-gpu-works-on-four/92611)

<div class="topic-metadata">

**Author:** [@quantiota](https://discourse.julialang.org/u/quantiota)\
**Replies:** 1\
**Last updated:** [January 8, 2023, 8:07am UTC](https://discourse.julialang.org/t/multiple-gpus-one-gpu-per-process-only-one-gpu-works-on-four/92611 "2023-01-08T08:07:57Z")

</div>

hey, After checking nvidia-smi command, only one GPU works on four when running this code. It seems that the processes are not distributed to the workers, Am I missing something? using Plots using Flux:params using F…

---

## [Any packages/tools to automatically turn natural codes for matrix operations into pre-allocated forms?](https://discourse.julialang.org/t/any-packages-tools-to-automatically-turn-natural-codes-for-matrix-operations-into-pre-allocated-forms/92657)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 6:00am UTC](https://discourse.julialang.org/t/any-packages-tools-to-automatically-turn-natural-codes-for-matrix-operations-into-pre-allocated-forms/92657 "2023-01-08T06:00:15Z")

</div>

For example, turn F=D\*(A+B\*C)+E into G=copy(A) mul!(G, B, C, true, true) F=copy(E) mul!(F, D, G, true, true) Thanks.

---

## [Jump delete is slower than building a new model](https://discourse.julialang.org/t/jump-delete-is-slower-than-building-a-new-model/92597)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 6\
**Last updated:** [January 8, 2023, 4:16am UTC](https://discourse.julialang.org/t/jump-delete-is-slower-than-building-a-new-model/92597 "2023-01-08T04:16:16Z")

</div>

I have a rather large JuMP model which takes \>0.2 seconds to build but only 0.1 seconds to solve. I have to solve this model thousands of times with only a small change to a portion of the constraints, it therefore seems…

---

## [OptimizationMOI Ipopt violating inequality constraint](https://discourse.julialang.org/t/optimizationmoi-ipopt-violating-inequality-constraint/92608)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 26\
**Last updated:** [January 8, 2023, 12:57am UTC](https://discourse.julialang.org/t/optimizationmoi-ipopt-violating-inequality-constraint/92608 "2023-01-08T00:57:10Z")

</div>

Apparently, I still cannot get inequality constraints working, but now using Optimization.jl and IPOPT via the OptimizationMOI package. Problem The problem is that IPOPT violates my inequality constraint during a step, …

---

## [De-stdlibification impacting usability of scripts from the command line](https://discourse.julialang.org/t/de-stdlibification-impacting-usability-of-scripts-from-the-command-line/92650)

<div class="topic-metadata">

**Author:** [@brenhinkeller](https://discourse.julialang.org/u/brenhinkeller)\
**Replies:** 3\
**Last updated:** [January 7, 2023, 11:40pm UTC](https://discourse.julialang.org/t/de-stdlibification-impacting-usability-of-scripts-from-the-command-line/92650 "2023-01-07T23:40:49Z")

</div>

Please chime in here if you have any opinions about the fact that any scripts that do using SomeStdlib (currently starting with DelimitedFiles, but lots of others including Statistics are on the chopping block too) are a…

---

## [How to view docstrings for functions in my submodules?](https://discourse.julialang.org/t/how-to-view-docstrings-for-functions-in-my-submodules/92649)

<div class="topic-metadata">

**Author:** [@lancer](https://discourse.julialang.org/u/lancer)\
**Replies:** 2\
**Last updated:** [January 7, 2023, 10:29pm UTC](https://discourse.julialang.org/t/how-to-view-docstrings-for-functions-in-my-submodules/92649 "2023-01-07T22:29:23Z")

</div>

My local package is organized in modules, which my top-level package file includes and then uses. When working on the code in a REPL (after “using Revise, MyPackage”), I can see my documentation for the few toplevel func…

---

## [CircleFit testing fails for v1.9.0-beta2 on github, but works locally](https://discourse.julialang.org/t/circlefit-testing-fails-for-v1-9-0-beta2-on-github-but-works-locally/92640)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 9\
**Last updated:** [January 7, 2023, 9:52pm UTC](https://discourse.julialang.org/t/circlefit-testing-fails-for-v1-9-0-beta2-on-github-but-works-locally/92640 "2023-01-07T21:52:43Z")

</div>

I recently tested my package for fitting circles locally with v1.9.0-beta2 and the tests passed. Now I added the version to the github workflow but version v1.9.0-beta2 fails the tests. Does anyone have an idea how to f…

---

## [Index of max values of N columns in a DataFrame without manually entering each column](https://discourse.julialang.org/t/index-of-max-values-of-n-columns-in-a-dataframe-without-manually-entering-each-column/92532)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 15\
**Last updated:** [January 7, 2023, 9:08pm UTC](https://discourse.julialang.org/t/index-of-max-values-of-n-columns-in-a-dataframe-without-manually-entering-each-column/92532 "2023-01-07T21:08:14Z")

</div>

Hi pretty sure I’m overlooking something simple here but would appreciate some pointers. Suppose I have the following DataFrame df = DataFrame( idA = rand(-100:100,5), idB = rand(-100:100,5), C = rand(-100:100,5), idD …

---

## [PlotlyJS Buttons question](https://discourse.julialang.org/t/plotlyjs-buttons-question/92577)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 5\
**Last updated:** [January 7, 2023, 7:50pm UTC](https://discourse.julialang.org/t/plotlyjs-buttons-question/92577 "2023-01-07T19:50:16Z")

</div>

Hi everyone. I am trying to understand how to do a couple of simple things with the buttons in PlotlyJS and I wonder if you can help me. I have some data, and I want to add a dropdown menu to chance the color of each s…

---

## [Specifying return Activity in Enzyme](https://discourse.julialang.org/t/specifying-return-activity-in-enzyme/92641)

<div class="topic-metadata">

**Author:** [@RS-Coop](https://discourse.julialang.org/u/RS-Coop)\
**Replies:** 0\
**Last updated:** [January 7, 2023, 4:46pm UTC](https://discourse.julialang.org/t/specifying-return-activity-in-enzyme/92641 "2023-01-07T16:46:50Z")

</div>

Consider a function f:\\mathbb{R}^n\\to\\mathbb{R}. Following along from the Enzyme AutoDiff API documentation example on computing the Hessian via FoR mixed mode AD, I have written the following julia function to compute H…

---

## [Text wrap in Makie?](https://discourse.julialang.org/t/text-wrap-in-makie/92631)

<div class="topic-metadata">

**Author:** [@Jon\_Norberg](https://discourse.julialang.org/u/Jon_Norberg)\
**Replies:** 2\
**Last updated:** [January 7, 2023, 3:04pm UTC](https://discourse.julialang.org/t/text-wrap-in-makie/92631 "2023-01-07T15:04:20Z")

</div>

Looking at documentation for Makie text there is a keyword for text wrapping: word\_wrap\_with::Real = -1. I need a bit of explanatory text in one panel but I cannot get the wrap to work. Any one has an idea how to fix tha…

---

## [\[ANN\] Invariants.jl: Compose and check invariants and get detailed error messages](https://discourse.julialang.org/t/ann-invariants-jl-compose-and-check-invariants-and-get-detailed-error-messages/92616)

<div class="topic-metadata">

**Author:** [@holylorenzo](https://discourse.julialang.org/u/holylorenzo)\
**Replies:** 2\
**Last updated:** [January 7, 2023, 1:49pm UTC](https://discourse.julialang.org/t/ann-invariants-jl-compose-and-check-invariants-and-get-detailed-error-messages/92616 "2023-01-07T13:49:12Z")

</div>

Happy to announce a smaller package this time, Invariants.jl! (GitHub, Documentation) Invariants.jl is a Julia package for writing invariants for providing helpful, detailed error messages to package users when they m…

---

## [VS Code linter options?](https://discourse.julialang.org/t/vs-code-linter-options/92333)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [January 7, 2023, 10:31am UTC](https://discourse.julialang.org/t/vs-code-linter-options/92333 "2023-01-07T10:31:40Z")

</div>

According to the Linter · Julia in VS Code documentation You can … configure it via various options with the julia.lint. prefix. However if I select it (View → Command Palette → insert julia.lint. ) I do not see any …

---

## [BSOD while precompiling Plots package](https://discourse.julialang.org/t/bsod-while-precompiling-plots-package/92618)

<div class="topic-metadata">

**Author:** [@cpet](https://discourse.julialang.org/u/cpet)\
**Replies:** 5\
**Last updated:** [January 7, 2023, 9:36am UTC](https://discourse.julialang.org/t/bsod-while-precompiling-plots-package/92618 "2023-01-07T09:36:36Z")

</div>

I am a new user running Julia 1.8.3 on WSL2. I am installing the Plots package by running pkg\> add Plots. The installation runs until partway through precompilation, then my computer crashes with a BSOD error code: MEMOR…

---

## [Symbolics and Convex](https://discourse.julialang.org/t/symbolics-and-convex/92628)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 3\
**Last updated:** [January 7, 2023, 9:16am UTC](https://discourse.julialang.org/t/symbolics-and-convex/92628 "2023-01-07T09:16:22Z")

</div>

Hi, I’d like to consider a symbolic variable as a constant from Convex. For example, julia\> using Symbolics julia\> using Convex julia\> @variables x 1-element Vector{Num}: x julia\> u = Convex.Variable(1) Variable si…

---

## [Defining an Anonymous Function in a Macro](https://discourse.julialang.org/t/defining-an-anonymous-function-in-a-macro/92625)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 2\
**Last updated:** [January 7, 2023, 5:22am UTC](https://discourse.julialang.org/t/defining-an-anonymous-function-in-a-macro/92625 "2023-01-07T05:22:07Z")

</div>

I’m working on a macro that defines several functions that all have the same parameters. However, upon evaluation, the keyword arguments of the functions are getting prefixed with Main. as though they are variables that …

---

## [Find zero of a nonlinear equation using Julia](https://discourse.julialang.org/t/find-zero-of-a-nonlinear-equation-using-julia/61974)

<div class="topic-metadata">

**Author:** [@maoc](https://discourse.julialang.org/u/maoc)\
**Replies:** 14\
**Last updated:** [January 7, 2023, 12:47am UTC](https://discourse.julialang.org/t/find-zero-of-a-nonlinear-equation-using-julia/61974 "2023-01-07T00:47:16Z")

</div>

After a process usyng the SymPy in Julia, I generated a system of nonlinear equations. For the sake of simplicity, I am going to put an approximation here for the case of just a non-linear equation. What I get is somethi…

---

## [ShortCodes.jl to embed content from Twitter, YouTube etc in Pluto](https://discourse.julialang.org/t/shortcodes-jl-to-embed-content-from-twitter-youtube-etc-in-pluto/56147)

<div class="topic-metadata">

**Author:** [@hellemo](https://discourse.julialang.org/u/hellemo)\
**Replies:** 7\
**Last updated:** [January 7, 2023, 12:00am UTC](https://discourse.julialang.org/t/shortcodes-jl-to-embed-content-from-twitter-youtube-etc-in-pluto/56147 "2023-01-07T00:00:32Z")

</div>

I’m using Pluto more and more for presentations, and like to include some videos, tweets or images to spice it up a little. While using embed codes from each website works fine, I started playing around with something al…

---

## [Compilation error in Zygote, Flux and CUDA interaction](https://discourse.julialang.org/t/compilation-error-in-zygote-flux-and-cuda-interaction/92571)

<div class="topic-metadata">

**Author:** [@LucasMSpereira](https://discourse.julialang.org/u/LucasMSpereira)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 11:25pm UTC](https://discourse.julialang.org/t/compilation-error-in-zygote-flux-and-cuda-interaction/92571 "2023-01-06T23:25:32Z")

</div>

I’m trying to implement a conditioned adaptation of the wasserstein generative adversarial networks with gradient penalty (WGAN-GP) training algorithm. But my function to calculate the gradient penalty isn’t working on t…

---

## [New Bayesian Data Analysis Meetups](https://discourse.julialang.org/t/new-bayesian-data-analysis-meetups/92619)

<div class="topic-metadata">

**Author:** [@bparbhu](https://discourse.julialang.org/u/bparbhu)\
**Replies:** 0\
**Last updated:** [January 6, 2023, 10:16pm UTC](https://discourse.julialang.org/t/new-bayesian-data-analysis-meetups/92619 "2023-01-06T22:16:19Z")

</div>

Hey All, Happy New Year to everyone! I recently took over the Bayesian Data Analysis meetup as an organizer and I’m looking for meetup ideas and topics that people in the community want to present on or talk about. I…

---

## [Shouldn't \`bunchkaufman\` be actually named \`ldlt\`?](https://discourse.julialang.org/t/shouldnt-bunchkaufman-be-actually-named-ldlt/77641)

<div class="topic-metadata">

**Author:** [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Replies:** 5\
**Last updated:** [January 6, 2023, 9:56pm UTC](https://discourse.julialang.org/t/shouldnt-bunchkaufman-be-actually-named-ldlt/77641 "2023-01-06T21:56:36Z")

</div>

I am just musing over the choise of the name bunchkaufman for the bunkaufman function. If I understand it correctly, the function provides an implementation of an algorithm for LDLᵀ factorization of a symmetric and in ge…

---

## [Extracting model params/equivalent of broom tidiers in julia?](https://discourse.julialang.org/t/extracting-model-params-equivalent-of-broom-tidiers-in-julia/92560)

<div class="topic-metadata">

**Author:** [@jonfoong](https://discourse.julialang.org/u/jonfoong)\
**Replies:** 1\
**Last updated:** [January 6, 2023, 8:13pm UTC](https://discourse.julialang.org/t/extracting-model-params-equivalent-of-broom-tidiers-in-julia/92560 "2023-01-06T20:13:14Z")

</div>

Hi I am new to Julia and am using it to run mixed models since it’s so much faster. However I’ve no experience with Julia and it feels like online support is scarce. I would like help with extracting model parameters but…

---

## [Manage Python packages to use in Julia](https://discourse.julialang.org/t/manage-python-packages-to-use-in-julia/92584)

<div class="topic-metadata">

**Author:** [@EmanuelCastanho](https://discourse.julialang.org/u/EmanuelCastanho)\
**Replies:** 1\
**Last updated:** [January 6, 2023, 12:19am UTC](https://discourse.julialang.org/t/manage-python-packages-to-use-in-julia/92584 "2023-01-06T00:19:30Z")

</div>

I am using Python packages in Julia that need to be installed with Conda.jl. I want those packages to be organised on an isolated environment (not root) to prevent conflicts. The goal is to use PyCall.jl. It says on th…

---

## [Guideline on verbose in module (design pattern?)](https://discourse.julialang.org/t/guideline-on-verbose-in-module-design-pattern/72659)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 0\
**Last updated:** [December 6, 2021, 3:45pm UTC](https://discourse.julialang.org/t/guideline-on-verbose-in-module-design-pattern/72659 "2021-12-06T15:45:39Z")

</div>

So far I use a kwarg verbose (0,1,2,inf) to allow diagnostic information during my computation: verbose && println("message here") A more systematic way to handle this is using the Logging module and @info, @warn, @err…

---

## [Keeping well-defined mathematical functions orthogonal to a project structs design](https://discourse.julialang.org/t/keeping-well-defined-mathematical-functions-orthogonal-to-a-project-structs-design/92601)

<div class="topic-metadata">

**Author:** [@dalbandea](https://discourse.julialang.org/u/dalbandea)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 5:51pm UTC](https://discourse.julialang.org/t/keeping-well-defined-mathematical-functions-orthogonal-to-a-project-structs-design/92601 "2023-01-06T17:51:09Z")

</div>

I have a doubt regarding a design pattern. To expose it I’m going to refer to IterativeSolvers.jl’s Conjugate Gradient algorithm. For the end user, they supply the function cg(A, b; kwargs...), which solves the equation…

---

## [I Have PlotlyJS Codes to Plot Inverted Cone and Cylinder, How to Combine them into One?](https://discourse.julialang.org/t/i-have-plotlyjs-codes-to-plot-inverted-cone-and-cylinder-how-to-combine-them-into-one/92589)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 3:31pm UTC](https://discourse.julialang.org/t/i-have-plotlyjs-codes-to-plot-inverted-cone-and-cylinder-how-to-combine-them-into-one/92589 "2023-01-06T15:31:14Z")

</div>

Hi all, I have code to plot each of the cylinder and cone from this discourse. How to combine them into one, so the inverted cone will be inside the cylinder? The color needs to be adjusted as well, can we make a gri…

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

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