# Latest

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

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

**Page:** 805

---

## [Different behaviors on Latin Hypercube Sampling from two packages](https://discourse.julialang.org/t/different-behaviors-on-latin-hypercube-sampling-from-two-packages/93076)

<div class="topic-metadata">

**Author:** [@MJulia](https://discourse.julialang.org/u/MJulia)\
**Replies:** 8\
**Last updated:** [January 23, 2023, 11:51am UTC](https://discourse.julialang.org/t/different-behaviors-on-latin-hypercube-sampling-from-two-packages/93076 "2023-01-23T11:51:22Z")

</div>

I tried QuasiMonteCarlo.jl and LatinHypercubeSampling.jl. #for QuasiMonteCarlo.jl s1 = QuasiMonteCarlo.sample(25, \[0.0,0.0\], \[1.0,1.0\], LatinHypercubeSample()) 2×25 Matrix{Float64}: 0.4 0.56 0.96 1.0 0.68 0.16…

---

## [Incorrect summation of Float64](https://discourse.julialang.org/t/incorrect-summation-of-float64/93376)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 8\
**Last updated:** [January 23, 2023, 10:51am UTC](https://discourse.julialang.org/t/incorrect-summation-of-float64/93376 "2023-01-23T10:51:15Z")

</div>

Can others reproduce this? I’m getting a strange result when adding 0.1 +0.2 \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "…

---

## [Frameworks, or libraries to use for feasibility problems?](https://discourse.julialang.org/t/frameworks-or-libraries-to-use-for-feasibility-problems/93114)

<div class="topic-metadata">

**Author:** [@rakshith95](https://discourse.julialang.org/u/rakshith95)\
**Replies:** 4\
**Last updated:** [January 23, 2023, 10:53am UTC](https://discourse.julialang.org/t/frameworks-or-libraries-to-use-for-feasibility-problems/93114 "2023-01-23T10:53:49Z")

</div>

Hello, I have a problem where I need to find the closest (min norm) point to my data which is feasible under some (non convex) polynomial constraints. What would be the best framework/ libraries to use for a problem lik…

---

## [Ignore, please (uninformed question)](https://discourse.julialang.org/t/ignore-please-uninformed-question/93390)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 10:32am UTC](https://discourse.julialang.org/t/ignore-please-uninformed-question/93390 "2023-01-23T10:32:28Z")

</div>

In the course of preparing materials to explain boxplots to students, I am seeing something odd with the whiskers in a boxplot. The code ## example box X = randn(100) M = median(X) Q1 = quantile(X,0.25) Q3 = quantile(X,…

---

## [PackageCompiler. Re-use of system image](https://discourse.julialang.org/t/packagecompiler-re-use-of-system-image/93386)

<div class="topic-metadata">

**Author:** [@wave\_and\_matter](https://discourse.julialang.org/u/wave_and_matter)\
**Replies:** 0\
**Last updated:** [January 23, 2023, 9:17am UTC](https://discourse.julialang.org/t/packagecompiler-re-use-of-system-image/93386 "2023-01-23T09:17:37Z")

</div>

Parallel to the StaticCompiler i am also trying out the PackageCompiler. A problem that i have with it is that with the standard call using PackageCompiler create\_library("myPkg", "myPkgCompiled"; …

---

## [Setting up Julia in Visual Studio Code?](https://discourse.julialang.org/t/setting-up-julia-in-visual-studio-code/93311)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 2\
**Last updated:** [January 23, 2023, 9:16am UTC](https://discourse.julialang.org/t/setting-up-julia-in-visual-studio-code/93311 "2023-01-23T09:16:17Z")

</div>

Hi all! I wonder if you can help me here with something Julia and VSC related I used to work with Atom as a Julia IDE. Now that Atom is gone, I hear everyone is using VSC. In my clean new s MAC OS system I installed J…

---

## [Pluto This localhost page can’t be found](https://discourse.julialang.org/t/pluto-this-localhost-page-can-t-be-found/93383)

<div class="topic-metadata">

**Author:** [@xuanvietchu](https://discourse.julialang.org/u/xuanvietchu)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 9:03am UTC](https://discourse.julialang.org/t/pluto-this-localhost-page-can-t-be-found/93383 "2023-01-23T09:03:55Z")

</div>

Hello all, I recently started using Julia and Pluto notebook. However, I cannot launch Pluto after downloading it. This is what the error looks like: Everything appears normal on the Julia cmd, but when it automatic…

---

## [Trouble publishing my first package to GitHub](https://discourse.julialang.org/t/trouble-publishing-my-first-package-to-github/93293)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 4\
**Last updated:** [January 23, 2023, 1:53am UTC](https://discourse.julialang.org/t/trouble-publishing-my-first-package-to-github/93293 "2023-01-23T01:53:32Z")

</div>

I’m trying to create a package like this: using PkgTemplates t = Template(;user="chadagreene", plugins = \[GitHubActions(), Codecov()\]) t("/Users/cgreene/Documents/GitHub/Foo.jl") After running the lines above, in GitH…

---

## [CairoMakie hlines behaviour](https://discourse.julialang.org/t/cairomakie-hlines-behaviour/93247)

<div class="topic-metadata">

**Author:** [@SDA](https://discourse.julialang.org/u/SDA)\
**Replies:** 2\
**Last updated:** [January 23, 2023, 1:18am UTC](https://discourse.julialang.org/t/cairomakie-hlines-behaviour/93247 "2023-01-23T01:18:05Z")

</div>

Hi everyone, I’m trying to understand the output of the below MWE: using CairoMakie fig = Figure() ax=Axis(fig\[1, 1\]) xmins = zeros(10) xmaxs = \[1:5; 3:7\] ys = 1:10 hlines!(ax, ys, xmin=xmins, xmax=xmaxs) I wa…

---

## [MethodError for Composite Types](https://discourse.julialang.org/t/methoderror-for-composite-types/93246)

<div class="topic-metadata">

**Author:** [@jonlym](https://discourse.julialang.org/u/jonlym)\
**Replies:** 9\
**Last updated:** [January 23, 2023, 12:59am UTC](https://discourse.julialang.org/t/methoderror-for-composite-types/93246 "2023-01-23T00:59:46Z")

</div>

I would like to create a composite type, initialize some constant objects of that type, and then use the objects with methods I’ve coded. For example, below I have created a folder with 3 files: RectangleMod.jl - Defi…

---

## [Can I promote complex number to float number arrays?](https://discourse.julialang.org/t/can-i-promote-complex-number-to-float-number-arrays/92622)

<div class="topic-metadata">

**Author:** [@baizhan](https://discourse.julialang.org/u/baizhan)\
**Replies:** 3\
**Last updated:** [January 23, 2023, 12:26am UTC](https://discourse.julialang.org/t/can-i-promote-complex-number-to-float-number-arrays/92622 "2023-01-23T00:26:31Z")

</div>

Hello! I am new to julia and want to rewrite some of my former C/C++ code in this fascinating language. I want to solve some equations with complex solution. As far as I know, most numerical packages only accept real n…

---

## [KNITRO.jl. Could not load library .dylib](https://discourse.julialang.org/t/knitro-jl-could-not-load-library-dylib/93332)

<div class="topic-metadata">

**Author:** [@nkashaev](https://discourse.julialang.org/u/nkashaev)\
**Replies:** 9\
**Last updated:** [January 22, 2023, 8:51pm UTC](https://discourse.julialang.org/t/knitro-jl-could-not-load-library-dylib/93332 "2023-01-22T20:51:11Z")

</div>

Hi, When testing KNITRO, I got the following error: could not load library “” dlopen(.dylib, 0x0001): tried: ‘/Users/XXX/knitro-12.3.0-MacOS-64/lib/.dylib’ (no such file), ‘.dylib’ (no such file), ‘/System/Volumes/Pr…

---

## [Modifying \`jlcode.sty\` with Beamer/BeamerPoster frames](https://discourse.julialang.org/t/modifying-jlcode-sty-with-beamer-beamerposter-frames/93371)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 0\
**Last updated:** [January 22, 2023, 7:35pm UTC](https://discourse.julialang.org/t/modifying-jlcode-sty-with-beamer-beamerposter-frames/93371 "2023-01-22T19:35:33Z")

</div>

I am creating a Beamer presentation in which I am presenting some Julia code. By marking each frame as fragile, the styling looks great and goes edge to edge for a really nice finish. See screenshot However, instead o…

---

## [Functions embedded in Julia](https://discourse.julialang.org/t/functions-embedded-in-julia/93368)

<div class="topic-metadata">

**Author:** [@Andrea\_Del\_Bravo](https://discourse.julialang.org/u/Andrea_Del_Bravo)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 6:17pm UTC](https://discourse.julialang.org/t/functions-embedded-in-julia/93368 "2023-01-22T18:17:24Z")

</div>

I installed Julia on a laptop running ferdora 36 operating system. I tried to capture some xeta function values but the answer was that zeta(x) was not recognize a a valid command. I read on the Julia manual that zeta is…

---

## [Efficient sparse-dense matrix multiplication for diagonal-like sparse matrices](https://discourse.julialang.org/t/efficient-sparse-dense-matrix-multiplication-for-diagonal-like-sparse-matrices/93341)

<div class="topic-metadata">

**Author:** [@Ronan\_Gautier](https://discourse.julialang.org/u/Ronan_Gautier)\
**Replies:** 8\
**Last updated:** [January 22, 2023, 5:09pm UTC](https://discourse.julialang.org/t/efficient-sparse-dense-matrix-multiplication-for-diagonal-like-sparse-matrices/93341 "2023-01-22T17:09:39Z")

</div>

I want to implement an efficient and in-place sparse-dense matrix multiplication for sparse matrices with only a few non-zero offset diagonals (known as DIA sparse matrices). Here however, the number of non-zero diagonal…

---

## [Contributions for gsoc-23](https://discourse.julialang.org/t/contributions-for-gsoc-23/93342)

<div class="topic-metadata">

**Author:** [@Atharva\_Deshmukh](https://discourse.julialang.org/u/Atharva_Deshmukh)\
**Replies:** 1\
**Last updated:** [January 22, 2023, 4:27pm UTC](https://discourse.julialang.org/t/contributions-for-gsoc-23/93342 "2023-01-22T16:27:13Z")

</div>

I’m interested for working in julia for GSoC 23. Will be eager to know how to get started… Also would be helpful if you assign some beginner first issues to me

---

## [Structure not created but no error reported](https://discourse.julialang.org/t/structure-not-created-but-no-error-reported/93354)

<div class="topic-metadata">

**Author:** [@Bananthahally](https://discourse.julialang.org/u/Bananthahally)\
**Replies:** 4\
**Last updated:** [January 22, 2023, 3:49pm UTC](https://discourse.julialang.org/t/structure-not-created-but-no-error-reported/93354 "2023-01-22T15:49:01Z")

</div>

Hi folks I’m not able to get the following to yield the structure for the instance Tst described in the REPL further below. No error however is reported by Julia. mutable struct CvDv\_ForAll\_Voids CvDv\_Trapz :: …

---

## [Glibc runtime linking errors during install](https://discourse.julialang.org/t/glibc-runtime-linking-errors-during-install/92586)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 1\
**Last updated:** [January 22, 2023, 3:40pm UTC](https://discourse.julialang.org/t/glibc-runtime-linking-errors-during-install/92586 "2023-01-22T15:40:42Z")

</div>

I’m trying to build Julia (and dependencies) from source on a complicated system that has two glibc versions, a really old system version and a newer version I have to load. As I build Julia, I can get all of it’s depen…

---

## [Understanding Lighting in Makie](https://discourse.julialang.org/t/understanding-lighting-in-makie/93356)

<div class="topic-metadata">

**Author:** [@Whyborn](https://discourse.julialang.org/u/Whyborn)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 2:37pm UTC](https://discourse.julialang.org/t/understanding-lighting-in-makie/93356 "2023-01-22T14:37:56Z")

</div>

Hi, I’m having some problems understanding how the lighting works in Makie. I’m trying to draw a surface displaying a cone with a blunt leading edge, and then draw some flow fields extending from the surface of the cone…

---

## [Edit graphic files (gif) as rgb 0:255 matrices?](https://discourse.julialang.org/t/edit-graphic-files-gif-as-rgb-0-255-matrices/93361)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 0\
**Last updated:** [January 22, 2023, 2:18pm UTC](https://discourse.julialang.org/t/edit-graphic-files-gif-as-rgb-0-255-matrices/93361 "2023-01-22T14:18:06Z")

</div>

In which package to edit graphic files (gif) as rgb 0:255 matrices?

---

## [Github account suspended because of accident breaking of rule](https://discourse.julialang.org/t/github-account-suspended-because-of-accident-breaking-of-rule/92653)

<div class="topic-metadata">

**Author:** [@Yasir\_Altikriti](https://discourse.julialang.org/u/Yasir_Altikriti)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 1:03am UTC](https://discourse.julialang.org/t/github-account-suspended-because-of-accident-breaking-of-rule/92653 "2023-01-08T01:03:53Z")

</div>

Hi I’m learning ethical hacking. I made a phishing website just to see how it works. I once opened github and saw a suspension message. I used GitHub as a file manager or a drive I forgot that was a community that has r…

---

## [Vscode notebook inline plot backend problem, PyPlot.jl](https://discourse.julialang.org/t/vscode-notebook-inline-plot-backend-problem-pyplot-jl/93308)

<div class="topic-metadata">

**Author:** [@moon](https://discourse.julialang.org/u/moon)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 12:41pm UTC](https://discourse.julialang.org/t/vscode-notebook-inline-plot-backend-problem-pyplot-jl/93308 "2023-01-22T12:41:39Z")

</div>

How can I make PyPlot.jl (and probably matplotlib internally) recognize I have installkled gtk3? Error message is “Python GUI toolkit for gtk3 is not installed.”. background steps: Initial error below inside vscode no…

---

## [Strange issue in testing a package using Symbolics.jl](https://discourse.julialang.org/t/strange-issue-in-testing-a-package-using-symbolics-jl/93351)

<div class="topic-metadata">

**Author:** [@Isaia\_Nisoli](https://discourse.julialang.org/u/Isaia_Nisoli)\
**Replies:** 3\
**Last updated:** [January 22, 2023, 10:30am UTC](https://discourse.julialang.org/t/strange-issue-in-testing-a-package-using-symbolics-jl/93351 "2023-01-22T10:30:31Z")

</div>

I am going through a weird issue when writing a testset for a part of RigorousInvariantMeasures.jl that uses Symbolics.jl. I start the testset by using Symbolics, then call @variables z and when I run the tests Julia c…

---

## [Unable to update scatter plot via for loop](https://discourse.julialang.org/t/unable-to-update-scatter-plot-via-for-loop/93347)

<div class="topic-metadata">

**Author:** [@MK-1138](https://discourse.julialang.org/u/MK-1138)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 10:10am UTC](https://discourse.julialang.org/t/unable-to-update-scatter-plot-via-for-loop/93347 "2023-01-22T10:10:27Z")

</div>

I have (x,y) coordinates pairs saved in two Excel woorksheets, within the same file (workbook). I’m trying to plot a scatter plot by looping through using XLSX using Plots # reading Excel file's worksheets specific ra…

---

## [Matrix Product NL expression](https://discourse.julialang.org/t/matrix-product-nl-expression/93345)

<div class="topic-metadata">

**Author:** [@apateonas](https://discourse.julialang.org/u/apateonas)\
**Replies:** 1\
**Last updated:** [January 22, 2023, 9:35am UTC](https://discourse.julialang.org/t/matrix-product-nl-expression/93345 "2023-01-22T09:35:32Z")

</div>

Hello, I am new to JuMP. I want to create the following non-linear expression: KdagK = @NLexpression(model, K' \* K) Here, K is a matrix of complex variables. What is the best way to do this? Thank you!

---

## [Getting wrong values when using \\div (÷) operator](https://discourse.julialang.org/t/getting-wrong-values-when-using-div-operator/93329)

<div class="topic-metadata">

**Author:** [@Gianluca\_Fuwa](https://discourse.julialang.org/u/Gianluca_Fuwa)\
**Replies:** 10\
**Last updated:** [January 22, 2023, 9:23am UTC](https://discourse.julialang.org/t/getting-wrong-values-when-using-div-operator/93329 "2023-01-22T09:23:17Z")

</div>

Hello, I’ve stumbled upon a bug when using the \\div (÷) operator: 20÷1 \> 20 produces the expected result 20, but 20÷0.1 \> 199.0 gives the result 199.0. This continues up until dividing by 1e-6, from which point o…

---

## [Graphs, GraphPlot](https://discourse.julialang.org/t/graphs-graphplot/93304)

<div class="topic-metadata">

**Author:** [@46do14](https://discourse.julialang.org/u/46do14)\
**Replies:** 5\
**Last updated:** [January 22, 2023, 6:52am UTC](https://discourse.julialang.org/t/graphs-graphplot/93304 "2023-01-22T06:52:06Z")

</div>

could someone please help? I’m new to the Graphs package and I want to plot a graph (as described by the GraphPlot github documentation) using Graphs: smallgraph g = smallgraph(:karate) gplot(g) My problem is that t…

---

## [How do I make this allocation free?](https://discourse.julialang.org/t/how-do-i-make-this-allocation-free/93306)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 18\
**Last updated:** [January 22, 2023, 6:45am UTC](https://discourse.julialang.org/t/how-do-i-make-this-allocation-free/93306 "2023-01-22T06:45:35Z")

</div>

Hello! Suppose I have the parameters: using StaticArrays using LinearAlgebra h = 0.05 eta2 = (0.01)h \* (0.01)h points = rand(SVector{3,Float64},100000) v = points \* 0.05 And I wish to evaluate this ex…

---

## [Frobenius Norm objective with JuMP](https://discourse.julialang.org/t/frobenius-norm-objective-with-jump/93338)

<div class="topic-metadata">

**Author:** [@apateonas](https://discourse.julialang.org/u/apateonas)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 1:14am UTC](https://discourse.julialang.org/t/frobenius-norm-objective-with-jump/93338 "2023-01-22T01:14:47Z")

</div>

I am looking to use the frobenius norm of a matrix as an objective. Here is the setup: nkrauss = 4 model = Model(Ipopt.Optimizer) # Krauss operator variables nKelems = nkrauss \* dims^2 Kelems = \[@variable(model, set =…

---

## [JuMP solution is not correct: PiecewiseLinearOpt](https://discourse.julialang.org/t/jump-solution-is-not-correct-piecewiselinearopt/93321)

<div class="topic-metadata">

**Author:** [@salvaguerrero](https://discourse.julialang.org/u/salvaguerrero)\
**Replies:** 1\
**Last updated:** [January 22, 2023, 12:16am UTC](https://discourse.julialang.org/t/jump-solution-is-not-correct-piecewiselinearopt/93321 "2023-01-22T00:16:47Z")

</div>

Good morning, I’m working on a MILP model where a non-linear function is linearized using PiecewiseLinearOpt and Gurobi. The model is solved and the objective value reached is correct, but the constraints are not met. …

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

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