# Latest

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

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

**Page:** 849

---

## [Plotting Multiple Bode diagrams](https://discourse.julialang.org/t/plotting-multiple-bode-diagrams/90929)

<div class="topic-metadata">

**Author:** [@emone](https://discourse.julialang.org/u/emone)\
**Replies:** 6\
**Last updated:** [December 1, 2022, 4:34pm UTC](https://discourse.julialang.org/t/plotting-multiple-bode-diagrams/90929 "2022-12-01T16:34:49Z")

</div>

Bode plots are significant in the design and visualization of control systems. Since I move on Julia for everything, I wonder how to plot multiple responses of bode diagrams, for example, in this code, I got four plots t…

---

## [Direct inserting a DataFrame into SQLite without using SQL?](https://discourse.julialang.org/t/direct-inserting-a-dataframe-into-sqlite-without-using-sql/91103)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 1\
**Last updated:** [December 1, 2022, 4:12pm UTC](https://discourse.julialang.org/t/direct-inserting-a-dataframe-into-sqlite-without-using-sql/91103 "2022-12-01T16:12:34Z")

</div>

I wonder if there is any package that allows a DataFrame to be: created as a SQLite table inserted into an existing SQLite table withOUT using SQL??? something like: create(df, "fname.sqlite") and insert(df, "fn…

---

## [Weird error regarding unsupported keyword arguments with KrylovKit eigsolve](https://discourse.julialang.org/t/weird-error-regarding-unsupported-keyword-arguments-with-krylovkit-eigsolve/91069)

<div class="topic-metadata">

**Author:** [@GregVernon](https://discourse.julialang.org/u/GregVernon)\
**Replies:** 2\
**Last updated:** [December 1, 2022, 2:38pm UTC](https://discourse.julialang.org/t/weird-error-regarding-unsupported-keyword-arguments-with-krylovkit-eigsolve/91069 "2022-12-01T14:38:24Z")

</div>

I’m trying to compute the condition number for sparse (stiffness) matrices coming from finite element analyses. I’ve included a download link for one such matrix below. Here’s a script that should read the (PETSc) stif…

---

## [Some questions about function (size(i::Int))](https://discourse.julialang.org/t/some-questions-about-function-size-i-int/91093)

<div class="topic-metadata">

**Author:** [@Xuekui\_wang](https://discourse.julialang.org/u/Xuekui_wang)\
**Replies:** 6\
**Last updated:** [December 1, 2022, 2:32pm UTC](https://discourse.julialang.org/t/some-questions-about-function-size-i-int/91093 "2022-12-01T14:32:01Z")

</div>

I saw a function as follows. Can you tell me what’s the mean of size(i::Int)=i ==0 ? 3 : 4\*i ? function t3(input) vect=\[\] size(i::Int)=i ==0 ? 3 : 4\*i for i in 1: (input) append!(vect, size(i)) e…

---

## [Install a package (and its dependencies) at specific date instead of specific version](https://discourse.julialang.org/t/install-a-package-and-its-dependencies-at-specific-date-instead-of-specific-version/91076)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 2:05pm UTC](https://discourse.julialang.org/t/install-a-package-and-its-dependencies-at-specific-date-instead-of-specific-version/91076 "2022-12-01T14:05:24Z")

</div>

Is there any way to put Pkg in some sort of “time traveler mode” where I can tell it to install a package (and, more importantly, its dependencies) as if I had issued that command on a given date in the past? My use cas…

---

## [Serialization of a SubArray forgets position in parent array](https://discourse.julialang.org/t/serialization-of-a-subarray-forgets-position-in-parent-array/90951)

<div class="topic-metadata">

**Author:** [@iagoleal](https://discourse.julialang.org/u/iagoleal)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 1:07pm UTC](https://discourse.julialang.org/t/serialization-of-a-subarray-forgets-position-in-parent-array/90951 "2022-12-01T13:07:56Z")

</div>

Hello! I am working in a codebase where we use Vectors divided in multiple “viewing windows” (SubArrays) representing some data. Recently I had to serialize those views and noticed that the information about the parent…

---

## [Algorithms & their complexity behind \`LinearAlgebra.eigvals\`](https://discourse.julialang.org/t/algorithms-their-complexity-behind-linearalgebra-eigvals/91089)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 2\
**Last updated:** [December 1, 2022, 12:43pm UTC](https://discourse.julialang.org/t/algorithms-their-complexity-behind-linearalgebra-eigvals/91089 "2022-12-01T12:43:26Z")

</div>

What algorithm(s) does LinearAlgebra.eigvals employ for a general, i.e., non-symmetric, non-triangular matrix?

---

## [How do I add a function/method to an already defined module](https://discourse.julialang.org/t/how-do-i-add-a-function-method-to-an-already-defined-module/22699)

<div class="topic-metadata">

**Author:** [@iPostHuman](https://discourse.julialang.org/u/iPostHuman)\
**Replies:** 11\
**Last updated:** [December 1, 2022, 12:37pm UTC](https://discourse.julialang.org/t/how-do-i-add-a-function-method-to-an-already-defined-module/22699 "2022-12-01T12:37:03Z")

</div>

This is a follow up question relating to my question on sub modules: Discourse question on submodules Okay. My issues seems to be around circular dependencies. I have an engine that wants to call methods that some “oth…

---

## [Bessel function of second with complex order](https://discourse.julialang.org/t/bessel-function-of-second-with-complex-order/20443)

<div class="topic-metadata">

**Author:** [@Tanjona\_Radonirina\_R](https://discourse.julialang.org/u/Tanjona_Radonirina_R)\
**Replies:** 4\
**Last updated:** [February 7, 2019, 9:01am UTC](https://discourse.julialang.org/t/bessel-function-of-second-with-complex-order/20443 "2019-02-07T09:01:37Z")

</div>

Is there a math library in Julia which can compute a modified Bessel function of the second kind with complex order and argument? I am only aware of SpecialFunctions.jl which contains a method to compute a modified Besse…

---

## [Resetting Counter in a While loop](https://discourse.julialang.org/t/resetting-counter-in-a-while-loop/91043)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 6\
**Last updated:** [December 1, 2022, 12:10pm UTC](https://discourse.julialang.org/t/resetting-counter-in-a-while-loop/91043 "2022-12-01T12:10:04Z")

</div>

Suppose I want a function to continuously iterate through a set until it is directed to stop. Currently I am using a while loop with an if else statement to reset the counter. So it looks something like. a=\["a","b"\] f…

---

## [Usage of \`@.\`](https://discourse.julialang.org/t/usage-of/91086)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 11:20am UTC](https://discourse.julialang.org/t/usage-of/91086 "2022-12-01T11:20:04Z")

</div>

Hi, I am trying to generate random vector with {-1, +1} on length n. The following code works y = 2 .\* (rand(n) .\> 0.50) .- 1 When I try to use @., it throws error y = @. 2 \* (rand(n) \> 0.50) - 1 ERROR: MethodError…

---

## [Solve ode problem with parameters described as function of the variables](https://discourse.julialang.org/t/solve-ode-problem-with-parameters-described-as-function-of-the-variables/91042)

<div class="topic-metadata">

**Author:** [@simonluzara](https://discourse.julialang.org/u/simonluzara)\
**Replies:** 20\
**Last updated:** [November 30, 2022, 5:40pm UTC](https://discourse.julialang.org/t/solve-ode-problem-with-parameters-described-as-function-of-the-variables/91042 "2022-11-30T17:40:21Z")

</div>

Hello all. I have a sinusoidal excitational model of the hydraulic pumps. I have an expression which calculates the density, viscosity and bulk modulus as a fluid(P,T) ,P meaning pressure is a variable. function fluid(…

---

## [Cannot do anything unless Language Server is started in VS Code](https://discourse.julialang.org/t/cannot-do-anything-unless-language-server-is-started-in-vs-code/91067)

<div class="topic-metadata">

**Author:** [@alex180500](https://discourse.julialang.org/u/alex180500)\
**Replies:** 1\
**Last updated:** [December 1, 2022, 9:23am UTC](https://discourse.julialang.org/t/cannot-do-anything-unless-language-server-is-started-in-vs-code/91067 "2022-12-01T09:23:25Z")

</div>

I’m new to Julia, already made a github issue and another post here. Maybe this is the place. Whenever I open VS Code the language server start is painfully slow (takes ~1min without packages, ~3min with some packages)…

---

## [Logarithmic x-axis of violin plots](https://discourse.julialang.org/t/logarithmic-x-axis-of-violin-plots/91065)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 9:20am UTC](https://discourse.julialang.org/t/logarithmic-x-axis-of-violin-plots/91065 "2022-12-01T09:20:26Z")

</div>

Hello everyone, I’d like to plot a violin plot on a log10 x-axis, e.g.: using DataFrames, DataFramesMeta, CairoMakie df = DataFrame( x = repeat(10.0 .^ (-1:3), inner=10), y = rand(50) ) fig = Figure() ax = Axi…

---

## [Transforming DataFrame from column of vector](https://discourse.julialang.org/t/transforming-dataframe-from-column-of-vector/91058)

<div class="topic-metadata">

**Author:** [@vzion](https://discourse.julialang.org/u/vzion)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 9:15am UTC](https://discourse.julialang.org/t/transforming-dataframe-from-column-of-vector/91058 "2022-12-01T09:15:38Z")

</div>

Hello, I would like to transform a DataFrame like this : df = DataFrame(a=\[1,2\],b=\["yes","no"\],c=\[\["a","b","c"\],\["d"\]\]) ┌───────┬────────┬─────────────────┐ │ a │ b │ c │ │ Int64 │ String │ Vect…

---

## [Fast display of an array as an image](https://discourse.julialang.org/t/fast-display-of-an-array-as-an-image/91074)

<div class="topic-metadata">

**Author:** [@Nathaniel](https://discourse.julialang.org/u/Nathaniel)\
**Replies:** 13\
**Last updated:** [December 1, 2022, 8:52am UTC](https://discourse.julialang.org/t/fast-display-of-an-array-as-an-image/91074 "2022-12-01T08:52:34Z")

</div>

I’m playing around with cellular automata and related systems, and I’m looking for a fast way to display them as they run. Currently I’m using ImageView.imshow, which works, but it’s very, very slow - I can’t even resiz…

---

## [Local Python file in module?](https://discourse.julialang.org/t/local-python-file-in-module/91080)

<div class="topic-metadata">

**Author:** [@polhager](https://discourse.julialang.org/u/polhager)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 8:53am UTC](https://discourse.julialang.org/t/local-python-file-in-module/91080 "2022-12-01T08:53:27Z")

</div>

Hi! I’m trying to create a Julia module which uses functions from a Python file in the same directory. The setup is this: In the same directory I have two files. A mypythonfile.py def myfunction(): print("Hello!") and…

---

## [How can I get average of the multidimensional matrix datas in Julia?](https://discourse.julialang.org/t/how-can-i-get-average-of-the-multidimensional-matrix-datas-in-julia/91075)

<div class="topic-metadata">

**Author:** [@dangda](https://discourse.julialang.org/u/dangda)\
**Replies:** 4\
**Last updated:** [December 1, 2022, 6:03am UTC](https://discourse.julialang.org/t/how-can-i-get-average-of-the-multidimensional-matrix-datas-in-julia/91075 "2022-12-01T06:03:33Z")

</div>

Can I get average of multidimensional matrix datas in same place in Julia? such as… A={2 4 6 8 10 12} B={4 6 8 10 12 14} Average={3 5 7 9 11 13} However I cannot use any statistics method in my data.(using Statis…

---

## [Nested loop confusion](https://discourse.julialang.org/t/nested-loop-confusion/91068)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 5:31am UTC](https://discourse.julialang.org/t/nested-loop-confusion/91068 "2022-12-01T05:31:44Z")

</div>

Hi all, I don’t work much with comprehensions of nested loops, but I came across something which is probably obvious but unexpected to me. Why is there a difference between these two approaches to the nested loop? Witho…

---

## [Inverse of bitstring(x)](https://discourse.julialang.org/t/inverse-of-bitstring-x/91032)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [December 1, 2022, 4:25am UTC](https://discourse.julialang.org/t/inverse-of-bitstring-x/91032 "2022-12-01T04:25:29Z")

</div>

What function f is f(typeof(x), bitstring(x)) == x ?

---

## [Term.jl color scheme for light background](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 5\
**Last updated:** [November 30, 2022, 11:11pm UTC](https://discourse.julialang.org/t/term-jl-color-scheme-for-light-background/86912 "2022-11-30T23:11:17Z")

</div>

The default colors in Term.jl are clearly designed for a dark background terminal: Does anyone have a good Term.jl color scheme for a white background terminal?

---

## [Performant Recursive Anonymous Functions](https://discourse.julialang.org/t/performant-recursive-anonymous-functions/90984)

<div class="topic-metadata">

**Author:** [@uniment](https://discourse.julialang.org/u/uniment)\
**Replies:** 23\
**Last updated:** [November 30, 2022, 11:01pm UTC](https://discourse.julialang.org/t/performant-recursive-anonymous-functions/90984 "2022-11-30T23:01:28Z")

</div>

What’s the preferred way to write recursive anonymous functions? Consider a demo function: julia\> function fib(n) n ≤ 1 && return n return fib(n-1) + fib(n-2) end fib (generic function with…

---

## [Strange Revise error](https://discourse.julialang.org/t/strange-revise-error/91018)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 4\
**Last updated:** [November 30, 2022, 10:45pm UTC](https://discourse.julialang.org/t/strange-revise-error/91018 "2022-11-30T22:45:30Z")

</div>

I have run into a strange error that appears to be related to Revise. Revise reports a problem with a function Revise error messagejulia\> Revise.retry() ┌ Error: Failed to revise /home/brian/repos/Differentiation/src…

---

## [Rational ^ Rational](https://discourse.julialang.org/t/rational-rational/91063)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 5\
**Last updated:** [November 30, 2022, 9:57pm UTC](https://discourse.julialang.org/t/rational-rational/91063 "2022-11-30T21:57:48Z")

</div>

Why does this make a Float64 instead of a Rational? julia\> ((2//1)^(-4//1)) 0.0625 Is this the only way to get a Rational out of exponentiation? julia\> Rational((2//1)^(-4//1)) 1//16

---

## [Adding non-source files to a package](https://discourse.julialang.org/t/adding-non-source-files-to-a-package/91017)

<div class="topic-metadata">

**Author:** [@hros](https://discourse.julialang.org/u/hros)\
**Replies:** 5\
**Last updated:** [November 30, 2022, 9:52pm UTC](https://discourse.julialang.org/t/adding-non-source-files-to-a-package/91017 "2022-11-30T21:52:57Z")

</div>

Is it possible to access non-source files in a package git? specifically, I would like a text file used for testing the package to be available to users of the package. When I just placed the text file in the root dire…

---

## [State of the Art for Data Version Control?](https://discourse.julialang.org/t/state-of-the-art-for-data-version-control/90246)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 5\
**Last updated:** [November 30, 2022, 9:52pm UTC](https://discourse.julialang.org/t/state-of-the-art-for-data-version-control/90246 "2022-11-30T21:52:41Z")

</div>

Hi folks! I am working with DrWatson.jl and am wondering: is there any suggested tools or workflows to handle data version control within Julia? I saw that there was DataSets.jl made by @Chris\_Foster and some ongoing d…

---

## [Julia pmap how to write each worker into separate index using parallel computing](https://discourse.julialang.org/t/julia-pmap-how-to-write-each-worker-into-separate-index-using-parallel-computing/90961)

<div class="topic-metadata">

**Author:** [@Pedro\_Raposo](https://discourse.julialang.org/u/Pedro_Raposo)\
**Replies:** 16\
**Last updated:** [November 30, 2022, 9:07pm UTC](https://discourse.julialang.org/t/julia-pmap-how-to-write-each-worker-into-separate-index-using-parallel-computing/90961 "2022-11-30T21:07:29Z")

</div>

I have a function that runs a simulation exercise. I call the function “raposo” and it has an output that is a vector (1,9). I need to compute it using parallel computing because it is taking 3 months to produce the outp…

---

## [VS Code REPL very slow startup](https://discourse.julialang.org/t/vs-code-repl-very-slow-startup/90202)

<div class="topic-metadata">

**Author:** [@alex180500](https://discourse.julialang.org/u/alex180500)\
**Replies:** 10\
**Last updated:** [November 30, 2022, 9:03pm UTC](https://discourse.julialang.org/t/vs-code-repl-very-slow-startup/90202 "2022-11-30T21:03:07Z")

</div>

Hello, I installed julia with juliaup from the windows store (win 11), then installed Julia 1.8.2. Everything works fine in the Julia shell. I installed the vscode julia extension. I was trying to use the VS Code REPL f…

---

## [How to programmatically update my PackageCompiler's sysimage, using a precompile\_execution\_file?](https://discourse.julialang.org/t/how-to-programmatically-update-my-packagecompilers-sysimage-using-a-precompile-execution-file/91050)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 1\
**Last updated:** [November 30, 2022, 8:55pm UTC](https://discourse.julialang.org/t/how-to-programmatically-update-my-packagecompilers-sysimage-using-a-precompile-execution-file/91050 "2022-11-30T20:55:58Z")

</div>

Hi all! I am using PackageCompiler to speed up Julia usage. It works enthusiastically well, and it saves me some time, but I also want to keep the sysimage updated. Specifically, I want to update it (even manually) once…

---

## [Working with multiple columns in DataFramesMeta, programmatically](https://discourse.julialang.org/t/working-with-multiple-columns-in-dataframesmeta-programmatically/91056)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 10\
**Last updated:** [November 30, 2022, 7:27pm UTC](https://discourse.julialang.org/t/working-with-multiple-columns-in-dataframesmeta-programmatically/91056 "2022-11-30T19:27:11Z")

</div>

Suppose I have the following DataFrame: test = DataFrame( w = \[10, 13, 5\], a1 = \[12, 9, 6\], a2 = \[9, 10, 8\], a3 = \[14, 10, 12\] ) 3×4 DataFrame Row │ w a1 a2 a3 │ Int64 Int64 Int…

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

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