# Latest

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

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

**Page:** 1371

---

## [Is the JuliaRegistrator bot down?](https://discourse.julialang.org/t/is-the-juliaregistrator-bot-down/62415)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [June 5, 2021, 3:37am UTC](https://discourse.julialang.org/t/is-the-juliaregistrator-bot-down/62415 "2021-06-05T03:37:41Z")

</div>

I’m trying to register a new package, but the bot is not responding to my comment: Create main\_tests.yml · cadojo/AstrodynamicalModels.jl@07b7e4f · GitHub

---

## [@pure macro](https://discourse.julialang.org/t/pure-macro/3871)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 9\
**Last updated:** [June 5, 2021, 2:39am UTC](https://discourse.julialang.org/t/pure-macro/3871 "2021-06-05T02:39:22Z")

</div>

What does @pure do to a function? Is it faster in some cases?

---

## [Initialise 2x2 block-diagonal matrix](https://discourse.julialang.org/t/initialise-2x2-block-diagonal-matrix/62369)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 9\
**Last updated:** [June 5, 2021, 1:02am UTC](https://discourse.julialang.org/t/initialise-2x2-block-diagonal-matrix/62369 "2021-06-05T01:02:59Z")

</div>

I’m writing code using some linear algebra, where I need to set up a 6Nx6N matrix (called F), with a 2x2 block layout, each 3Nx3N block being itself composed of N^2 3x3 sub-blocks. The initialisation of F should be such…

---

## [Redefinition of functions sometimes possible?](https://discourse.julialang.org/t/redefinition-of-functions-sometimes-possible/62406)

<div class="topic-metadata">

**Author:** [@fedario](https://discourse.julialang.org/u/fedario)\
**Replies:** 7\
**Last updated:** [June 4, 2021, 9:36pm UTC](https://discourse.julialang.org/t/redefinition-of-functions-sometimes-possible/62406 "2021-06-04T21:36:04Z")

</div>

Hi! I noticed some unexpected (at least for me) behavior when redefining functions. julia\> foo(x) = x + 1 foo (generic function with 1 method) julia\> foo(x) = x + 2 foo (generic function with 1 method) julia\> foo = x…

---

## [Write the output from ODE solve to a file](https://discourse.julialang.org/t/write-the-output-from-ode-solve-to-a-file/62390)

<div class="topic-metadata">

**Author:** [@Deepa](https://discourse.julialang.org/u/Deepa)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 9:10pm UTC](https://discourse.julialang.org/t/write-the-output-from-ode-solve-to-a-file/62390 "2021-06-04T21:10:31Z")

</div>

Hi All, I’d like to know how to write the output from solve to a file. I’d prefer to write the solution sol to a text or .mat file. prob= ODEProblem(ODEFunction(fun, sparsity=sparsity,x0,(0.0,5.0)) @btime sol = solve…

---

## [(De-)Serialize N-dimensional arrays in julia](https://discourse.julialang.org/t/de-serialize-n-dimensional-arrays-in-julia/61918)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 28\
**Last updated:** [June 4, 2021, 8:29pm UTC](https://discourse.julialang.org/t/de-serialize-n-dimensional-arrays-in-julia/61918 "2021-06-04T20:29:20Z")

</div>

Hello ! Would anyone know if there is currently a julia serialization package that supports Matrices, or more generally n-dimensionall Arrays ? I am currently using MsgPack.jl, but the specification does not support thi…

---

## [Cartesian product legend](https://discourse.julialang.org/t/cartesian-product-legend/62370)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [June 4, 2021, 8:07pm UTC](https://discourse.julialang.org/t/cartesian-product-legend/62370 "2021-06-04T20:07:54Z")

</div>

Is it possible to have legend with red green blue orange 05 10 15 20 with sized colored images in each cell and row/column labels? f = Figure() Axis(f\[1, 1\]) markersizes = \[5, 10, 15, 20\] colors…

---

## [Int / Float type inference in constructor](https://discourse.julialang.org/t/int-float-type-inference-in-constructor/62395)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 5\
**Last updated:** [June 4, 2021, 6:16pm UTC](https://discourse.julialang.org/t/int-float-type-inference-in-constructor/62395 "2021-06-04T18:16:13Z")

</div>

I defined a struct as follows: struct inverse{T\<:Number} x::Array{T} y::Array{T} function inverse{T}(x0::Tuple{...,T,...}) where T\<:Number x = convert\_to\_x(x0) y = inv(x) new(promote(x,y)...) end end where the construc…

---

## [Runtime creation of SArray](https://discourse.julialang.org/t/runtime-creation-of-sarray/62377)

<div class="topic-metadata">

**Author:** [@mapclyps](https://discourse.julialang.org/u/mapclyps)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 5:09pm UTC](https://discourse.julialang.org/t/runtime-creation-of-sarray/62377 "2021-06-04T17:09:37Z")

</div>

I have a program where small arrays are involved where the size need to change at some point at runtime depending on some computations. Nevertheless, I wanted to use StaticArrays since there is some linear algebra involv…

---

## [Lower bound of type has no effect?](https://discourse.julialang.org/t/lower-bound-of-type-has-no-effect/62372)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 5\
**Last updated:** [June 4, 2021, 4:12pm UTC](https://discourse.julialang.org/t/lower-bound-of-type-has-no-effect/62372 "2021-06-04T16:12:56Z")

</div>

When playing with the various confusing type relations, I found the following impossible to understand: There lower bound for T seems to have no effect? I expect to get Union{}, but got Int64. What am I missing here?

---

## [Custom NeuralODE layer trains innefficiently](https://discourse.julialang.org/t/custom-neuralode-layer-trains-innefficiently/61602)

<div class="topic-metadata">

**Author:** [@Sunny](https://discourse.julialang.org/u/Sunny)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 3:13pm UTC](https://discourse.julialang.org/t/custom-neuralode-layer-trains-innefficiently/61602 "2021-06-04T15:13:21Z")

</div>

I slightly changed a NeuralODE layer and added a few new weights parameters, but it can’t fit the simple data and show the warning ┌ Warning: dt \<= dtmin. Aborting. There is either an error in your model specification …

---

## [Endup file : executing automatically a piece of code ending Julia](https://discourse.julialang.org/t/endup-file-executing-automatically-a-piece-of-code-ending-julia/62384)

<div class="topic-metadata">

**Author:** [@aitzkora](https://discourse.julialang.org/u/aitzkora)\
**Replies:** 3\
**Last updated:** [June 4, 2021, 2:19pm UTC](https://discourse.julialang.org/t/endup-file-executing-automatically-a-piece-of-code-ending-julia/62384 "2021-06-04T14:19:41Z")

</div>

Hi, Is there any mechanism like startup.jl to execute some code but instead at the beginning of julia REPL execute that code when closing the REPL. Indeed with the lack of support of history saving in IJulia, I want to …

---

## [Accessing ode methods from MATLAB](https://discourse.julialang.org/t/accessing-ode-methods-from-matlab/62376)

<div class="topic-metadata">

**Author:** [@Deepa](https://discourse.julialang.org/u/Deepa)\
**Replies:** 3\
**Last updated:** [June 4, 2021, 1:41pm UTC](https://discourse.julialang.org/t/accessing-ode-methods-from-matlab/62376 "2021-06-04T13:41:10Z")

</div>

Hi All, I’d like to know if there is a way to access the ode method QNDF() from MATLAB.

---

## [CUDA.jl finds CUDA installation but cannot execute any commands](https://discourse.julialang.org/t/cuda-jl-finds-cuda-installation-but-cannot-execute-any-commands/62368)

<div class="topic-metadata">

**Author:** [@crinders](https://discourse.julialang.org/u/crinders)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 1:21pm UTC](https://discourse.julialang.org/t/cuda-jl-finds-cuda-installation-but-cannot-execute-any-commands/62368 "2021-06-04T13:21:29Z")

</div>

I have installed CUDA.jl . I have checked with JULIA\_DEBUG=CUDA and CUDA.version() that indeed the local CUDA install is being used. But to my chagrin, not even the most simple code works: julia\> using CUDA julia\> CUDA.…

---

## [Indexing Unicode Strings](https://discourse.julialang.org/t/indexing-unicode-strings/62325)

<div class="topic-metadata">

**Author:** [@chelseas](https://discourse.julialang.org/u/chelseas)\
**Replies:** 10\
**Last updated:** [June 4, 2021, 12:48pm UTC](https://discourse.julialang.org/t/indexing-unicode-strings/62325 "2021-06-04T12:48:43Z")

</div>

Why can’t array indexing check for valid indices automatically when dealing with unicode strings? It would be nice if unicode string usage was seamless https://github.com/JuliaLang/julia/issues/40974 https://github.co…

---

## [Download packages error on Julia 0.4.7](https://discourse.julialang.org/t/download-packages-error-on-julia-0-4-7/62336)

<div class="topic-metadata">

**Author:** [@JDA](https://discourse.julialang.org/u/JDA)\
**Replies:** 6\
**Last updated:** [June 4, 2021, 11:50am UTC](https://discourse.julialang.org/t/download-packages-error-on-julia-0-4-7/62336 "2021-06-04T11:50:48Z")

</div>

Hello, I am working on setting up Julia on a new computer that is running Catalina. A few versions of Julia are currently installed, but I’m having trouble setting up / downloading packages. I’ve never seen error like …

---

## [CUDA.math functions in Julia](https://discourse.julialang.org/t/cuda-math-functions-in-julia/62285)

<div class="topic-metadata">

**Author:** [@fci](https://discourse.julialang.org/u/fci)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 11:32am UTC](https://discourse.julialang.org/t/cuda-math-functions-in-julia/62285 "2021-06-04T11:32:23Z")

</div>

Hi, I’m new to CUDA in Julia. Is there any way to use the CUDA math functions in Julia? Frank

---

## [Use of references in Julia notebook files (via binder) to the original documentation](https://discourse.julialang.org/t/use-of-references-in-julia-notebook-files-via-binder-to-the-original-documentation/62385)

<div class="topic-metadata">

**Author:** [@bennibolm](https://discourse.julialang.org/u/bennibolm)\
**Replies:** 0\
**Last updated:** [June 4, 2021, 11:18am UTC](https://discourse.julialang.org/t/use-of-references-in-julia-notebook-files-via-binder-to-the-original-documentation/62385 "2021-06-04T11:18:22Z")

</div>

Hello, I want to set up some tutorials for my repository. I’m using Literate.jl to get the markdown and notebook files from a Julia file. I want to start the notebook files with binder and I don’t see any other solution…

---

## [Send BSON serialized data to a pipe](https://discourse.julialang.org/t/send-bson-serialized-data-to-a-pipe/62381)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 10:35am UTC](https://discourse.julialang.org/t/send-bson-serialized-data-to-a-pipe/62381 "2021-06-04T10:35:13Z")

</div>

Is there a way to send BSON serialized data to a pipe ? Writing a BSON to a file can be done with e.g. using BSON arr = \<somearray\> fname = tempname() BSON.bson(fname, data = arr) arr2 = BSON.load(fname)\[:data\] rm(fnam…

---

## [Sudden Falure to Precompile DifferentialEquations and Sundials](https://discourse.julialang.org/t/sudden-falure-to-precompile-differentialequations-and-sundials/62317)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 15\
**Last updated:** [June 4, 2021, 9:15am UTC](https://discourse.julialang.org/t/sudden-falure-to-precompile-differentialequations-and-sundials/62317 "2021-06-04T09:15:49Z")

</div>

Hi, after running well for months, my Julia programs suddenly cannot precompile DifferentialEquations or Sundials anymore, which is a fatal problem for my programs. I don’t know what triggered Julia to try (and fail) to…

---

## [Async usage readxml](https://discourse.julialang.org/t/async-usage-readxml/62380)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 0\
**Last updated:** [June 4, 2021, 8:42am UTC](https://discourse.julialang.org/t/async-usage-readxml/62380 "2021-06-04T08:42:35Z")

</div>

hi, I am trying use @async but it seems I am not using it properly. My code looks like something below. Note url is a dummy name. using EzXML function test1() item = \["name1", "name2","name3"\] url = "http://my.we…

---

## [Remove identical columns from matrix](https://discourse.julialang.org/t/remove-identical-columns-from-matrix/62378)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 9\
**Last updated:** [June 4, 2021, 8:16am UTC](https://discourse.julialang.org/t/remove-identical-columns-from-matrix/62378 "2021-06-04T08:16:44Z")

</div>

Suppose I have a matrix with several columns. What’s an easy way to remove identical columns? To provide an example, I want to get matrix x below if I start from matrix xx. x = rand(10, 5) xx = \[x x\[:, 2\] x\[:, 5\]\]

---

## [Plots.jl: Fill overlaps with x/y-axis](https://discourse.julialang.org/t/plots-jl-fill-overlaps-with-x-y-axis/62330)

<div class="topic-metadata">

**Author:** [@scipham](https://discourse.julialang.org/u/scipham)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 7:26am UTC](https://discourse.julialang.org/t/plots-jl-fill-overlaps-with-x-y-axis/62330 "2021-06-04T07:26:26Z")

</div>

I use the following for plotting with Plots.jl: using Plots using HDF5 using Statistics all\_predictions = \[\] all\_trueValues = \[\] h5open("3to12benchmark\_corrected\_r.dat", "r") do fid for qn in 3:10 predictions = …

---

## [Highlight point on heatmap](https://discourse.julialang.org/t/highlight-point-on-heatmap/62348)

<div class="topic-metadata">

**Author:** [@ZettEff](https://discourse.julialang.org/u/ZettEff)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 5:47am UTC](https://discourse.julialang.org/t/highlight-point-on-heatmap/62348 "2021-06-04T05:47:33Z")

</div>

My goal is to highlight one specific point on a heatmap. My attempt to achieve this using heatmap + scatter! does not show the values properly. using Plots XX, YY = 1:100,1:100 ZZ = \[x\*y for x in XX, y in YY\] heatmap…

---

## [Declaring constant](https://discourse.julialang.org/t/declaring-constant/62374)

<div class="topic-metadata">

**Author:** [@Deepa](https://discourse.julialang.org/u/Deepa)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 5:34am UTC](https://discourse.julialang.org/t/declaring-constant/62374 "2021-06-04T05:34:38Z")

</div>

Hi All, In the following, I am trying to define factor as a constant. using OrdinaryDiffEq, ModelingToolkit, BenchmarkTools using MAT cd(dirname(@\_\_FILE\_\_)) factor\_f = matread("factor.mat"); const factor = vec(factor…

---

## [Leiden algorithim implementation in Julia](https://discourse.julialang.org/t/leiden-algorithim-implementation-in-julia/55910)

<div class="topic-metadata">

**Author:** [@charperflow](https://discourse.julialang.org/u/charperflow)\
**Replies:** 5\
**Last updated:** [June 4, 2021, 5:31am UTC](https://discourse.julialang.org/t/leiden-algorithim-implementation-in-julia/55910 "2021-06-04T05:31:55Z")

</div>

I was wondering if anyone was aware of an implementation of the Leiden algorithm for Julia? It is a community detection algorithm which avoids the disconnected /poorly connected community problem associated with the louv…

---

## [Right solver for JuMP to find every solution of a linear system of equations with integer solutions](https://discourse.julialang.org/t/right-solver-for-jump-to-find-every-solution-of-a-linear-system-of-equations-with-integer-solutions/44709)

<div class="topic-metadata">

**Author:** [@damaro](https://discourse.julialang.org/u/damaro)\
**Replies:** 28\
**Last updated:** [June 4, 2021, 5:03am UTC](https://discourse.julialang.org/t/right-solver-for-jump-to-find-every-solution-of-a-linear-system-of-equations-with-integer-solutions/44709 "2021-06-04T05:03:25Z")

</div>

I have been struggling to find an equivalent Julia function to Mathematica FindInstance. The reason behind this is to find every solution of a system of equations with positive integer solutions. I provide a concrete …

---

## [Download packages error on Julia 1.1.1](https://discourse.julialang.org/t/download-packages-error-on-julia-1-1-1/62339)

<div class="topic-metadata">

**Author:** [@JDA](https://discourse.julialang.org/u/JDA)\
**Replies:** 6\
**Last updated:** [June 4, 2021, 3:48am UTC](https://discourse.julialang.org/t/download-packages-error-on-julia-1-1-1/62339 "2021-06-04T03:48:48Z")

</div>

Hello, I am working on setting up Julia on a new computer that is running Catalina. A few versions of Julia are currently installed, but I’m having trouble setting up / downloading packages. I’ve never seen error like t…

---

## [PyCall Issues with MKL](https://discourse.julialang.org/t/pycall-issues-with-mkl/62354)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 3:06am UTC](https://discourse.julialang.org/t/pycall-issues-with-mkl/62354 "2021-06-04T03:06:14Z")

</div>

I want to call a tiny bit of Python code that makes use of some FEniCS code, so I tried adding PyCall and building it against the (conda) Python environment on my system for which I have FEniCS working. However, this en…

---

## [Inserting new abstract type into existing hierarchy?](https://discourse.julialang.org/t/inserting-new-abstract-type-into-existing-hierarchy/62365)

<div class="topic-metadata">

**Author:** [@lamorton](https://discourse.julialang.org/u/lamorton)\
**Replies:** 7\
**Last updated:** [June 4, 2021, 2:05am UTC](https://discourse.julialang.org/t/inserting-new-abstract-type-into-existing-hierarchy/62365 "2021-06-04T02:05:24Z")

</div>

Suppose an existing package Barnyard defines abstract type Animal end abstract type Dog \<: Animal end Let’s say that in my package Zoo I define two new types: using Barnyard abstract type Zebra \<: Animal end abstract …

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

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