# Latest

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

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

**Page:** 1160

---

## [MessyTimeSeries.jl and MessyTimeSeriesOptim.jl](https://discourse.julialang.org/t/messytimeseries-jl-and-messytimeseriesoptim-jl/72546)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 1\
**Last updated:** [January 6, 2022, 8:58pm UTC](https://discourse.julialang.org/t/messytimeseries-jl-and-messytimeseriesoptim-jl/72546 "2022-01-06T20:58:08Z")

</div>

Hi there, I have some major news for those who are interested in time series analysis: I have renamed TSAnalysis.jl to MessyTimeSeries.jl (link) and released a new package called MessyTimeSeriesOptim.jl (link) The rena…

---

## [Postdoc (18 Months) -- Fixed-Point Extension for the Faust Programming Language](https://discourse.julialang.org/t/postdoc-18-months-fixed-point-extension-for-the-faust-programming-language/74158)

<div class="topic-metadata">

**Author:** [@sletz](https://discourse.julialang.org/u/sletz)\
**Replies:** 0\
**Last updated:** [January 6, 2022, 7:15pm UTC](https://discourse.julialang.org/t/postdoc-18-months-fixed-point-extension-for-the-faust-programming-language/74158 "2022-01-06T19:15:07Z")

</div>

Faust (Functional Audio Stream) is a functional programming language for sound synthesis and audio processing with a strong focus on the design of synthesizers, musical instruments, audio effects, which now has a more d…

---

## [VSCode syntax highlighting : Dimming \`end\`s](https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347)

<div class="topic-metadata">

**Author:** [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Replies:** 4\
**Last updated:** [January 6, 2022, 7:33pm UTC](https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347 "2022-01-06T19:33:17Z")

</div>

Hello, I just reinstalled Ubuntu, and along with it, VSCode. I also installed the Julia Extension. I have selected the Monokai Theme. I see that when I change the theme of VSCode, the julia syntax highlighting colors al…

---

## [Unicode characters in Discourse threads](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 15\
**Last updated:** [January 6, 2022, 6:02pm UTC](https://discourse.julialang.org/t/unicode-characters-in-discourse-threads/71401 "2022-01-06T18:02:21Z")

</div>

How does one write a unicode character in a discourse thread?

---

## [How to efficiently re-arrange a vector of vectors into a matrix?](https://discourse.julialang.org/t/how-to-efficiently-re-arrange-a-vector-of-vectors-into-a-matrix/70565)

<div class="topic-metadata">

**Author:** [@erwanlecarpentier](https://discourse.julialang.org/u/erwanlecarpentier)\
**Replies:** 5\
**Last updated:** [January 6, 2022, 5:14pm UTC](https://discourse.julialang.org/t/how-to-efficiently-re-arrange-a-vector-of-vectors-into-a-matrix/70565 "2022-01-06T17:14:12Z")

</div>

Hi! I would like to turn a vector of vectors into a matrix where each column corresponds to one of the input vectors. This could be accomplished with for instance the following: julia\> a = \[\[1, 2\], \[3, 4\], \[5, 6\]\] 3-ele…

---

## [Random array of complex numbers how to do?](https://discourse.julialang.org/t/random-array-of-complex-numbers-how-to-do/30714)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 3\
**Last updated:** [January 6, 2022, 5:22pm UTC](https://discourse.julialang.org/t/random-array-of-complex-numbers-how-to-do/30714 "2022-01-06T17:22:55Z")

</div>

How to create random matrix od complex numer, this way is only for Real part of this. julia\> Complex.(rand(5)) 5-element Array{Complex{Float64},1 0.5247641513084038 + 0.0im 0.1119184762223755 + 0.0im 0.303719618358…

---

## [Macros with multiple parameters](https://discourse.julialang.org/t/macros-with-multiple-parameters/74120)

<div class="topic-metadata">

**Author:** [@gcv](https://discourse.julialang.org/u/gcv)\
**Replies:** 3\
**Last updated:** [January 6, 2022, 4:23pm UTC](https://discourse.julialang.org/t/macros-with-multiple-parameters/74120 "2022-01-06T16:23:14Z")

</div>

I’m having trouble with macros taking multiple parameters. Specifically, I’m writing a macro which needs to take @\_\_DIR\_\_ and an expression as its arguments. Here’s a simplified example: macro tm1(dir, action) :(begi…

---

## [Versioning in a new Julia package](https://discourse.julialang.org/t/versioning-in-a-new-julia-package/74119)

<div class="topic-metadata">

**Author:** [@Sushant-Padha](https://discourse.julialang.org/u/Sushant-Padha)\
**Replies:** 3\
**Last updated:** [January 6, 2022, 3:26pm UTC](https://discourse.julialang.org/t/versioning-in-a-new-julia-package/74119 "2022-01-06T15:26:06Z")

</div>

I have created a Julia package, that I am trying to register at the General registry. However, the pull request tests failed (twice now). This is the concerned AutoMerge test. The error output is ERROR: Unsatisfiable …

---

## [Neovim diagnostics with nvim-lspconfig](https://discourse.julialang.org/t/neovim-diagnostics-with-nvim-lspconfig/74130)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 2\
**Last updated:** [January 6, 2022, 3:17pm UTC](https://discourse.julialang.org/t/neovim-diagnostics-with-nvim-lspconfig/74130 "2022-01-06T15:17:45Z")

</div>

I have been using nvim-lspconfig with nvim-comp for the last months and it has been working fine. Recently though, I had some problems which were solved by updating to NVIM v0.6.1 and adding the master branches of Langua…

---

## [Working with the recent stepplot() changes in ControlSystems.jl](https://discourse.julialang.org/t/working-with-the-recent-stepplot-changes-in-controlsystems-jl/74131)

<div class="topic-metadata">

**Author:** [@adeyemiadeoye](https://discourse.julialang.org/u/adeyemiadeoye)\
**Replies:** 2\
**Last updated:** [January 6, 2022, 2:56pm UTC](https://discourse.julialang.org/t/working-with-the-recent-stepplot-changes-in-controlsystems-jl/74131 "2022-01-06T14:56:08Z")

</div>

I am trying to run the example usage code provided in the README.md file of the ControlSystems.jl repository, but with the recent changes, it seems impossible to produce exactly the same stepplot() results with plot(step…

---

## [Width problem when using printf on chinese characters](https://discourse.julialang.org/t/width-problem-when-using-printf-on-chinese-characters/74124)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 1\
**Last updated:** [January 6, 2022, 1:44pm UTC](https://discourse.julialang.org/t/width-problem-when-using-printf-on-chinese-characters/74124 "2022-01-06T13:44:39Z")

</div>

A Chinese character will normally displays as 2 ascii width, but the format string in printf will treat it as 1 character. This may result in inconsistent string width with the same format string. This is a simple examp…

---

## [Julia Package for UI development](https://discourse.julialang.org/t/julia-package-for-ui-development/39469)

<div class="topic-metadata">

**Author:** [@saraflgarcia](https://discourse.julialang.org/u/saraflgarcia)\
**Replies:** 3\
**Last updated:** [January 6, 2022, 2:14pm UTC](https://discourse.julialang.org/t/julia-package-for-ui-development/39469 "2022-01-06T14:14:29Z")

</div>

Hi everyone, I want to develop a GUI written in Julia, with the following requirements: Widgets: top menu, tabs, checkboxes, radio button, range sliders, text-fields Widgets state: enabled/disabled, hidden/unhidden I…

---

## [Best way to generate random floats over a wide range of magnitudes](https://discourse.julialang.org/t/best-way-to-generate-random-floats-over-a-wide-range-of-magnitudes/74129)

<div class="topic-metadata">

**Author:** [@swishmas](https://discourse.julialang.org/u/swishmas)\
**Replies:** 2\
**Last updated:** [January 6, 2022, 12:10pm UTC](https://discourse.julialang.org/t/best-way-to-generate-random-floats-over-a-wide-range-of-magnitudes/74129 "2022-01-06T12:10:15Z")

</div>

Simple question: rand() generally returns a random number rarely in the range (0,1E-1) and I am interested in a range of random numbers between (0,1E-2). I was wondering if anyone could verify that a solution like rand…

---

## [Reading data from HDF5 file to StaticArray](https://discourse.julialang.org/t/reading-data-from-hdf5-file-to-staticarray/74037)

<div class="topic-metadata">

**Author:** [@jpmorr](https://discourse.julialang.org/u/jpmorr)\
**Replies:** 7\
**Last updated:** [January 6, 2022, 9:19am UTC](https://discourse.julialang.org/t/reading-data-from-hdf5-file-to-staticarray/74037 "2022-01-06T09:19:50Z")

</div>

I’m trying to read large datasets from HDF5 files into StaticArrays but I’m really struggling to understand how to get the data into a StaticArray. I’m using the following function to read the HDF5 file and it works fin…

---

## [UnionAll wrapper not eq anymore to free UnionAll when Type lifted - is it a bug or not?](https://discourse.julialang.org/t/unionall-wrapper-not-eq-anymore-to-free-unionall-when-type-lifted-is-it-a-bug-or-not/74118)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 3\
**Last updated:** [January 6, 2022, 7:35am UTC](https://discourse.julialang.org/t/unionall-wrapper-not-eq-anymore-to-free-unionall-when-type-lifted-is-it-a-bug-or-not/74118 "2022-01-06T07:35:17Z")

</div>

Let’s define struct A{U,V} end and observe some equalities on data using Test @test A == A{U,V} where {U,V} @test Type{A} == Type{A{U,V} where {U,V}} @test A === A{U,V} where {U,V} @test Type{A} === Type{A{U,V} wher…

---

## [When can tasks yield? Or, how to use SpinLocks safely](https://discourse.julialang.org/t/when-can-tasks-yield-or-how-to-use-spinlocks-safely/73740)

<div class="topic-metadata">

**Author:** [@zsunberg](https://discourse.julialang.org/u/zsunberg)\
**Replies:** 5\
**Last updated:** [January 6, 2022, 6:50am UTC](https://discourse.julialang.org/t/when-can-tasks-yield-or-how-to-use-spinlocks-safely/73740 "2022-01-06T06:50:26Z")

</div>

The following causes a deadlock when running Julia with one thread: l = Threads.SpinLock() function f(l) lock(l) sleep(5) unlock(l) end Threads.@spawn f(l) sleep(1) lock(l) I understand that this is becau…

---

## [JULIA\_DEPOT\_PATH and JULIA\_PROJECT](https://discourse.julialang.org/t/julia-depot-path-and-julia-project/73745)

<div class="topic-metadata">

**Author:** [@apg](https://discourse.julialang.org/u/apg)\
**Replies:** 58\
**Last updated:** [January 6, 2022, 3:28am UTC](https://discourse.julialang.org/t/julia-depot-path-and-julia-project/73745 "2022-01-06T03:28:45Z")

</div>

I am trying to automatically pick and choose which environment (and ultimately the packages therein) to use. For the purpose of testing only, I have ~/.julia and ~/.julia\_dev directories with packages and environments de…

---

## [LaTeXStrings deletes strings in Julia JN](https://discourse.julialang.org/t/latexstrings-deletes-strings-in-julia-jn/74105)

<div class="topic-metadata">

**Author:** [@CentraCep](https://discourse.julialang.org/u/CentraCep)\
**Replies:** 6\
**Last updated:** [January 6, 2022, 3:12am UTC](https://discourse.julialang.org/t/latexstrings-deletes-strings-in-julia-jn/74105 "2022-01-06T03:12:23Z")

</div>

I am using Julia 1.7.0 in Jupyter Notebook. I am trying to print two equations in the notebook using: println("Separation of variables") L"""\\dfrac{\\text{d}y}{\\text{d}\\xi} \\ = \\ \\dfrac{z}{\\xi^2} \\ """ L"""\\df…

---

## [How to run an entire python script in pycall](https://discourse.julialang.org/t/how-to-run-an-entire-python-script-in-pycall/73414)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 41\
**Last updated:** [January 6, 2022, 3:12am UTC](https://discourse.julialang.org/t/how-to-run-an-entire-python-script-in-pycall/73414 "2022-01-06T03:12:19Z")

</div>

Hi all I am using PyCall inside Pluto but I can’t run a whole python script, can anyone point me at any examples of this please? getting to grips with julia using Pluto and it’s fun so far. With a lot of GREAT help fro…

---

## [How does \`Base.ImmutableDict\` work internally?](https://discourse.julialang.org/t/how-does-base-immutabledict-work-internally/74117)

<div class="topic-metadata">

**Author:** [@wmanning-cra](https://discourse.julialang.org/u/wmanning-cra)\
**Replies:** 1\
**Last updated:** [January 6, 2022, 2:20am UTC](https://discourse.julialang.org/t/how-does-base-immutabledict-work-internally/74117 "2022-01-06T02:20:16Z")

</div>

I just discovered Base.ImmutableDict, and it appears to be a very strange type. I get the core concept of a linked list of key-value pairs. But the reference to the next node is of type Base.ImmutableDict{K, V}. How can …

---

## [Understanding several concepts from a julia\> ?filter example](https://discourse.julialang.org/t/understanding-several-concepts-from-a-julia-filter-example/74115)

<div class="topic-metadata">

**Author:** [@MK-1138](https://discourse.julialang.org/u/MK-1138)\
**Replies:** 3\
**Last updated:** [January 6, 2022, 2:01am UTC](https://discourse.julialang.org/t/understanding-several-concepts-from-a-julia-filter-example/74115 "2022-01-06T02:01:36Z")

</div>

I’m new to the language, but somewhat experienced with the programming in general. I am learning from Julia Data Science book and I reached the section discussing filters. Having some issues understanding the material th…

---

## [Julia adding an older version of my updated Gurobi Solber](https://discourse.julialang.org/t/julia-adding-an-older-version-of-my-updated-gurobi-solber/74034)

<div class="topic-metadata">

**Author:** [@konsath](https://discourse.julialang.org/u/konsath)\
**Replies:** 17\
**Last updated:** [January 6, 2022, 12:14am UTC](https://discourse.julialang.org/t/julia-adding-an-older-version-of-my-updated-gurobi-solber/74034 "2022-01-06T00:14:35Z")

</div>

Hi! I’m working with Julia 1.6.5 and Gurobi 9.5.0 on Visual Studio. I’ve acquired an academic license and have uninstall and reinstall everything twice. I can’t figure out why when adding Gurobi, Julia chooses a previous…

---

## [Function to Calculate Kappa](https://discourse.julialang.org/t/function-to-calculate-kappa/72852)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.julialang.org/u/Rahul)\
**Replies:** 5\
**Last updated:** [January 5, 2022, 11:04pm UTC](https://discourse.julialang.org/t/function-to-calculate-kappa/72852 "2022-01-05T23:04:31Z")

</div>

Is there a function to calculate Kappa in MLJ? If no, I wrote a function (shown below) and I am looking for a more efficient implementation. function kappa(predictions, original) # Confusion matrix confmat = ML…

---

## [Array of Vectors with Different Lengths](https://discourse.julialang.org/t/array-of-vectors-with-different-lengths/74107)

<div class="topic-metadata">

**Author:** [@smickus](https://discourse.julialang.org/u/smickus)\
**Replies:** 2\
**Last updated:** [January 5, 2022, 10:11pm UTC](https://discourse.julialang.org/t/array-of-vectors-with-different-lengths/74107 "2022-01-05T22:11:25Z")

</div>

I am trying to create a data structure that can hold vectors that have different lengths, and I don’t know how many vectors I will have to store. I have been struggling with coming up with a method that can accomplish th…

---

## [Julia is not rendering text correctly in the REPL](https://discourse.julialang.org/t/julia-is-not-rendering-text-correctly-in-the-repl/74098)

<div class="topic-metadata">

**Author:** [@etorkia](https://discourse.julialang.org/u/etorkia)\
**Replies:** 9\
**Last updated:** [January 5, 2022, 10:05pm UTC](https://discourse.julialang.org/t/julia-is-not-rendering-text-correctly-in-the-repl/74098 "2022-01-05T22:05:53Z")

</div>

Currently, I am running very simple loops using a custom function that generate an array. I am then taking the last value of the array and pushing it into another. Fortunately the function returns the right values but al…

---

## [Question on the Design of Macro Hygiene](https://discourse.julialang.org/t/question-on-the-design-of-macro-hygiene/73992)

<div class="topic-metadata">

**Author:** [@Clement\_Dato](https://discourse.julialang.org/u/Clement_Dato)\
**Replies:** 5\
**Last updated:** [January 5, 2022, 9:03pm UTC](https://discourse.julialang.org/t/question-on-the-design-of-macro-hygiene/73992 "2022-01-05T21:03:02Z")

</div>

I am new to Julia so I am watching some tutorials. When I am watching a tutorial on Julia on the metaprogramming I see an example on the macro hygiene. macro dummy(ex) return ex end xx = 3 @dummy yy = xx ^ 2 # prin…

---

## [Predict fails for simple case of GLM?](https://discourse.julialang.org/t/predict-fails-for-simple-case-of-glm/74102)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 6\
**Last updated:** [January 5, 2022, 8:09pm UTC](https://discourse.julialang.org/t/predict-fails-for-simple-case-of-glm/74102 "2022-01-05T20:09:52Z")

</div>

I am trying a simple example using the ISLR dataset ols = lm(@formula(sales ~ TV + radio + newspaper), adsData) this works OK: \`\`StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePred…

---

## [Is there a findmin(A) that uses local search instead of visiting all elements of matrix A?](https://discourse.julialang.org/t/is-there-a-findmin-a-that-uses-local-search-instead-of-visiting-all-elements-of-matrix-a/74045)

<div class="topic-metadata">

**Author:** [@NiclasMattsson](https://discourse.julialang.org/u/NiclasMattsson)\
**Replies:** 8\
**Last updated:** [January 5, 2022, 7:29am UTC](https://discourse.julialang.org/t/is-there-a-findmin-a-that-uses-local-search-instead-of-visiting-all-elements-of-matrix-a/74045 "2022-01-05T07:29:47Z")

</div>

I have a large matrix that contains sampled values of a convex 2D function. I want to find the minimum efficiently without visiting all elements, given indexes for a good starting guess close to the minimum. For example…

---

## [Bounded sciml\_train problem error, ArgumentError: Initial x is not in](https://discourse.julialang.org/t/bounded-sciml-train-problem-error-argumenterror-initial-x-is-not-in/73710)

<div class="topic-metadata">

**Author:** [@willsharpless](https://discourse.julialang.org/u/willsharpless)\
**Replies:** 1\
**Last updated:** [January 5, 2022, 6:09pm UTC](https://discourse.julialang.org/t/bounded-sciml-train-problem-error-argumenterror-initial-x-is-not-in/73710 "2022-01-05T18:09:48Z")

</div>

Hi, I have been getting this initialization error when I try to do iterative box optimization with DiffEqFlux.sciml\_train. I am attempting to optimize sets of parameters for which the loss function slightly varies for d…

---

## [Is it possible to use filter(:col =\> myFilter, df) with additional constant input variables?](https://discourse.julialang.org/t/is-it-possible-to-use-filter-col-myfilter-df-with-additional-constant-input-variables/74077)

<div class="topic-metadata">

**Author:** [@kevin\_m](https://discourse.julialang.org/u/kevin_m)\
**Replies:** 12\
**Last updated:** [January 5, 2022, 4:37pm UTC](https://discourse.julialang.org/t/is-it-possible-to-use-filter-col-myfilter-df-with-additional-constant-input-variables/74077 "2022-01-05T16:37:43Z")

</div>

Hi all, I’m very new to Julia and struggling to understand the filter() syntax. I’d like to use filter() to filter a data frame to contain only rows with values in a specific range (like R’s dplyr::between()). I’ve impl…

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

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