# Latest

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

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

**Page:** 681

---

## [Stop of a range with length 0](https://discourse.julialang.org/t/stop-of-a-range-with-length-0/99865)

<div class="topic-metadata">

**Author:** [@abs](https://discourse.julialang.org/u/abs)\
**Replies:** 3\
**Last updated:** [June 5, 2023, 6:49am UTC](https://discourse.julialang.org/t/stop-of-a-range-with-length-0/99865 "2023-06-05T06:49:29Z")

</div>

Just curious: For the following kind of ranges of length 0, please note the submitted stop and returned julia\> 12:1:\*\*3\*\* 12:1:\*\*11\*\* julia\> range(12,\*\*stop=3\*\*;step = 1) 12:1:\*\*11\*\* Is this by design? \_range(start:…

---

## [Error when processing data from file for linear regression](https://discourse.julialang.org/t/error-when-processing-data-from-file-for-linear-regression/99824)

<div class="topic-metadata">

**Author:** [@Leticia-maria](https://discourse.julialang.org/u/Leticia-maria)\
**Replies:** 7\
**Last updated:** [June 5, 2023, 6:22am UTC](https://discourse.julialang.org/t/error-when-processing-data-from-file-for-linear-regression/99824 "2023-06-05T06:22:46Z")

</div>

Dear all, I am trying to run the following code: I extract the data from a Matlab file I split train/test I try to run linear regression the following issues: I wanna reduce allocations I wanna make It faster usin…

---

## [Any Human Brain Project members that (would like to) use Julia?](https://discourse.julialang.org/t/any-human-brain-project-members-that-would-like-to-use-julia/33143)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 7\
**Last updated:** [June 5, 2023, 5:31am UTC](https://discourse.julialang.org/t/any-human-brain-project-members-that-would-like-to-use-julia/33143 "2023-06-05T05:31:41Z")

</div>

I am involved in some activities of the Human Brain Project (HBP) \[1\] working at the Swiss National Supercomputing Centre and have unfortunately not yet encountered any Julia users within this huge project. I would like …

---

## [Step response using ModelingToolkit](https://discourse.julialang.org/t/step-response-using-modelingtoolkit/99846)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [June 5, 2023, 5:02am UTC](https://discourse.julialang.org/t/step-response-using-modelingtoolkit/99846 "2023-06-05T05:02:15Z")

</div>

I have a non-linear system defined using ModelingToolkit. Now I want to plot the step response. I use the following code: using ModelingToolkit, OrdinaryDiffEq, DataInterpolations, Plots Cp=\[0.024384377390186646,0.0381…

---

## [VSCode Using Julia 1.47.2](https://discourse.julialang.org/t/vscode-using-julia-1-47-2/99693)

<div class="topic-metadata">

**Author:** [@eweiss](https://discourse.julialang.org/u/eweiss)\
**Replies:** 8\
**Last updated:** [June 4, 2023, 11:56pm UTC](https://discourse.julialang.org/t/vscode-using-julia-1-47-2/99693 "2023-06-04T23:56:30Z")

</div>

When I run Julia from the Mac command line, I use ver 1.9. VSCode’s most recent version (2 weeks old) is 1.47.2 and I can’t run the code I’ve developed in 1.9 (using the command line and MacVim) in VSCode. The most recen…

---

## [Learning Julia by an example of a simple Bayesian linear regression](https://discourse.julialang.org/t/learning-julia-by-an-example-of-a-simple-bayesian-linear-regression/99811)

<div class="topic-metadata">

**Author:** [@Boris](https://discourse.julialang.org/u/Boris)\
**Replies:** 10\
**Last updated:** [June 4, 2023, 8:58pm UTC](https://discourse.julialang.org/t/learning-julia-by-an-example-of-a-simple-bayesian-linear-regression/99811 "2023-06-04T20:58:49Z")

</div>

Hello everyone, long-time lurker, very occasional poster. I decided to give Julia a try once more with 1.9. So far I have struggled with the language on and off (I have touched on this previously) but would really like …

---

## [Find filtered min/max index](https://discourse.julialang.org/t/find-filtered-min-max-index/95154)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 22\
**Last updated:** [June 4, 2023, 7:52pm UTC](https://discourse.julialang.org/t/find-filtered-min-max-index/95154 "2023-06-04T19:52:30Z")

</div>

Every now and then I need to find the index of the min/max element of a filtered data structure. I was wondering, how do you normally tackle this quite common problem? As a first reaction I think of findmin(o, filter(f…

---

## [Crooked array saving to files](https://discourse.julialang.org/t/crooked-array-saving-to-files/99855)

<div class="topic-metadata">

**Author:** [@k.kirshin123](https://discourse.julialang.org/u/k.kirshin123)\
**Replies:** 2\
**Last updated:** [June 4, 2023, 6:59pm UTC](https://discourse.julialang.org/t/crooked-array-saving-to-files/99855 "2023-06-04T18:59:05Z")

</div>

Hello everyone, I need to write two random matrices to txt files and read them later, but every time I try to do this, I notice that the files were written very crookedly, my program does not work from this. As I have r…

---

## [Optional parameters with default types in parametric structure constructors](https://discourse.julialang.org/t/optional-parameters-with-default-types-in-parametric-structure-constructors/99812)

<div class="topic-metadata">

**Author:** [@zp3](https://discourse.julialang.org/u/zp3)\
**Replies:** 12\
**Last updated:** [June 4, 2023, 6:19pm UTC](https://discourse.julialang.org/t/optional-parameters-with-default-types-in-parametric-structure-constructors/99812 "2023-06-04T18:19:35Z")

</div>

Hi folks, I’m quite new to Julia (1.9) so please forgive me if this is a silly request or if I have overseen something. However, I’m currently facing serious troubles/incoveniences while implementing some parametric str…

---

## [\[ANN\] Announcing SPICEApplications.jl](https://discourse.julialang.org/t/ann-announcing-spiceapplications-jl/99854)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 0\
**Last updated:** [June 4, 2023, 5:45pm UTC](https://discourse.julialang.org/t/ann-announcing-spiceapplications-jl/99854 "2023-06-04T17:45:43Z")

</div>

The SPICE Toolkit (provided to Julia through CSPICE\_jll) provides applications, which are a subset of all the available utility functions provided by NAIF / NASA. One critical file is mkspk, which can turn CSV files int…

---

## [How to use the array as the argument for curve-fit?](https://discourse.julialang.org/t/how-to-use-the-array-as-the-argument-for-curve-fit/99802)

<div class="topic-metadata">

**Author:** [@manu\_han](https://discourse.julialang.org/u/manu_han)\
**Replies:** 3\
**Last updated:** [June 4, 2023, 4:29pm UTC](https://discourse.julialang.org/t/how-to-use-the-array-as-the-argument-for-curve-fit/99802 "2023-06-04T16:29:22Z")

</div>

I wanna using curve-fit with an independent variable constituted by 4 float64 elements (Vector{Array{Float64,3} with 4 elements}. However, It didn’t work and give the message as follows: MethodError: no method matching…

---

## [Connecting DataFrames with diffrent columns](https://discourse.julialang.org/t/connecting-dataframes-with-diffrent-columns/99844)

<div class="topic-metadata">

**Author:** [@ardex2000](https://discourse.julialang.org/u/ardex2000)\
**Replies:** 7\
**Last updated:** [June 4, 2023, 4:02pm UTC](https://discourse.julialang.org/t/connecting-dataframes-with-diffrent-columns/99844 "2023-06-04T16:02:48Z")

</div>

I am a moron, who does not know how to connect DataFrames with diffrent columns. So essentialy the issue is: offspring1 = hcat(parent1\[1:crossover\_point\], parent2\[(crossover\_point + 1):end\]) The result should be a Dat…

---

## [\[ANN\] LimitOfDetection.jl - Easily estimate limit of detection](https://discourse.julialang.org/t/ann-limitofdetection-jl-easily-estimate-limit-of-detection/99852)

<div class="topic-metadata">

**Author:** [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Replies:** 0\
**Last updated:** [June 4, 2023, 3:54pm UTC](https://discourse.julialang.org/t/ann-limitofdetection-jl-easily-estimate-limit-of-detection/99852 "2023-06-04T15:54:46Z")

</div>

A modest package that does a single thing (hopefully well) : estimate a limit of detection from data. The limit of detection (LoD) is the lowest value of a variable, e.g. x at which an event can be detected with a given …

---

## [TimeZones I/O error with timezone\_names()](https://discourse.julialang.org/t/timezones-i-o-error-with-timezone-names/99833)

<div class="topic-metadata">

**Author:** [@kadee](https://discourse.julialang.org/u/kadee)\
**Replies:** 1\
**Last updated:** [June 4, 2023, 11:33am UTC](https://discourse.julialang.org/t/timezones-i-o-error-with-timezone-names/99833 "2023-06-04T11:33:04Z")

</div>

On Ubuntu 18.04 LTS julia 1.9 is generating I/O Error: while using TimeZones 1.10 “julia\>timezone\_names(): readdir(”/home/kadee/.julia/scratchspaces/…/build/compiled/tzjf/v1/2023c : no such file or directory (ENOENT)." …

---

## [A bug in thread?](https://discourse.julialang.org/t/a-bug-in-thread/99835)

<div class="topic-metadata">

**Author:** [@zhijie\_sun](https://discourse.julialang.org/u/zhijie_sun)\
**Replies:** 2\
**Last updated:** [June 4, 2023, 11:09am UTC](https://discourse.julialang.org/t/a-bug-in-thread/99835 "2023-06-04T11:09:40Z")

</div>

I find if I use Threads.threadid() and sleep together, the code will give wrong result. Also give wrong result when I replace sleep by lock. The code shouldn’t output anything, but it did output, that is why I say give …

---

## [How to plot outside VS Code?](https://discourse.julialang.org/t/how-to-plot-outside-vs-code/47242)

<div class="topic-metadata">

**Author:** [@cricci](https://discourse.julialang.org/u/cricci)\
**Replies:** 17\
**Last updated:** [June 4, 2023, 10:58am UTC](https://discourse.julialang.org/t/how-to-plot-outside-vs-code/47242 "2023-06-04T10:58:49Z")

</div>

I noticed that in the plugin Julia there is the option to plot outside VSCode instead of using the plot pane. This in my mind should create a plot window as when I makes plot directly form the julia console (not insid…

---

## [Track progress of multiple threads](https://discourse.julialang.org/t/track-progress-of-multiple-threads/94921)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 17\
**Last updated:** [June 4, 2023, 9:49am UTC](https://discourse.julialang.org/t/track-progress-of-multiple-threads/94921 "2023-06-04T09:49:22Z")

</div>

Hi, I have the following code function pb(i, k, lpad, LEN, PBSTR, PBWID,nb) perc = i/(LEN); lpad = floor(Int,perc \* LEN); print("\\r Processing data chunk ", k," of $nb : \[",first(PBSTR,lpad),first(PBWID,LE…

---

## [EUCCO 2023 Conference](https://discourse.julialang.org/t/eucco-2023-conference/99837)

<div class="topic-metadata">

**Author:** [@Hans\_W\_Borchers](https://discourse.julialang.org/u/Hans_W_Borchers)\
**Replies:** 1\
**Last updated:** [June 4, 2023, 8:56am UTC](https://discourse.julialang.org/t/eucco-2023-conference/99837 "2023-06-04T08:56:29Z")

</div>

In September 2023, the “European Conference on Computational Optimization”, EUCCO 2023, will take place in Heidelberg, Germany, https://scoop.iwr.uni-heidelberg.de/events/2023\_eucco/ with topics such as Optimization …

---

## [Emacs julia-mode: how to interpret the exclamation marks?](https://discourse.julialang.org/t/emacs-julia-mode-how-to-interpret-the-exclamation-marks/99707)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 7\
**Last updated:** [June 4, 2023, 8:23am UTC](https://discourse.julialang.org/t/emacs-julia-mode-how-to-interpret-the-exclamation-marks/99707 "2023-06-04T08:23:28Z")

</div>

\[I’ve just added one more question which is highly related.\] I’m using julia-mode and eglot-jl on emacs. On the left margin of the emacs window, you see green and amber exclamation marks. I guess amber means warning but…

---

## [Change record sequence in a BAM file using XAM](https://discourse.julialang.org/t/change-record-sequence-in-a-bam-file-using-xam/98141)

<div class="topic-metadata">

**Author:** [@ForestRaven](https://discourse.julialang.org/u/ForestRaven)\
**Replies:** 2\
**Last updated:** [June 4, 2023, 8:19am UTC](https://discourse.julialang.org/t/change-record-sequence-in-a-bam-file-using-xam/98141 "2023-06-04T08:19:05Z")

</div>

Hi, I would like to update the sequence of a list of records in a BAM file. Looking at the code of record.jl, data is stored as Vector{UInt64} and some dark magic is used to convert to a DNA sequence. As it looks very …

---

## [Rust in HPC study](https://discourse.julialang.org/t/rust-in-hpc-study/99834)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [June 4, 2023, 7:24am UTC](https://discourse.julialang.org/t/rust-in-hpc-study/99834 "2023-06-04T07:24:30Z")

</div>

OK, specific to Rust. I will happily move to another category. however this may be interesting to the audience here. Quote: The three languages used are Rust, C, and Fortran and the programme is run for serial and paral…

---

## [CairoMakie with Julia 1.8 on VScode](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 23\
**Last updated:** [June 4, 2023, 6:38am UTC](https://discourse.julialang.org/t/cairomakie-with-julia-1-8-on-vscode/86289 "2023-06-04T06:38:14Z")

</div>

I just installed Julia 1.8 and am trying to use it in VScode. When I try to import CairoMakie in the REPL in VScode, it generates the following series of errors. I wonder if anyone is experiencing the same issue and kn…

---

## [Accelerating linear methods](https://discourse.julialang.org/t/accelerating-linear-methods/99685)

<div class="topic-metadata">

**Author:** [@Leticia-maria](https://discourse.julialang.org/u/Leticia-maria)\
**Replies:** 11\
**Last updated:** [June 3, 2023, 11:15pm UTC](https://discourse.julialang.org/t/accelerating-linear-methods/99685 "2023-06-03T23:15:57Z")

</div>

Dear Julia friends, I am benchmarking Julia for linear regression models and trying to optimize that for high-dimensional spaces. Any suggestions on the code below to reduce allocations and speed up the code? Thank you s…

---

## [Second Fick Law -- NeuralPDE](https://discourse.julialang.org/t/second-fick-law-neuralpde/99497)

<div class="topic-metadata">

**Author:** [@aquarelleX332](https://discourse.julialang.org/u/aquarelleX332)\
**Replies:** 9\
**Last updated:** [June 3, 2023, 8:37pm UTC](https://discourse.julialang.org/t/second-fick-law-neuralpde/99497 "2023-06-03T20:37:34Z")

</div>

Hello everyone, I’m trying to solve Fick’s second law (1D), which is analogous to the thermal diffusion equation (or heat equation). Fick’s equation explains how a solute diffuses in a solvent. I was inspired by this c…

---

## [First time using Jump](https://discourse.julialang.org/t/first-time-using-jump/99819)

<div class="topic-metadata">

**Author:** [@A.Marx](https://discourse.julialang.org/u/A.Marx)\
**Replies:** 3\
**Last updated:** [June 3, 2023, 8:25pm UTC](https://discourse.julialang.org/t/first-time-using-jump/99819 "2023-06-03T20:25:18Z")

</div>

Hello all, I am new to JuMP and Julia. I am getting this error: LoadError: UndefVarError: @optimize! not defined in expression starting at c:\\Users\\alex-\\Documents\\OR Lab\\Introduction to Julia JuMP.jl:49 After @opti…

---

## [Legend for functions in a separate (stacked) plot](https://discourse.julialang.org/t/legend-for-functions-in-a-separate-stacked-plot/99796)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 3\
**Last updated:** [June 3, 2023, 7:20pm UTC](https://discourse.julialang.org/t/legend-for-functions-in-a-separate-stacked-plot/99796 "2023-06-03T19:20:41Z")

</div>

TLDR: In Gadfly, what’s the best way to put a legend for a plot into a separate (stacked) plot instead? My problem Current solution I have a module like this for a specific plotting use case: module Plotting using Gad…

---

## [\`Revise.jl\` is still automatically imported although the corresponding code in \`startup.jl\` has been deleted](https://discourse.julialang.org/t/revise-jl-is-still-automatically-imported-although-the-corresponding-code-in-startup-jl-has-been-deleted/99805)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [June 3, 2023, 2:36pm UTC](https://discourse.julialang.org/t/revise-jl-is-still-automatically-imported-although-the-corresponding-code-in-startup-jl-has-been-deleted/99805 "2023-06-03T14:36:34Z")

</div>

I commented out the following lines in the ~/.julia/config/startup.jl file and restarted the REPL, but the Revise.jl package was still imported into the workspace. Why? # try # using Revise # catch e # @warn "Er…

---

## [Why I don't obtain an output variable in a for loop?](https://discourse.julialang.org/t/why-i-dont-obtain-an-output-variable-in-a-for-loop/99794)

<div class="topic-metadata">

**Author:** [@RDuarte](https://discourse.julialang.org/u/RDuarte)\
**Replies:** 3\
**Last updated:** [June 3, 2023, 2:16pm UTC](https://discourse.julialang.org/t/why-i-dont-obtain-an-output-variable-in-a-for-loop/99794 "2023-06-03T14:16:07Z")

</div>

Hello I’m struggling with a for loop in julia. My WAVFilesList is a vector of five strings. I don’t understand why when I’m doing the following command I do not obtain a WAVfilenames variable in each passage of the lo…

---

## [Use DataLoader in Flux DimensionMismatch](https://discourse.julialang.org/t/use-dataloader-in-flux-dimensionmismatch/99810)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 0\
**Last updated:** [June 3, 2023, 1:46pm UTC](https://discourse.julialang.org/t/use-dataloader-in-flux-dimensionmismatch/99810 "2023-06-03T13:46:38Z")

</div>

I am trying to train this tiny net in Flux: NN = Chain( Dense(2 =\> 16, tanh), Dense(16 =\> 16, tanh), Dense(16 =\> 1) ) |\> f64 I the data comes from a single DataFrame, that I mask, convert the temp to Kelvin and…

---

## [Apply colorscheme palette by classes](https://discourse.julialang.org/t/apply-colorscheme-palette-by-classes/99809)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 0\
**Last updated:** [June 3, 2023, 1:32pm UTC](https://discourse.julialang.org/t/apply-colorscheme-palette-by-classes/99809 "2023-06-03T13:32:58Z")

</div>

I am using a statsplot and I want to use the palette parameter to give every run of an measurement a different color as an classifier. Which works. But Instead to use the colors of the space for all measurements, the vi…

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

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