# Latest

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

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

**Page:** 1053

---

## [Can't show plot in windows 10 from REPL](https://discourse.julialang.org/t/cant-show-plot-in-windows-10-from-repl/80342)

<div class="topic-metadata">

**Author:** [@kzmath](https://discourse.julialang.org/u/kzmath)\
**Replies:** 5\
**Last updated:** [May 2, 2022, 8:56pm UTC](https://discourse.julialang.org/t/cant-show-plot-in-windows-10-from-repl/80342 "2022-05-02T20:56:59Z")

</div>

Hi everyone! I can’t seem to get plots to show from julia REPL on windows 10 for some reason. Say I type the following to julia REPL: using Plots # I am using the default GR backend p = plot(rand(5)) # No output gui(p…

---

## [Create matrix by combining vectors element-wise](https://discourse.julialang.org/t/create-matrix-by-combining-vectors-element-wise/80373)

<div class="topic-metadata">

**Author:** [@axel365](https://discourse.julialang.org/u/axel365)\
**Replies:** 11\
**Last updated:** [May 2, 2022, 8:35pm UTC](https://discourse.julialang.org/t/create-matrix-by-combining-vectors-element-wise/80373 "2022-05-02T20:35:39Z")

</div>

Hello everybody, The following code does what I want: create a 2 columns matrix containing in rows all the element-wise combination of 2 vectors. function combination\_vectors(v1, v2) c1 = reduce(vcat, \[fill(v1\[i\], …

---

## [Unexpected type instability with getproperty()](https://discourse.julialang.org/t/unexpected-type-instability-with-getproperty/80381)

<div class="topic-metadata">

**Author:** [@michakraus](https://discourse.julialang.org/u/michakraus)\
**Replies:** 5\
**Last updated:** [May 2, 2022, 8:17pm UTC](https://discourse.julialang.org/t/unexpected-type-instability-with-getproperty/80381 "2022-05-02T20:17:47Z")

</div>

I have a data type that stores a vector z and a list of views to that vector, whose index ranges can be specified by the user, here a and b. The views are also accessible via m.a and m.b by overloading getproperty. Depe…

---

## [Please give feedback on my function](https://discourse.julialang.org/t/please-give-feedback-on-my-function/80280)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 21\
**Last updated:** [May 2, 2022, 6:06pm UTC](https://discourse.julialang.org/t/please-give-feedback-on-my-function/80280 "2022-05-02T18:06:50Z")

</div>

I’m very new to Julia, and to get started I’m translating some old MATLAB functions into a package that will be used analyze glacier measurements. Here’s my first attempt at writing a function, and I want to make sure I’…

---

## [Comparing ODE's](https://discourse.julialang.org/t/comparing-odes/79994)

<div class="topic-metadata">

**Author:** [@BinaryBot](https://discourse.julialang.org/u/BinaryBot)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 5:01pm UTC](https://discourse.julialang.org/t/comparing-odes/79994 "2022-05-02T17:01:35Z")

</div>

I would like to compare the simulation result of multiple version of ODE solvers (i.e compare different tolerance values and use different solvers). Is there a way that I can create a dictionary of the algorithms and the…

---

## [Feedback for efficiency of Sparse Matrix operations](https://discourse.julialang.org/t/feedback-for-efficiency-of-sparse-matrix-operations/80362)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 7\
**Last updated:** [May 2, 2022, 4:24pm UTC](https://discourse.julialang.org/t/feedback-for-efficiency-of-sparse-matrix-operations/80362 "2022-05-02T16:24:57Z")

</div>

This is my first time working with SparseArrays in Julia. I needed a few operations and was wondering if I am as efficient as I can be. I do want to preserve the original matrices (explicitly not doing anything in-place)…

---

## [LaTeX z-label in 3D Makie plot](https://discourse.julialang.org/t/latex-z-label-in-3d-makie-plot/80369)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 4:26pm UTC](https://discourse.julialang.org/t/latex-z-label-in-3d-makie-plot/80369 "2022-05-02T16:26:57Z")

</div>

I want to make a 3D surface plot in Makie, and I need the z-axis label to be formatted with \\LaTeX. Whenever I add such a label, all the content in the plot disappears. For example, the following plot works without addin…

---

## [Choosing pdf output version in Plots.jl](https://discourse.julialang.org/t/choosing-pdf-output-version-in-plots-jl/80359)

<div class="topic-metadata">

**Author:** [@Janssena](https://discourse.julialang.org/u/Janssena)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 4:09pm UTC](https://discourse.julialang.org/t/choosing-pdf-output-version-in-plots-jl/80359 "2022-05-02T16:09:37Z")

</div>

Hey all, I use Plots.jl to create and save images for publication. Generally I use GR.jl and save the plots to PDF. On my machine, using Plots.savefig results in Plots.jl saving a PDF1.2 file. My publisher uses PDF1.7,…

---

## [NLsolve.jl for different input and output dimensions?](https://discourse.julialang.org/t/nlsolve-jl-for-different-input-and-output-dimensions/80202)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 13\
**Last updated:** [May 2, 2022, 3:13pm UTC](https://discourse.julialang.org/t/nlsolve-jl-for-different-input-and-output-dimensions/80202 "2022-05-02T15:13:29Z")

</div>

Hi all, I am currently trying out NLsolve.jl to find roots of given functions, which works great at the moment, but I realized that I can’t seem to find a way to specify a dimension for the output different from the inp…

---

## [Jluna, the Modern Julia Wrapper for C++, has entered 1.0 Beta](https://discourse.julialang.org/t/jluna-the-modern-julia-wrapper-for-c-has-entered-1-0-beta/80303)

<div class="topic-metadata">

**Author:** [@Clemapfel](https://discourse.julialang.org/u/Clemapfel)\
**Replies:** 5\
**Last updated:** [May 2, 2022, 2:25pm UTC](https://discourse.julialang.org/t/jluna-the-modern-julia-wrapper-for-c-has-entered-1-0-beta/80303 "2022-05-02T14:25:04Z")

</div>

After many weeks of updates, jluna, the Julia ↔ C++ wrapper, is feature-complete. It is available for free, under MIT license, here: https://github.com/Clemapfel/jluna It now includes: handwritten manual aimed at peo…

---

## [Coordinating community efforts to enrich function docs](https://discourse.julialang.org/t/coordinating-community-efforts-to-enrich-function-docs/80338)

<div class="topic-metadata">

**Author:** [@johnmyleswhite](https://discourse.julialang.org/u/johnmyleswhite)\
**Replies:** 44\
**Last updated:** [May 2, 2022, 1:57pm UTC](https://discourse.julialang.org/t/coordinating-community-efforts-to-enrich-function-docs/80338 "2022-05-02T13:57:33Z")

</div>

Following up on some of the positive suggestions in a recent thread, I’d like to use this thread to coordinate efforts with anyone who feels Julia’s function-level documentation can be better. Discourse lacks the ability…

---

## [Why is closure slower than handmade callable struct?](https://discourse.julialang.org/t/why-is-closure-slower-than-handmade-callable-struct/80361)

<div class="topic-metadata">

**Author:** [@FedericoStra](https://discourse.julialang.org/u/FedericoStra)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 1:49pm UTC](https://discourse.julialang.org/t/why-is-closure-slower-than-handmade-callable-struct/80361 "2022-05-02T13:49:38Z")

</div>

I’m having a hard time trying to understand why in the following code a closure is slower than an equivalent hand-made callable struct. using BenchmarkTools using Interpolations using LinearAlgebra: norm using StaticArr…

---

## [Downloads.download: ERROR: Operation too slow. Less than 1 bytes/sec transferred](https://discourse.julialang.org/t/downloads-download-error-operation-too-slow-less-than-1-bytes-sec-transferred/80027)

<div class="topic-metadata">

**Author:** [@anon28281882](https://discourse.julialang.org/u/anon28281882)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 12:54pm UTC](https://discourse.julialang.org/t/downloads-download-error-operation-too-slow-less-than-1-bytes-sec-transferred/80027 "2022-05-02T12:54:40Z")

</div>

On Julia 1.6.6 I am constantly getting following ERROR at various stages (sometimes after ~500, sometimes after ~1500 files being downloaded) when trying to download a few thousand files: ERROR: Operation too slow. Less…

---

## [Packages all should use, all the time (at least be aware of), to combine in one superpackage: Julia2.jl](https://discourse.julialang.org/t/packages-all-should-use-all-the-time-at-least-be-aware-of-to-combine-in-one-superpackage-julia2-jl/80300)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 1\
**Last updated:** [May 2, 2022, 12:22pm UTC](https://discourse.julialang.org/t/packages-all-should-use-all-the-time-at-least-be-aware-of-to-combine-in-one-superpackage-julia2-jl/80300 "2022-05-02T12:22:03Z")

</div>

I’m thinking of a curated list of packages, that (almost) all can agree on, to bring up to syntax-parity with e.g. Python (which has e.g. pattern matching), and so new users do not have to discover these packages for the…

---

## [Parallel HDF5 crashing on build](https://discourse.julialang.org/t/parallel-hdf5-crashing-on-build/80135)

<div class="topic-metadata">

**Author:** [@Chiil](https://discourse.julialang.org/u/Chiil)\
**Replies:** 1\
**Last updated:** [May 2, 2022, 12:07pm UTC](https://discourse.julialang.org/t/parallel-hdf5-crashing-on-build/80135 "2022-05-02T12:07:31Z")

</div>

I am using a MPI-enabled HDF5 and suddenly calling up from the Julia package manager fails with ERROR: Error building \`HDF5\`: signal (11): Segmentation fault: 11 in expression starting at /Users/chiel/.julia/packages/…

---

## [New package Combinat](https://discourse.julialang.org/t/new-package-combinat/80363)

<div class="topic-metadata">

**Author:** [@Jean\_Michel](https://discourse.julialang.org/u/Jean_Michel)\
**Replies:** 0\
**Last updated:** [May 2, 2022, 12:02pm UTC](https://discourse.julialang.org/t/new-package-combinat/80363 "2022-05-02T12:02:14Z")

</div>

This is to announce a package I just registered, Combinat.jl. Here is the README This module is a Julia port of some GAP combinatorics and basic number theory. The only dependency is the package Primes. The list …

---

## [How to remove julia from homebrew casks?](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 8\
**Last updated:** [May 2, 2022, 9:11am UTC](https://discourse.julialang.org/t/how-to-remove-julia-from-homebrew-casks/80357 "2022-05-02T09:11:28Z")

</div>

I have an old version of julia that was probably installed via homebrew (I am running on MacOS). When I ran brew upgarde I got this: ==\> Casks with 'auto\_updates true' or 'version :latest' will not be upgraded; pass \`-…

---

## [Row-wise operation using \`map\`?](https://discourse.julialang.org/t/row-wise-operation-using-map/80339)

<div class="topic-metadata">

**Author:** [@HJW019](https://discourse.julialang.org/u/HJW019)\
**Replies:** 2\
**Last updated:** [May 2, 2022, 8:04am UTC](https://discourse.julialang.org/t/row-wise-operation-using-map/80339 "2022-05-02T08:04:06Z")

</div>

I am translating my CPU code to GPU. One of the things I did in CPU is to apply map to a Vector{Matrix{Real}} data for row-wise operations. For instance: julia\> aa = \[\[1. 2. 3.\], \[4. 5. 6.\]\] 2-element Vecto…

---

## [Converting default Float type to Float32](https://discourse.julialang.org/t/converting-default-float-type-to-float32/80326)

<div class="topic-metadata">

**Author:** [@Phuntsho](https://discourse.julialang.org/u/Phuntsho)\
**Replies:** 7\
**Last updated:** [May 2, 2022, 7:25am UTC](https://discourse.julialang.org/t/converting-default-float-type-to-float32/80326 "2022-05-02T07:25:52Z")

</div>

I have noticed on my system that whenever I define CuArrays, I get Float64 as default. Is there a way to change the default to Float32, i.e. without specifying the type every time I define CuArrays? I want to get Float32…

---

## [Eigenvalue sensitivites using autodiff](https://discourse.julialang.org/t/eigenvalue-sensitivites-using-autodiff/80059)

<div class="topic-metadata">

**Author:** [@Hofsmo](https://discourse.julialang.org/u/Hofsmo)\
**Replies:** 5\
**Last updated:** [May 2, 2022, 6:30am UTC](https://discourse.julialang.org/t/eigenvalue-sensitivites-using-autodiff/80059 "2022-05-02T06:30:40Z")

</div>

Hi, I am quite new to both julia and autodiff and was wondering if someone can point me in the right direction. I have a dynamic system described using state space representation. I want to calculate the derivative of t…

---

## [Defining constraint using JuMP convert String to Expression and Merge Quart Expr and nonlinear Expr](https://discourse.julialang.org/t/defining-constraint-using-jump-convert-string-to-expression-and-merge-quart-expr-and-nonlinear-expr/79967)

<div class="topic-metadata">

**Author:** [@Deena\_20](https://discourse.julialang.org/u/Deena_20)\
**Replies:** 12\
**Last updated:** [May 2, 2022, 4:43am UTC](https://discourse.julialang.org/t/defining-constraint-using-jump-convert-string-to-expression-and-merge-quart-expr-and-nonlinear-expr/79967 "2022-05-02T04:43:40Z")

</div>

using JuMP,CSV,DataFrames model = Model() @variable(model, x\[1:3\]) @constraint(model, c2, x\[1\] + 2 \* x\[3\] \>= 2) @constraint(model, c4, 4 \<= 2 \* x\[2\] \<= 5) @variable(model,x1\[h in 1:5, i in 1:1, j in 1:2, k in 1:1,p …

---

## [Rank1 PSD constraint dual variables](https://discourse.julialang.org/t/rank1-psd-constraint-dual-variables/80348)

<div class="topic-metadata">

**Author:** [@HWS](https://discourse.julialang.org/u/HWS)\
**Replies:** 8\
**Last updated:** [May 2, 2022, 1:47am UTC](https://discourse.julialang.org/t/rank1-psd-constraint-dual-variables/80348 "2022-05-02T01:47:07Z")

</div>

Hi, I ran the following code in JuMP, @variable(m, x\[1:n\]\>=0) @variable(m, X\[1:n,1:n\], Symmetric) @constraint(m, X\_xx\_cons, \[1 x'; x X\] in PSDCone() ) @objective(m, Min, tr(Q'\*X)+dot(b,x)) optimize!(m) A = dual(X\_xx\_c…

---

## [Slow generation of the non-linear expressions](https://discourse.julialang.org/t/slow-generation-of-the-non-linear-expressions/80308)

<div class="topic-metadata">

**Author:** [@xxxxx](https://discourse.julialang.org/u/xxxxx)\
**Replies:** 4\
**Last updated:** [May 1, 2022, 10:37pm UTC](https://discourse.julialang.org/t/slow-generation-of-the-non-linear-expressions/80308 "2022-05-01T22:37:09Z")

</div>

Hi there, I am new to JuMP and trying to use it for maximum likelihood estimation. I found a very slow step when generating the expressions, and I am not sure how to improve it. Here is the code for a minimum working ex…

---

## [Vectorized short circuit operator?](https://discourse.julialang.org/t/vectorized-short-circuit-operator/80336)

<div class="topic-metadata">

**Author:** [@Cevheriferd](https://discourse.julialang.org/u/Cevheriferd)\
**Replies:** 3\
**Last updated:** [May 1, 2022, 10:34pm UTC](https://discourse.julialang.org/t/vectorized-short-circuit-operator/80336 "2022-05-01T22:34:17Z")

</div>

Hi I was wondering if it is possible to apply a short circuit evaluation to 2 bitvectors. Let’s say I want to implement the or operator on 2 bitvectors, I can do that with .|. But this operator is not short circuited. I …

---

## [Edited video of course "GPU Programming with Julia" at the Swiss National Supercomputing Centre (CSCS) now available!](https://discourse.julialang.org/t/edited-video-of-course-gpu-programming-with-julia-at-the-swiss-national-supercomputing-centre-cscs-now-available/80290)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 4\
**Last updated:** [May 1, 2022, 9:42pm UTC](https://discourse.julialang.org/t/edited-video-of-course-gpu-programming-with-julia-at-the-swiss-national-supercomputing-centre-cscs-now-available/80290 "2022-05-01T21:42:55Z")

</div>

Go here to the video: Get the material discussed in the course and any other relevant information from here:

---

## [Use low precision float type in JuMP](https://discourse.julialang.org/t/use-low-precision-float-type-in-jump/80332)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 2\
**Last updated:** [May 1, 2022, 9:44pm UTC](https://discourse.julialang.org/t/use-low-precision-float-type-in-jump/80332 "2022-05-01T21:44:44Z")

</div>

I’m working with a large linear SDP problem with JuMP and COSMO and is trying to find whether low float precision contributes to the convergence problem. So I want to change the float type of a smaller problem that works…

---

## [@code\_warntype on keyword arguments](https://discourse.julialang.org/t/code-warntype-on-keyword-arguments/80343)

<div class="topic-metadata">

**Author:** [@tianrluo](https://discourse.julialang.org/u/tianrluo)\
**Replies:** 6\
**Last updated:** [May 1, 2022, 9:26pm UTC](https://discourse.julialang.org/t/code-warntype-on-keyword-arguments/80343 "2022-05-01T21:26:29Z")

</div>

Noticed this when obsessing over type-stability, wonder if what’s below in the code block is considered as an unexpected behavior. In short, @code\_warntype is happy with foo(x::Vector{\<:Real}), but mad about bar(; x::Ve…

---

## [Edited video of course “GPU Programming with Julia” at the Swiss National Supercomputing Centre (CSCS) now available](https://discourse.julialang.org/t/edited-video-of-course-gpu-programming-with-julia-at-the-swiss-national-supercomputing-centre-cscs-now-available/80293)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 1\
**Last updated:** [May 1, 2022, 6:46pm UTC](https://discourse.julialang.org/t/edited-video-of-course-gpu-programming-with-julia-at-the-swiss-national-supercomputing-centre-cscs-now-available/80293 "2022-05-01T18:46:29Z")

</div>

Edited video of course “GPU Programming with Julia” at the Swiss National Supercomputing Centre (CSCS) now available!

---

## [Edited video of course “GPU Programming with Julia” at the Swiss National Supercomputing Centre (CSCS) now available!](https://discourse.julialang.org/t/edited-video-of-course-gpu-programming-with-julia-at-the-swiss-national-supercomputing-centre-cscs-now-available/80291)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 1\
**Last updated:** [May 1, 2022, 6:44pm UTC](https://discourse.julialang.org/t/edited-video-of-course-gpu-programming-with-julia-at-the-swiss-national-supercomputing-centre-cscs-now-available/80291 "2022-05-01T18:44:42Z")

</div>

Edited video of course “GPU Programming with Julia” at the Swiss National Supercomputing Centre (CSCS) now available

---

## [Plot ticks at both top and bottom axis](https://discourse.julialang.org/t/plot-ticks-at-both-top-and-bottom-axis/9550)

<div class="topic-metadata">

**Author:** [@kaslusimoes](https://discourse.julialang.org/u/kaslusimoes)\
**Replies:** 7\
**Last updated:** [May 1, 2022, 6:13pm UTC](https://discourse.julialang.org/t/plot-ticks-at-both-top-and-bottom-axis/9550 "2022-05-01T18:13:11Z")

</div>

Hi, Is there any way to plot both ‘top’ and ‘bottom’ x axis ticks using Plots.jl? I’m thinking of something like this example from Matplotlib. Thanks!

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

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