# Latest

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

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

**Page:** 1092

---

## [\[ANN\] ExtremeFloats.jl: Floats with extended range of exponents](https://discourse.julialang.org/t/ann-extremefloats-jl-floats-with-extended-range-of-exponents/78164)

<div class="topic-metadata">

**Author:** [@a5sk6n](https://discourse.julialang.org/u/a5sk6n)\
**Replies:** 1\
**Last updated:** [March 20, 2022, 4:20pm UTC](https://discourse.julialang.org/t/ann-extremefloats-jl-floats-with-extended-range-of-exponents/78164 "2022-03-20T16:20:37Z")

</div>

ExtremeFloats.jl is a new package that allows you to perform floating point operations with a very large range of exponents. Float64 offers 11 bits for the exponent, ExtremeFloat gives you 64 bits. This is especially use…

---

## [CI broken on nightly](https://discourse.julialang.org/t/ci-broken-on-nightly/78159)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [March 20, 2022, 3:44pm UTC](https://discourse.julialang.org/t/ci-broken-on-nightly/78159 "2022-03-20T15:44:20Z")

</div>

I have the following code in my file CI.yml: jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event\_name }} runs-on: ${{ matrix.os }} timeout-minutes: 40 …

---

## [Uniformal distribution](https://discourse.julialang.org/t/uniformal-distribution/78161)

<div class="topic-metadata">

