# Latest

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

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

**Page:** 1273

---

## [LoadError (can't replace module during compilation) + Failed to precompile module](https://discourse.julialang.org/t/loaderror-cant-replace-module-during-compilation-failed-to-precompile-module/61780)

<div class="topic-metadata">

**Author:** [@lili](https://discourse.julialang.org/u/lili)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 8:27pm UTC](https://discourse.julialang.org/t/loaderror-cant-replace-module-during-compilation-failed-to-precompile-module/61780 "2021-09-08T20:27:38Z")

</div>

This is my first time using Julia. I installed the latest Julia version from official sources to my Windows 10 machine. What I’m trying to do is use a custom Julia package in my Python (using Anaconda3) program. PyJulia…

---

## [Version 1.7 much faster than 1.6 in a script that calls wrapped external libraries](https://discourse.julialang.org/t/version-1-7-much-faster-than-1-6-in-a-script-that-calls-wrapped-external-libraries/64872)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 17\
**Last updated:** [September 8, 2021, 7:15pm UTC](https://discourse.julialang.org/t/version-1-7-much-faster-than-1-6-in-a-script-that-calls-wrapped-external-libraries/64872 "2021-09-08T19:15:10Z")

</div>

Hi, This is not really a question but an amazing fact that I wanted to share. The code below is the main part of a script where all heavy work is done by external libraries (GMT, GDAl & PROJ). However, version 1.7beta …

---

## [Distributed and threading](https://discourse.julialang.org/t/distributed-and-threading/67886)

<div class="topic-metadata">

**Author:** [@Beh123](https://discourse.julialang.org/u/Beh123)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 6:25pm UTC](https://discourse.julialang.org/t/distributed-and-threading/67886 "2021-09-08T18:25:08Z")

</div>

Hi everyone. I want to recieve data from the udp network. I have a function( thread) that do it . I have another thread for processing data. I need use @distribution for improving speed up. Can we use @dostribution an…

---

## [KeyError: key :VERSION not found](https://discourse.julialang.org/t/keyerror-key-version-not-found/67884)

<div class="topic-metadata">

**Author:** [@Tyler\_Ingebrand](https://discourse.julialang.org/u/Tyler_Ingebrand)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 6:05pm UTC](https://discourse.julialang.org/t/keyerror-key-version-not-found/67884 "2021-09-08T18:05:40Z")

</div>

Hello. I am new to Julia, working on getting a project to run in the current version of Julia 1.6.2 on Ubuntu 20.04.3. The project using TensorFlow and PyCall. The error is ERROR: LoadError: On worker 2: KeyError: key …

---

## [Same random sequence on GPU and CPU?](https://discourse.julialang.org/t/same-random-sequence-on-gpu-and-cpu/67881)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 8\
**Last updated:** [September 8, 2021, 5:47pm UTC](https://discourse.julialang.org/t/same-random-sequence-on-gpu-and-cpu/67881 "2021-09-08T17:47:35Z")

</div>

is there a way to generate the same random sequence of numbers on a GPU as on the CPU? i was hoping i could just use rng = Random.default\_rng() as the generator for both GPU and CPU vectors, but while it doesn’t emit an…

---

## [How to hide an inner output in the REPL?](https://discourse.julialang.org/t/how-to-hide-an-inner-output-in-the-repl/67782)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 3\
**Last updated:** [September 7, 2021, 1:37am UTC](https://discourse.julialang.org/t/how-to-hide-an-inner-output-in-the-repl/67782 "2021-09-07T01:37:09Z")

</div>

I have a code (simplified as in the below code) put in a file. When I run it, an output of the “W” matrix is automatically displayed in the REPL after the execution of the code, although all the assignment are ended by “…

---

## [Is there things like intent(in), intent(out) in Julia?](https://discourse.julialang.org/t/is-there-things-like-intent-in-intent-out-in-julia/66249)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 6\
**Last updated:** [September 8, 2021, 4:00pm UTC](https://discourse.julialang.org/t/is-there-things-like-intent-in-intent-out-in-julia/66249 "2021-09-08T16:00:03Z")

</div>

In Fortran, we can specify intent(in), intent(out) for the arguments of function/subroutine, and this can help preventing bug, and possible help the compiler to do optimization. I learned from kargl in Fortran discourse…

---

## [String labels in the x axis](https://discourse.julialang.org/t/string-labels-in-the-x-axis/67880)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 3:52pm UTC](https://discourse.julialang.org/t/string-labels-in-the-x-axis/67880 "2021-09-08T15:52:03Z")

</div>

Hi, I’m trying to make a plot with a numerical series on the y axis and a string series on the x axis. The x series is a vector like this, imported which is extracted from a data frame: 88-element Vector{Any}: "1997 Q…

---

## [Only semi-explicit constant mass matrices are currently supported](https://discourse.julialang.org/t/only-semi-explicit-constant-mass-matrices-are-currently-supported/67878)

<div class="topic-metadata">

**Author:** [@Akhilesh\_Raj](https://discourse.julialang.org/u/Akhilesh_Raj)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 3:29pm UTC](https://discourse.julialang.org/t/only-semi-explicit-constant-mass-matrices-are-currently-supported/67878 "2021-09-08T15:29:07Z")

</div>

Following is a sample code that I got from examples folder in the ModelingToolkit.jl. I added the last two lines to formulate the Problem. What are the possible reasons for the error in code " Only semi-explicit constant…

---

## [UndefVarError while importing CUDA](https://discourse.julialang.org/t/undefvarerror-while-importing-cuda/67872)

<div class="topic-metadata">

**Author:** [@Hamza\_Coban](https://discourse.julialang.org/u/Hamza_Coban)\
**Replies:** 3\
**Last updated:** [September 8, 2021, 3:15pm UTC](https://discourse.julialang.org/t/undefvarerror-while-importing-cuda/67872 "2021-09-08T15:15:11Z")

</div>

Hi all, I have issues on importing CUDA package. Only active packages are Knet and CUDA. The error as follows when I run “import CUDA” : Info: Precompiling CUDA \[052768ef-5323-5732-b1bb-66c8b64840ba\] └ @ Base loading.…

---

## [\[ANN\] CSV.jl 0.9 Release](https://discourse.julialang.org/t/ann-csv-jl-0-9-release/67844)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 4\
**Last updated:** [September 8, 2021, 2:30pm UTC](https://discourse.julialang.org/t/ann-csv-jl-0-9-release/67844 "2021-09-08T14:30:20Z")

</div>

Hello all, We’re pleased to present the 0.9 release of CSV.jl. Highlights include: Big internals refactoring to simplify code, make maintenance/future feature work easier, and make current features a little more robu…

---

## [State of automatic differentiation in Julia](https://discourse.julialang.org/t/state-of-automatic-differentiation-in-julia/43083)

<div class="topic-metadata">

**Author:** [@Samuel\_Ainsworth](https://discourse.julialang.org/u/Samuel_Ainsworth)\
**Replies:** 56\
**Last updated:** [September 8, 2021, 2:16pm UTC](https://discourse.julialang.org/t/state-of-automatic-differentiation-in-julia/43083 "2021-09-08T14:16:12Z")

</div>

There seems to be a plethora of AD frameworks in Julia. I’m curious what the state of the ecosystem looks like currently. I’m aware of the following packages: FowardDiff ForwardDiff2 Nabla Tracker Yota Zygote ReverseD…

---

## [Float.(randn(dims)) or randn(Float32, dims)](https://discourse.julialang.org/t/float-randn-dims-or-randn-float32-dims/67863)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 6\
**Last updated:** [September 8, 2021, 2:14pm UTC](https://discourse.julialang.org/t/float-randn-dims-or-randn-float32-dims/67863 "2021-09-08T14:14:31Z")

</div>

Found a behaviour of randn that I didn’t really understand. Since there exists a version where you can select the type I assume that that would be more efficient than generating and then converting, but it seems that thi…

---

## [Looking for a 5-month remote data science internship using Julia](https://discourse.julialang.org/t/looking-for-a-5-month-remote-data-science-internship-using-julia/67873)

<div class="topic-metadata">

**Author:** [@SaranjeetKaur](https://discourse.julialang.org/u/SaranjeetKaur)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 12:50pm UTC](https://discourse.julialang.org/t/looking-for-a-5-month-remote-data-science-internship-using-julia/67873 "2021-09-08T12:50:21Z")

</div>

Hi, I am looking for a 5-month remote data science internship starting from October 2021 or earlier. I am searching for work in Julia and previously have experience using Python and R. Willing to learn more tools as per…

---

## [Using Julia in a containerized Nextflow pipeline](https://discourse.julialang.org/t/using-julia-in-a-containerized-nextflow-pipeline/67871)

<div class="topic-metadata">

**Author:** [@MillironX](https://discourse.julialang.org/u/MillironX)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 12:33pm UTC](https://discourse.julialang.org/t/using-julia-in-a-containerized-nextflow-pipeline/67871 "2021-09-08T12:33:35Z")

</div>

I’m using Julia scripts inside of a container-based Nextflow pipeline. Basically, the pipeline script will pull a fresh Julia Singularity image, add the bin directory associated with the pipeline directory to PATH, and t…

---

## [Calculating Lyapunov Exponents in a different manner](https://discourse.julialang.org/t/calculating-lyapunov-exponents-in-a-different-manner/67865)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 10:29am UTC](https://discourse.julialang.org/t/calculating-lyapunov-exponents-in-a-different-manner/67865 "2021-09-08T10:29:40Z")

</div>

Hi! I started on a non-linear dynamics project. And am using DifferentialEuations.jl to generate the trajectory. Over this I would like to numerically estimate the Lyapunov exponent for arbitrary trajectories. I have s…

---

## [Replicating ologit results from Econometrics.jl](https://discourse.julialang.org/t/replicating-ologit-results-from-econometrics-jl/67819)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 6\
**Last updated:** [September 8, 2021, 9:51am UTC](https://discourse.julialang.org/t/replicating-ologit-results-from-econometrics-jl/67819 "2021-09-08T09:51:42Z")

</div>

I’m having a hard time replicating the results of an ordered logit regression in Econometrics.jl. The code for the estimation is done here. The objective function is here. Here is my implementation (you can download the…

---

## [How to indicate a specific path to julia libdl find\_library()?](https://discourse.julialang.org/t/how-to-indicate-a-specific-path-to-julia-libdl-find-library/67794)

<div class="topic-metadata">

**Author:** [@Julie96](https://discourse.julialang.org/u/Julie96)\
**Replies:** 6\
**Last updated:** [September 8, 2021, 9:20am UTC](https://discourse.julialang.org/t/how-to-indicate-a-specific-path-to-julia-libdl-find-library/67794 "2021-09-08T09:20:24Z")

</div>

copy paste of this thread : I’m trying to indicate a specific path to find\_library(). Based on the doc, find\_library() Searches for the first library in names in the paths in the locations list, DL\_LOAD\_PATH, or syste…

---

## [Adding a row to SQLite.jl database](https://discourse.julialang.org/t/adding-a-row-to-sqlite-jl-database/44139)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 5\
**Last updated:** [August 24, 2021, 6:03pm UTC](https://discourse.julialang.org/t/adding-a-row-to-sqlite-jl-database/44139 "2021-08-24T18:03:00Z")

</div>

How do you add a row to a SQLite.jl database? julia\> using SQLite julia\> db = SQLite.DB("temp.sqlite") SQLite.DB("temp.sqlite") julia\> SQLite.createtable!(db, "Primes", Tables.Schema(("index", "prime"), (Int, Int))) No…

---

## [Adaptive methods for image contrast stretching?](https://discourse.julialang.org/t/adaptive-methods-for-image-contrast-stretching/67774)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 7:51am UTC](https://discourse.julialang.org/t/adaptive-methods-for-image-contrast-stretching/67774 "2021-09-08T07:51:50Z")

</div>

Hi, I have an image with small repeating structures, which need to be stretched in the same range(0-1). My intuition is to partition the image to many small tiles, and apply contrast linear stretching for each tile,…

---

## [\[ANN\] InstaRound.jl](https://discourse.julialang.org/t/ann-instaround-jl/67807)

<div class="topic-metadata">

**Author:** [@PyDataBlog](https://discourse.julialang.org/u/PyDataBlog)\
**Replies:** 7\
**Last updated:** [September 8, 2021, 7:45am UTC](https://discourse.julialang.org/t/ann-instaround-jl/67807 "2021-09-08T07:45:42Z")

</div>

I am excited to share one of the Julia packages I worked on during the summer. InstaRound.jl is a small utility Julia package which extends Base.round with a more human readable rounding style. This is useful for anyone…

---

## [Distributed workers automatically load code on "using"](https://discourse.julialang.org/t/distributed-workers-automatically-load-code-on-using/67809)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 2\
**Last updated:** [September 8, 2021, 7:23am UTC](https://discourse.julialang.org/t/distributed-workers-automatically-load-code-on-using/67809 "2021-09-08T07:23:22Z")

</div>

So in the docs for distributed we have: Finally, if DummyModule.jl is not a standalone file but a package, then using DummyModule will load DummyModule.jl on all processes, but only bring it into scope on the process w…

---

## [Simple Regression using DiffEqFlux](https://discourse.julialang.org/t/simple-regression-using-diffeqflux/66842)

<div class="topic-metadata">

**Author:** [@amit1](https://discourse.julialang.org/u/amit1)\
**Replies:** 6\
**Last updated:** [September 8, 2021, 6:27am UTC](https://discourse.julialang.org/t/simple-regression-using-diffeqflux/66842 "2021-09-08T06:27:53Z")

</div>

I am trying to work out a simple application of NeuralODE for regression problems, based on the following tutorial. Core idea here being (as per my understanding) that regression problems can be modelled as y = \\int\_{…

---

## [Conjugate gradient with incomplete Cholesky preconditioner](https://discourse.julialang.org/t/conjugate-gradient-with-incomplete-cholesky-preconditioner/7809)

<div class="topic-metadata">

**Author:** [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Replies:** 22\
**Last updated:** [September 6, 2021, 10:27pm UTC](https://discourse.julialang.org/t/conjugate-gradient-with-incomplete-cholesky-preconditioner/7809 "2021-09-06T22:27:13Z")

</div>

I have been trying my luck with using the conjugate gradient method to solve a sparse symmetric positive definite system of equations. I found IterativeSolvers.jl, Krylov.jl and KrylovMethods.jl, of which the first seems…

---

## [( (x,y) -\> x+y ).( \[ (1,2), (3,4) \] )](https://discourse.julialang.org/t/x-y-x-y-1-2-3-4/67846)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 8\
**Last updated:** [September 8, 2021, 5:43am UTC](https://discourse.julialang.org/t/x-y-x-y-1-2-3-4/67846 "2021-09-08T05:43:14Z")

</div>

( (x,y) -\> x+y ).( \[ (1,2), (3,4) \] ) gives an error. Is it possible to apply a multi-variable anonymous function to a vector of tuples like this ?

---

## [Using date difference for conditional](https://discourse.julialang.org/t/using-date-difference-for-conditional/67801)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 2\
**Last updated:** [September 8, 2021, 2:48am UTC](https://discourse.julialang.org/t/using-date-difference-for-conditional/67801 "2021-09-08T02:48:41Z")

</div>

I’m a new Julia user and feeling really dumb here because Dates are absolutely killing me. I just want to do something like if (Date1-Date2)\>1 # to represent the difference is than 1 day. do something else My proble…

---

## [Branching on algorithmic options - advice on code organization](https://discourse.julialang.org/t/branching-on-algorithmic-options-advice-on-code-organization/67800)

<div class="topic-metadata">

**Author:** [@Snir\_Gazit](https://discourse.julialang.org/u/Snir_Gazit)\
**Replies:** 3\
**Last updated:** [September 8, 2021, 2:48am UTC](https://discourse.julialang.org/t/branching-on-algorithmic-options-advice-on-code-organization/67800 "2021-09-08T02:48:40Z")

</div>

A situation I encounter pretty frequently is the need to modify the behavior of an algorithm according to some boolean (or more general) “options” parameters. A plain if-else statement evaluated at runtime can be costly…

---

## [Write StatsBase Histogram to JSON using JSON3](https://discourse.julialang.org/t/write-statsbase-histogram-to-json-using-json3/67601)

<div class="topic-metadata">

**Author:** [@Jonm](https://discourse.julialang.org/u/Jonm)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 11:17pm UTC](https://discourse.julialang.org/t/write-statsbase-histogram-to-json-using-json3/67601 "2021-09-07T23:17:56Z")

</div>

With help from @quinnj, I thought I was getting the hang of writing structs to JSON using JSON3. I can’t seem to teach JSON3 to write the Histogram object from StatsBase.jl I have tried to use StructTypes.StructType(::…

---

## [Annotations in Makie.jl](https://discourse.julialang.org/t/annotations-in-makie-jl/55773)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 4\
**Last updated:** [September 7, 2021, 8:50pm UTC](https://discourse.julialang.org/t/annotations-in-makie-jl/55773 "2021-09-07T20:50:50Z")

</div>

Is it currently possible to annotate Makie-plots? I am thinking about having text at the root of an arrow that point to some location in the plot. I am imagining that one could DIY it by plotting a vector, and possible p…

---

## [Permute x and y axes of a \`Makie.Axis\`](https://discourse.julialang.org/t/permute-x-and-y-axes-of-a-makie-axis/67826)

<div class="topic-metadata">

**Author:** [@goretkin](https://discourse.julialang.org/u/goretkin)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 8:21pm UTC](https://discourse.julialang.org/t/permute-x-and-y-axes-of-a-makie-axis/67826 "2021-09-07T20:21:21Z")

</div>

This example shows how to reverse the direction of the x- and y-axis. However, I am interested in plotting the first coordinate of data along the vertical axis, and the second coordinate of data along the horizontal axis…

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

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