# Latest

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

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

**Page:** 1238

---

## [Why does the heatmap() function in Plots.jl flip data?](https://discourse.julialang.org/t/why-does-the-heatmap-function-in-plots-jl-flip-data/69844)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 5:35pm UTC](https://discourse.julialang.org/t/why-does-the-heatmap-function-in-plots-jl-flip-data/69844 "2021-10-15T17:35:52Z")

</div>

julia\> A = \[1 2 3;4 5 6;7 8 9\] 3×3 Matrix{Int64}: 1 2 3 4 5 6 7 8 9 julia\> heatmap(A)

---

## [Discussion about integer overflow](https://discourse.julialang.org/t/discussion-about-integer-overflow/69627)

<div class="topic-metadata">

**Author:** [@viraltux](https://discourse.julialang.org/u/viraltux)\
**Replies:** 188\
**Last updated:** [October 15, 2021, 5:02pm UTC](https://discourse.julialang.org/t/discussion-about-integer-overflow/69627 "2021-10-15T17:02:21Z")

</div>

Yes, it is a limitation but I would not call it big since we could use BigInt if Int64 is not enough and an overflow is something we can catch. I find more worrying this: \> julia\> 1 / 10^20000 \> Inf I’d rather have …

---

## [How to declare type/size of tuple in a struct?](https://discourse.julialang.org/t/how-to-declare-type-size-of-tuple-in-a-struct/69833)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 3\
**Last updated:** [October 15, 2021, 4:23pm UTC](https://discourse.julialang.org/t/how-to-declare-type-size-of-tuple-in-a-struct/69833 "2021-10-15T16:23:48Z")

</div>

Hi, I have a struct such as below. I want to know how to declare the type of the field somedict. The keys of somedict will be tuples. Each key will be a tuple of two tuples, first one of length size1 and second one of …

---

## [Independent variable t - @parameter or @variable?](https://discourse.julialang.org/t/independent-variable-t-parameter-or-variable/69619)

<div class="topic-metadata">

**Author:** [@SCher](https://discourse.julialang.org/u/SCher)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 2:37pm UTC](https://discourse.julialang.org/t/independent-variable-t-parameter-or-variable/69619 "2021-10-15T14:37:29Z")

</div>

While creating models in MTK for a system of ODEs, should time t be specified as a @parameter or @variable? I have seen different examples use both ways, and both seem to work. Which is recommended? Any particular reaso…

---

## [Using BinaryBuilder to run a CMakeFile for a local library](https://discourse.julialang.org/t/using-binarybuilder-to-run-a-cmakefile-for-a-local-library/69826)

<div class="topic-metadata">

**Author:** [@MitchellWeg](https://discourse.julialang.org/u/MitchellWeg)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 2:25pm UTC](https://discourse.julialang.org/t/using-binarybuilder-to-run-a-cmakefile-for-a-local-library/69826 "2021-10-15T14:25:36Z")

</div>

I’m kinda confused about the usage of BinaryBuilder.jl I can point it to the source I want to build; i.e: name = "libfoo" version = v"1.0.1" sources = \[ ArchiveSource("\<url to source tarball\>", "sha256 hash"), \] Y…

---

## [Why are tuple literals better for constant-propagation than array literals?](https://discourse.julialang.org/t/why-are-tuple-literals-better-for-constant-propagation-than-array-literals/69805)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 12\
**Last updated:** [October 15, 2021, 2:35pm UTC](https://discourse.julialang.org/t/why-are-tuple-literals-better-for-constant-propagation-than-array-literals/69805 "2021-10-15T14:35:13Z")

</div>

I need functions that check if a symbol references a specific type of struct field, and this is supposed to compile away through constant propagation. Now, I also had this heuristic that I shouldn’t use huge Tuples beca…

---

## [Parameterizing type by integer value using "where"](https://discourse.julialang.org/t/parameterizing-type-by-integer-value-using-where/69821)

<div class="topic-metadata">

**Author:** [@John\_Gibson](https://discourse.julialang.org/u/John_Gibson)\
**Replies:** 9\
**Last updated:** [October 15, 2021, 1:40pm UTC](https://discourse.julialang.org/t/parameterizing-type-by-integer-value-using-where/69821 "2021-10-15T13:40:08Z")

</div>

This simple GaloisField type is parameterized by the modulus p and the integer type T. It works fine, but note that the test on the type of p buried within an inner constructor. using Primes # Type definition: GaloisFi…

---

## [Solving time-dependent system of equations from Modelica with ModelingToolkit - hasmetadata error](https://discourse.julialang.org/t/solving-time-dependent-system-of-equations-from-modelica-with-modelingtoolkit-hasmetadata-error/69817)

<div class="topic-metadata">

**Author:** [@Pere](https://discourse.julialang.org/u/Pere)\
**Replies:** 4\
**Last updated:** [October 15, 2021, 1:37pm UTC](https://discourse.julialang.org/t/solving-time-dependent-system-of-equations-from-modelica-with-modelingtoolkit-hasmetadata-error/69817 "2021-10-15T13:37:29Z")

</div>

I’m trying to find \\bar{v}\_{dq}^+ and \\bar{v}\_{dq}^- in the equation below where {v}\_{dq}^+ and {v}\_{dq}^- are known time-varying signals. I’ve done this in Modelica, but I’d like to try with Julia. This is the Mod…

---

## [Dispatching functions and keyword usage](https://discourse.julialang.org/t/dispatching-functions-and-keyword-usage/69825)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 1:37pm UTC](https://discourse.julialang.org/t/dispatching-functions-and-keyword-usage/69825 "2021-10-15T13:37:28Z")

</div>

Hi there, Is there a way to dispatch on a function and still being able to call eventual keywords? I tried to dispatch a function, but could not call non-default keywords anymore afterwards. MWE: function testfn(a::In…

---

## [Sparsity in DifferentialEquations: how to exploit?](https://discourse.julialang.org/t/sparsity-in-differentialequations-how-to-exploit/69808)

<div class="topic-metadata">

**Author:** [@ignace](https://discourse.julialang.org/u/ignace)\
**Replies:** 8\
**Last updated:** [October 15, 2021, 1:35pm UTC](https://discourse.julialang.org/t/sparsity-in-differentialequations-how-to-exploit/69808 "2021-10-15T13:35:20Z")

</div>

Sorry for bothering you with a small request for help. I have the following code, but I would expect the solution to the one-timestep ODEProblem (using implicit Euler) to be computed in a time similar to AA\\b or (I+AA)…

---

## [Vscode fails with "Starting the Julia Language Server"](https://discourse.julialang.org/t/vscode-fails-with-starting-the-julia-language-server/69816)

<div class="topic-metadata">

**Author:** [@Amirrezz94](https://discourse.julialang.org/u/Amirrezz94)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 10:51am UTC](https://discourse.julialang.org/t/vscode-fails-with-starting-the-julia-language-server/69816 "2021-10-15T10:51:44Z")

</div>

Hi, I’m using Julia 1.6.2 on ubuntu 20.04.3 with vscode 1.61.1. I have a problem with starting Julia in vscode. Every time I try to run Julia, I get these errors in vscode (attached as screenshot). Also, it takes severa…

---

## [Set MATLAB\_ROOT environment variable](https://discourse.julialang.org/t/set-matlab-root-environment-variable/69815)

<div class="topic-metadata">

**Author:** [@moeinkh88](https://discourse.julialang.org/u/moeinkh88)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 10:39am UTC](https://discourse.julialang.org/t/set-matlab-root-environment-variable/69815 "2021-10-15T10:39:44Z")

</div>

Hi! I have tried Pkg.build(“MATLAB”) and I got the following error: ERROR: Error building MATLAB: ERROR: LoadError: MATLAB cannot be found. Set the “MATLAB\_ROOT” environment variable to the MATLAB root directory and r…

---

## [How to extract raster values at coordinate locations?](https://discourse.julialang.org/t/how-to-extract-raster-values-at-coordinate-locations/69752)

<div class="topic-metadata">

**Author:** [@CompulsoryCoffee](https://discourse.julialang.org/u/CompulsoryCoffee)\
**Replies:** 5\
**Last updated:** [October 15, 2021, 10:32am UTC](https://discourse.julialang.org/t/how-to-extract-raster-values-at-coordinate-locations/69752 "2021-10-15T10:32:31Z")

</div>

Hi, I have a (long) csv file with X, Y coordinates and a (long) list of rasters. I would like to loop through the rasters, extract the values of the raster at the X, Y locations and write the results in a new CSV each …

---

## [Proper writing Julia/julia](https://discourse.julialang.org/t/proper-writing-julia-julia/69812)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 9:57am UTC](https://discourse.julialang.org/t/proper-writing-julia-julia/69812 "2021-10-15T09:57:19Z")

</div>

Hello, I have a question about proper writing : julia without capital letter, or Julia with capital letter Regards

---

## [Remote developement - cannot start the Language server](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 6\
**Last updated:** [October 15, 2021, 9:11am UTC](https://discourse.julialang.org/t/remote-developement-cannot-start-the-language-server/69364 "2021-10-15T09:11:06Z")

</div>

Hey, I am trying to use the remote development tools. I have a start\_julia.sh as julia.executablePath script that looks like : #!/bin/bash module load \<modules that need to be loaded before julia can run on this parti…

---

## [Makie mouse click position](https://discourse.julialang.org/t/makie-mouse-click-position/9062)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 8\
**Last updated:** [October 15, 2021, 8:12am UTC](https://discourse.julialang.org/t/makie-mouse-click-position/9062 "2021-10-15T08:12:24Z")

</div>

Can someone please show me how to get the location of a mouse left click on a Makie.jl scene ? Here’s what I have now: using Makie img = rand(100,100) scene = Scene(resolution = (100, 100)) heatmap(img) Makie.add\_mouse…

---

## [Compact vs Scattered Pinning](https://discourse.julialang.org/t/compact-vs-scattered-pinning/69722)

<div class="topic-metadata">

**Author:** [@tkf](https://discourse.julialang.org/u/tkf)\
**Replies:** 3\
**Last updated:** [October 15, 2021, 7:06am UTC](https://discourse.julialang.org/t/compact-vs-scattered-pinning/69722 "2021-10-15T07:06:47Z")

</div>

@carstenbauer Cool package! I want to de derail this further so let me open a new topic :slight\_smile: When I first looked at it, the performance advantage of scattered pinning was puzzling for me. Intuitively, you wou…

---

## [AWS.jl - global\_aws\_config can't find ARN](https://discourse.julialang.org/t/aws-jl-global-aws-config-cant-find-arn/69673)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 7:04am UTC](https://discourse.julialang.org/t/aws-jl-global-aws-config-cant-find-arn/69673 "2021-10-15T07:04:46Z")

</div>

I have an issue with global\_aws\_config. It works perfectly fine in SageMaker Notebook: aws = global\_aws\_config(; region="us-west-2") AWSConfig(arn:aws:iam::123456789:instance-profile/BaseNotebookInstanceEc2InstanceRole…

---

## [How to use Manifests for a clean environment for reproducibility](https://discourse.julialang.org/t/how-to-use-manifests-for-a-clean-environment-for-reproducibility/69755)

<div class="topic-metadata">

**Author:** [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Replies:** 6\
**Last updated:** [October 15, 2021, 6:10am UTC](https://discourse.julialang.org/t/how-to-use-manifests-for-a-clean-environment-for-reproducibility/69755 "2021-10-15T06:10:58Z")

</div>

Sloppy use of language on my part. My understanding is that the Manifest.toml file is the file you want to keep for reproducibility, as it lists all the packages used, while the Project.toml file is where you specify yo…

---

## [Pointer modification with CxxWrap.jl](https://discourse.julialang.org/t/pointer-modification-with-cxxwrap-jl/69802)

<div class="topic-metadata">

**Author:** [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Replies:** 1\
**Last updated:** [October 15, 2021, 4:48am UTC](https://discourse.julialang.org/t/pointer-modification-with-cxxwrap-jl/69802 "2021-10-15T04:48:19Z")

</div>

Using CxxWrap.jl, I am trying to send a pointer to struct to C++ functions, which will modify the values inside. I did small experiments. C++ side: #include "jlcxx/jlcxx.hpp" struct Point{ float x, y; }; Point\* mov…

---

## [Creating a custom data type for CxxWrap](https://discourse.julialang.org/t/creating-a-custom-data-type-for-cxxwrap/69740)

<div class="topic-metadata">

**Author:** [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 4:00am UTC](https://discourse.julialang.org/t/creating-a-custom-data-type-for-cxxwrap/69740 "2021-10-15T04:00:15Z")

</div>

I’m trying to write a wrapper for a C++ library using CxxWrap.jl. In C++, there are types like typedef struct { int MyType; int \*List; } MyRecord typedef MyRecord \*MyPointer; typedef MyPointer \*MyList; To create …

---

## [FFTs in probabilistic models](https://discourse.julialang.org/t/ffts-in-probabilistic-models/69775)

<div class="topic-metadata">

**Author:** [@bdecost](https://discourse.julialang.org/u/bdecost)\
**Replies:** 5\
**Last updated:** [October 15, 2021, 3:19am UTC](https://discourse.julialang.org/t/ffts-in-probabilistic-models/69775 "2021-10-15T03:19:55Z")

</div>

I’m working on a model that involves a Fourier transform, and I’m running the limits of my julia debugging ability I’m using this AbstractFFTs PR to try to get it working with the ForwardDiff backend. (Zygote fails with…

---

## [Indexing error?](https://discourse.julialang.org/t/indexing-error/69786)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 6\
**Last updated:** [October 15, 2021, 2:50am UTC](https://discourse.julialang.org/t/indexing-error/69786 "2021-10-15T02:50:49Z")

</div>

X, Y, and E are longitude, latitude and elevation, respectively, on the same 86400 x 43200 grid. My goal is to reduce their resolution by 10 folder. Why does the below code keep throwing out the below error? my script: m…

---

## [How to define an array to contain Union{Missing, T}?](https://discourse.julialang.org/t/how-to-define-an-array-to-contain-union-missing-t/69776)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 4\
**Last updated:** [October 15, 2021, 12:47am UTC](https://discourse.julialang.org/t/how-to-define-an-array-to-contain-union-missing-t/69776 "2021-10-15T00:47:54Z")

</div>

Is there a better way to write this function using parametric types? I’m afraid my version isn’t type stable. function f(a::AbstractArray) b::Vector{Union{eltype(a),Missing}} = \[a\[1\]\] push!(b, missing) retur…

---

## [Connecting to Remote REPL on Atom](https://discourse.julialang.org/t/connecting-to-remote-repl-on-atom/69789)

<div class="topic-metadata">

**Author:** [@pcoyle24](https://discourse.julialang.org/u/pcoyle24)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 11:55pm UTC](https://discourse.julialang.org/t/connecting-to-remote-repl-on-atom/69789 "2021-10-14T23:55:40Z")

</div>

I am trying to connect a remote Julia session using atom. I want to be able to use the REPL when I run my code. I have been following closely the tutorial laid out in the official documentation (Connecting to a Julia ses…

---

## [Makie: zoom by keyboard.up/down?](https://discourse.julialang.org/t/makie-zoom-by-keyboard-up-down/69781)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 0\
**Last updated:** [October 14, 2021, 9:45pm UTC](https://discourse.julialang.org/t/makie-zoom-by-keyboard-up-down/69781 "2021-10-14T21:45:38Z")

</div>

Hi, how to zoom into a plot using keyboard.up/down additionally to the usual mouse scroll? Interesting for laptop use without a mouse. Thx

---

## [Questions related to saving multiple arrays in one variable](https://discourse.julialang.org/t/questions-related-to-saving-multiple-arrays-in-one-variable/69759)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 4\
**Last updated:** [October 14, 2021, 9:14pm UTC](https://discourse.julialang.org/t/questions-related-to-saving-multiple-arrays-in-one-variable/69759 "2021-10-14T21:14:50Z")

</div>

I have a variable “fi”, which stores a global grid of elevations (units: meters), and another variable “DL” that stores 26 depth levels. Below are my scripts for creating some land/sea masks: function f1(fi, DL) A =…

---

## [SOA transform](https://discourse.julialang.org/t/soa-transform/69769)

<div class="topic-metadata">

**Author:** [@goerch](https://discourse.julialang.org/u/goerch)\
**Replies:** 8\
**Last updated:** [October 14, 2021, 8:22pm UTC](https://discourse.julialang.org/t/soa-transform/69769 "2021-10-14T20:22:14Z")

</div>

I’m playing with a SOA transform (AoS and SoA - Wikipedia) via StructArrays.jl. My code: using StructArrays function test1() n = 10 v = Vector{Tuple{Int, Int}}(undef, n) s = 0 for i in 1:n v\[i\] …

---

## [How to obtain the diagonal vector of a Diagonal matrix without allocations?](https://discourse.julialang.org/t/how-to-obtain-the-diagonal-vector-of-a-diagonal-matrix-without-allocations/69773)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [October 14, 2021, 6:37pm UTC](https://discourse.julialang.org/t/how-to-obtain-the-diagonal-vector-of-a-diagonal-matrix-without-allocations/69773 "2021-10-14T18:37:09Z")

</div>

I want to obtain D.diag for a Diagonal matrix D, except I’m not sure if this is public. Using diag(D) allocates unnecessarily in certain cases (as it uses similar to ensure type-stability). julia\> D = Diagonal(3:4) 2×2…

---

## [Julia stats, data, ML: expanding usability](https://discourse.julialang.org/t/julia-stats-data-ml-expanding-usability/67948)

<div class="topic-metadata">

**Author:** [@mit.edelman](https://discourse.julialang.org/u/mit.edelman)\
**Replies:** 84\
**Last updated:** [October 14, 2021, 3:03pm UTC](https://discourse.julialang.org/t/julia-stats-data-ml-expanding-usability/67948 "2021-10-14T15:03:55Z")

</div>

I’d like to share a presentation that was shared with me by a colleague interested in making Julia’s ecosystem more widely used. His conjecture is that Julia has remarkable capabilities, but if we only increased the usab…

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

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