**Author:** [@Mahmoud](https://discourse.julialang.org/u/Mahmoud)\
**Replies:** 2\
**Last updated:** [March 20, 2022, 2:49pm UTC](https://discourse.julialang.org/t/uniformal-distribution/78161 "2022-03-20T14:49:07Z")

</div>

I have a length L=44 and I have 100 particles (each particle is an object who has its own x and y variables to locate its location in the future). I want to uniformly distribute the 100 particles in a square of length L …

---

## [Problem with Plots](https://discourse.julialang.org/t/problem-with-plots/78040)

<div class="topic-metadata">

**Author:** [@Joan\_Flores](https://discourse.julialang.org/u/Joan_Flores)\
**Replies:** 5\
**Last updated:** [March 20, 2022, 2:43pm UTC](https://discourse.julialang.org/t/problem-with-plots/78040 "2022-03-20T14:43:53Z")

</div>

Hello, I have a problem with Plots, I can’t use it. I try to use for plottinf time series from seismology, but it doesn’t work. \*\*I use Fedora 35 and julia 1.7.1. when… using Plots… this is the results: julia\> using …

---

## [Input/output to an external process](https://discourse.julialang.org/t/input-output-to-an-external-process/78160)

<div class="topic-metadata">

**Author:** [@dodoplus](https://discourse.julialang.org/u/dodoplus)\
**Replies:** 3\
**Last updated:** [March 20, 2022, 2:19pm UTC](https://discourse.julialang.org/t/input-output-to-an-external-process/78160 "2022-03-20T14:19:49Z")

</div>

Hi, I want to both read and write to an external process. It seems that if e.g. I just want to read or write to a process, there’s a nice way of doing that (from the docs): open(\`less\`, "w", stdout) do io for i =…

---

## [Continual learning in xgboost](https://discourse.julialang.org/t/continual-learning-in-xgboost/78163)

<div class="topic-metadata">

**Author:** [@roh\_codeur](https://discourse.julialang.org/u/roh_codeur)\
**Replies:** 0\
**Last updated:** [March 20, 2022, 2:17pm UTC](https://discourse.julialang.org/t/continual-learning-in-xgboost/78163 "2022-03-20T14:17:53Z")

</div>

Hi I am planning on using continual learning in XGboost. In python, it would work as below: https://xgboost.readthedocs.io/en/latest/python/python\_api.html#xgboost.XGBRegressor.fit https://stackoverflow.com/questions/…

---

## [How to use 96 bits floats?](https://discourse.julialang.org/t/how-to-use-96-bits-floats/78155)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 4\
**Last updated:** [March 20, 2022, 12:29pm UTC](https://discourse.julialang.org/t/how-to-use-96-bits-floats/78155 "2022-03-20T12:29:01Z")

</div>

I am solving some linear systems with ill-conditioned sparse matrices. Using Float64 sometimes the solver returns “Singular matrix”. I would like to increase the number of bits for the floating-point numbers in the spar…

---

## [@ode\_def not defined](https://discourse.julialang.org/t/ode-def-not-defined/40042)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 8\
**Last updated:** [March 20, 2022, 12:42pm UTC](https://discourse.julialang.org/t/ode-def-not-defined/40042 "2022-03-20T12:42:03Z")

</div>

I am using DifferentialEquations.jl in a Julia Notebook. The code starts as: using DifferentalEquations using ParameterizedFunctions sir\_ode = @ode\_def SIRModel begin dS = -β\*S\*I dI = β\*S\*I-γ\*I dR = γ\*I …

---

## [Nonparametric functions for time-varying parameters in ODE models?](https://discourse.julialang.org/t/nonparametric-functions-for-time-varying-parameters-in-ode-models/78137)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 1\
**Last updated:** [March 20, 2022, 11:33am UTC](https://discourse.julialang.org/t/nonparametric-functions-for-time-varying-parameters-in-ode-models/78137 "2022-03-20T11:33:47Z")

</div>

Dear All, I’m interested in having an ODE model where the parameters change over time specified by some nonparametric function e.g. splines, or at least some sort of basis function over time, etc. so I can get a flexibl…

---

## [How do I apply the JuliaMono font for Julia Repl in Windows](https://discourse.julialang.org/t/how-do-i-apply-the-juliamono-font-for-julia-repl-in-windows/78157)

<div class="topic-metadata">

**Author:** [@hungpham3112](https://discourse.julialang.org/u/hungpham3112)\
**Replies:** 2\
**Last updated:** [March 20, 2022, 10:02am UTC](https://discourse.julialang.org/t/how-do-i-apply-the-juliamono-font-for-julia-repl-in-windows/78157 "2022-03-20T10:02:47Z")

</div>

I downloaded JuliaMono font but I can’t apply it to Julia interactive shell. It showed this message. I still have shortcut for Julia by using scoop install julia

---

## [ModelingToolkit: Some questions on usage & best practices](https://discourse.julialang.org/t/modelingtoolkit-some-questions-on-usage-best-practices/77426)

<div class="topic-metadata">

**Author:** [@RobertS](https://discourse.julialang.org/u/RobertS)\
**Replies:** 5\
**Last updated:** [March 20, 2022, 8:49am UTC](https://discourse.julialang.org/t/modelingtoolkit-some-questions-on-usage-best-practices/77426 "2022-03-20T08:49:55Z")

</div>

Based on an earlier discussion here on discourse formulated a physical system in Modeling toolkit. The system consists of a discretized 1D PDE, ODEs and an algebraic equation. The physical nature of the system is further…

---

## [Access arrays in memory order, along columns](https://discourse.julialang.org/t/access-arrays-in-memory-order-along-columns/77073)

<div class="topic-metadata">

**Author:** [@fredrikpaues](https://discourse.julialang.org/u/fredrikpaues)\
**Replies:** 13\
**Last updated:** [March 20, 2022, 8:45am UTC](https://discourse.julialang.org/t/access-arrays-in-memory-order-along-columns/77073 "2022-03-20T08:45:22Z")

</div>

I’m trying to wrap my head around how I best should iterate over arrays. I’m coming to Julia after primarily using MATLAB and as both MATLAB and Julia are column major arrays should be accessed in the exact same order. M…

---

## [ModelingToolkit: Building a DAEProblem and solving it with IDA with KLU & Jacobian usage](https://discourse.julialang.org/t/modelingtoolkit-building-a-daeproblem-and-solving-it-with-ida-with-klu-jacobian-usage/77814)

<div class="topic-metadata">

**Author:** [@RobertS](https://discourse.julialang.org/u/RobertS)\
**Replies:** 3\
**Last updated:** [March 20, 2022, 8:41am UTC](https://discourse.julialang.org/t/modelingtoolkit-building-a-daeproblem-and-solving-it-with-ida-with-klu-jacobian-usage/77814 "2022-03-20T08:41:13Z")

</div>

I have coded an MTK system that I build a DAEProblem from. I am now trying to find out how to solve that problem using Sundials IDA with KLU as linear solver. As far as I know, this requires that the Jacobian matrix is g…

---

## [Is there a way to write a coordinate plane on top of an image?](https://discourse.julialang.org/t/is-there-a-way-to-write-a-coordinate-plane-on-top-of-an-image/77796)

<div class="topic-metadata">

**Author:** [@matic\_lauko](https://discourse.julialang.org/u/matic_lauko)\
**Replies:** 8\
**Last updated:** [March 20, 2022, 7:03am UTC](https://discourse.julialang.org/t/is-there-a-way-to-write-a-coordinate-plane-on-top-of-an-image/77796 "2022-03-20T07:03:57Z")

</div>

Is there a way to write a coordinate plane on an image? And be able to get some coordinates of some points. The second part is not necessary. Thank you.

---

## [Julia - How to plot a histogram with density as the vertical axis (中怎么绘制密度为纵轴的直方图)](https://discourse.julialang.org/t/julia-how-to-plot-a-histogram-with-density-as-the-vertical-axis/78149)

<div class="topic-metadata">

**Author:** [@Yanjj1](https://discourse.julialang.org/u/Yanjj1)\
**Replies:** 2\
**Last updated:** [March 20, 2022, 3:56am UTC](https://discourse.julialang.org/t/julia-how-to-plot-a-histogram-with-density-as-the-vertical-axis/78149 "2022-03-20T03:56:03Z")

</div>

1、julia怎么绘制直方图，纵轴为密度，然后拟合密度曲线 2、julia怎么绘制正态分布曲线？ 3.或者julia对于r里的ggplot的…density…会无法识别要怎么修改？以下是我的r代码 ggplot(data, aes\_string(x=“V5”)) + geom\_histogram(aes(y=…density…), # 这一步很重要,使用density代替y轴 binwidth=1, colour=…

---

## [\`log\` performance regression and JET failures](https://discourse.julialang.org/t/log-performance-regression-and-jet-failures/78146)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 3\
**Last updated:** [March 20, 2022, 12:33am UTC](https://discourse.julialang.org/t/log-performance-regression-and-jet-failures/78146 "2022-03-20T00:33:32Z")

</div>

Hi, I’m seeing some surprising results for log in 1.8.0-beta1. First, 1.7: julia\> versioninfo() Julia Version 1.7.2 Commit bf53498635 (2022-02-06 15:21 UTC) Platform Info: OS: Linux (x86\_64-pc-linux-gnu) CPU: Intel(…

---

## [\[ANN\] LiveServer: A simple development server with live-reload capability](https://discourse.julialang.org/t/ann-liveserver-a-simple-development-server-with-live-reload-capability/23380)

<div class="topic-metadata">

**Author:** [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Replies:** 8\
**Last updated:** [March 19, 2022, 8:59pm UTC](https://discourse.julialang.org/t/ann-liveserver-a-simple-development-server-with-live-reload-capability/23380 "2022-03-19T20:59:46Z")

</div>

Hi everyone, we (@tlienart and myself) have developed a simple and lightweight pure-Julia development web-server, inspired from Python’s http.server and Node’s browsersync. It is based on HTTP.jl and has live-reload capa…

---

## [Isolation Forests?](https://discourse.julialang.org/t/isolation-forests/77859)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 5\
**Last updated:** [March 19, 2022, 8:51pm UTC](https://discourse.julialang.org/t/isolation-forests/77859 "2022-03-19T20:51:30Z")

</div>

Has anyone found or implemented a routine for Isolation Forests in Julia? Thanks in advance.

---

## [Why is expanduser not used in abspath](https://discourse.julialang.org/t/why-is-expanduser-not-used-in-abspath/78136)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 5\
**Last updated:** [March 19, 2022, 7:25pm UTC](https://discourse.julialang.org/t/why-is-expanduser-not-used-in-abspath/78136 "2022-03-19T19:25:11Z")

</div>

I noticed that the tilde symbol is not handled by abspath. What function should I use to expand a path shorthand? julia\> expanduser("~/.julia") "/home/michael/.julia" julia\> abspath("~/.julia") "/home/michael/~/.julia"…

---

## [How to have multiple processes use the same GPU?](https://discourse.julialang.org/t/how-to-have-multiple-processes-use-the-same-gpu/78103)

<div class="topic-metadata">

**Author:** [@jmair](https://discourse.julialang.org/u/jmair)\
**Replies:** 2\
**Last updated:** [March 18, 2022, 8:05pm UTC](https://discourse.julialang.org/t/how-to-have-multiple-processes-use-the-same-gpu/78103 "2022-03-18T20:05:55Z")

</div>

Hi, I have a problem where I have an “embarrassingly” parallel task which uses the GPU. This task would be able to run fine on a GPU with ~3GB of memory, but I have a 3090ti with 24GB of RAM. I want to parallelise this …

---

## [BSON error when loading Flux model](https://discourse.julialang.org/t/bson-error-when-loading-flux-model/78085)

<div class="topic-metadata">

**Author:** [@luciano-drozda](https://discourse.julialang.org/u/luciano-drozda)\
**Replies:** 7\
**Last updated:** [March 19, 2022, 4:53pm UTC](https://discourse.julialang.org/t/bson-error-when-loading-flux-model/78085 "2022-03-19T16:53:42Z")

</div>

The command m = BSON.load("model.bson", @\_\_MODULE\_\_)\[:m\] is throwing ERROR: MethodError: Cannot \`convert\` an object of type CuContext to an object of type CuPtr{Nothing} Closest candidates are: convert(::Type{CuPtr{…

---

## [Exporting structs and functions](https://discourse.julialang.org/t/exporting-structs-and-functions/78133)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 1\
**Last updated:** [March 19, 2022, 4:46pm UTC](https://discourse.julialang.org/t/exporting-structs-and-functions/78133 "2022-03-19T16:46:41Z")

</div>

Hi, I am having a little trouble when exporting Structs and functions across several julia files. Here is an example # --- agent\_type.jl --- module Agent\_Type using Agents: AbstractAgent export Casualty mutable stru…

---

## [How to acces the array element of symbolic array](https://discourse.julialang.org/t/how-to-acces-the-array-element-of-symbolic-array/78135)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 0\
**Last updated:** [March 19, 2022, 4:07pm UTC](https://discourse.julialang.org/t/how-to-acces-the-array-element-of-symbolic-array/78135 "2022-03-19T16:07:56Z")

</div>

Hi All, I want to convert matlab code to julia. is there a way to access elements of symbolic expression. function \[xqq,xq,wq\]=SetIntoptimal1D(n) clc #clear all; syms y # Input n: Quad pt rule m=n-1; P=sym('a',\[1,n\])…

---

## [Type instability with Union or heterogenous array/tuple](https://discourse.julialang.org/t/type-instability-with-union-or-heterogenous-array-tuple/78122)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 8\
**Last updated:** [March 19, 2022, 3:23pm UTC](https://discourse.julialang.org/t/type-instability-with-union-or-heterogenous-array-tuple/78122 "2022-03-19T15:23:31Z")

</div>

Hey Julianners, I just cannot figure out how to make type stable code in case when we have a “sort of” heterogeneous array or tuple and we randomly pick an element. I did this minimal example. hn(qq) = begin local r …

---

## [Julia LTS 1.6.6 testing period](https://discourse.julialang.org/t/julia-lts-1-6-6-testing-period/78132)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 0\
**Last updated:** [March 19, 2022, 3:16pm UTC](https://discourse.julialang.org/t/julia-lts-1-6-6-testing-period/78132 "2022-03-19T15:16:36Z")

</div>

The release-1.6 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.6.6, the sixth patch release in the 1.6 series. The list of commits included since v1.6.5 is available here . As …

---

## [Imfilter for 3d array](https://discourse.julialang.org/t/imfilter-for-3d-array/78118)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [March 19, 2022, 2:55pm UTC](https://discourse.julialang.org/t/imfilter-for-3d-array/78118 "2022-03-19T14:55:41Z")

</div>

I am doing sdata = imfilter(deepcopy(tdata), Kernel.gaussian(3), Inner()) where tdata is a 3d array. It appears that the smoothing is being done by considering separately 2d slices of the image. Am I missing something…

---

## [Difference handling missing of enumerate and eachindex](https://discourse.julialang.org/t/difference-handling-missing-of-enumerate-and-eachindex/78125)

<div class="topic-metadata">

**Author:** [@drandran12](https://discourse.julialang.org/u/drandran12)\
**Replies:** 3\
**Last updated:** [March 19, 2022, 2:10pm UTC](https://discourse.julialang.org/t/difference-handling-missing-of-enumerate-and-eachindex/78125 "2022-03-19T14:10:43Z")

</div>

The following behavior has cost me 6 hours of debugging. Is there a reason enumerate and eachindex handle the skipmissing itorator differently? julia\> a = \[missing, missing, missing, missing, missing, missing, missing, …

---

## [@sprintf() does not work inside a for loop](https://discourse.julialang.org/t/sprintf-does-not-work-inside-a-for-loop/78126)

<div class="topic-metadata">

**Author:** [@LispyArnuld](https://discourse.julialang.org/u/LispyArnuld)\
**Replies:** 4\
**Last updated:** [March 19, 2022, 12:27pm UTC](https://discourse.julialang.org/t/sprintf-does-not-work-inside-a-for-loop/78126 "2022-03-19T12:27:53Z")

</div>

@sprintf() does not work inside for loop. I wonder why. julia\> using Printf julia\> for k in 1:10 @sprintf("%.4f, ", sin(k)) end julia\> @sprintf("%.4f, ", sin(2)) "0.9093, " julia\> for k in 1:10 …

---

## [Why is \`collect()\` faster than a for loop in this numerical scheme? (corrected!)](https://discourse.julialang.org/t/why-is-collect-faster-than-a-for-loop-in-this-numerical-scheme-corrected/78003)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 25\
**Last updated:** [March 19, 2022, 10:33am UTC](https://discourse.julialang.org/t/why-is-collect-faster-than-a-for-loop-in-this-numerical-scheme-corrected/78003 "2022-03-19T10:33:54Z")

</div>

Consider a toy algorithm that finds the maximum of a vector, then removes it and alters the other entries of the vector in a way that depends on whether they are located at a lower or higher index. (N.B. I posted a simp…

---

## [Why the variable's value does not change?](https://discourse.julialang.org/t/why-the-variables-value-does-not-change/78120)

<div class="topic-metadata">

**Author:** [@PoleZhang](https://discourse.julialang.org/u/PoleZhang)\
**Replies:** 2\
**Last updated:** [March 19, 2022, 9:01am UTC](https://discourse.julialang.org/t/why-the-variables-value-does-not-change/78120 "2022-03-19T09:01:42Z")

</div>

a = 200000 function TestAdd(a::Ref{Int64}) println("Before add $(a\[ \])") a\[\]+= 10 println("After add $(a\[\])") end TestAdd(Ref(a)) println(a) Result as below : Before add 200000 After add 200010 200000

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

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