# Latest

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

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

**Page:** 784

---

## [One project multiple programs connected by ZMQ how to set up in Pkg](https://discourse.julialang.org/t/one-project-multiple-programs-connected-by-zmq-how-to-set-up-in-pkg/94090)

<div class="topic-metadata">

**Author:** [@1153dent](https://discourse.julialang.org/u/1153dent)\
**Replies:** 6\
**Last updated:** [February 12, 2023, 10:35pm UTC](https://discourse.julialang.org/t/one-project-multiple-programs-connected-by-zmq-how-to-set-up-in-pkg/94090 "2023-02-12T22:35:56Z")

</div>

I’m starting a new project and DETERMINED to learn from my past adventures in Julia (FUN). I am setting up modules and projects BUT can’t figure out how to cater for the situation where two programs communicate with a t…

---

## [Can't get a basic plot to work (Gadfly](https://discourse.julialang.org/t/cant-get-a-basic-plot-to-work-gadfly/94510)

<div class="topic-metadata">

**Author:** [@Tim\_Booher](https://discourse.julialang.org/u/Tim_Booher)\
**Replies:** 5\
**Last updated:** [February 12, 2023, 10:23pm UTC](https://discourse.julialang.org/t/cant-get-a-basic-plot-to-work-gadfly/94510 "2023-02-12T22:23:35Z")

</div>

I think I’m using too many libraries and I can’t get two lines on the same plot. using Pkg Pkg.add("DataFrames") Pkg.add("Gadfly") Pkg.add("Dates") Pkg.add("StatsBase") Pkg.add("Query") Pkg.add("Polynomials") Pkg.add("M…

---

## [Command line interface for the Julia language - a CLI tool (with a GUI future)](https://discourse.julialang.org/t/command-line-interface-for-the-julia-language-a-cli-tool-with-a-gui-future/94388)

<div class="topic-metadata">

**Author:** [@diversable](https://discourse.julialang.org/u/diversable)\
**Replies:** 16\
**Last updated:** [February 12, 2023, 8:22pm UTC](https://discourse.julialang.org/t/command-line-interface-for-the-julia-language-a-cli-tool-with-a-gui-future/94388 "2023-02-12T20:22:01Z")

</div>

Hi everyone, I’ve been prototyping a tool for performing basic Julia language operations from the command line; it’s intended to be used by new users to Julia, especially students and first-time programmers. Because of …

---

## [Late evaluation of expression as anymous function](https://discourse.julialang.org/t/late-evaluation-of-expression-as-anymous-function/94516)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 11\
**Last updated:** [February 12, 2023, 7:35pm UTC](https://discourse.julialang.org/t/late-evaluation-of-expression-as-anymous-function/94516 "2023-02-12T19:35:32Z")

</div>

I want to iteratively build a function, but I can’t figure out how. I’ll try and give a non-working example hoping that this helps explain what I am trying to do. mydata = Dict(:a =\> 1, :b =\> 2, :c =\> 3) function build…

---

## [Plots backend pythonplot colormap has no effect when legend is false](https://discourse.julialang.org/t/plots-backend-pythonplot-colormap-has-no-effect-when-legend-is-false/94483)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 3\
**Last updated:** [February 12, 2023, 7:06pm UTC](https://discourse.julialang.org/t/plots-backend-pythonplot-colormap-has-no-effect-when-legend-is-false/94483 "2023-02-12T19:06:18Z")

</div>

Hi, I’m using Plots’s :pythonplot backend with heatmap and found the keyword cmap=:jet does not have any effect when legend or colorbar is false. Since If instead I use gr, it works fine: julia\> heatmap(yc\[:\],xc,Itc\[:,…

---

## [How do I concretely type a field in a struct dynamically?](https://discourse.julialang.org/t/how-do-i-concretely-type-a-field-in-a-struct-dynamically/94524)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [February 12, 2023, 6:12pm UTC](https://discourse.julialang.org/t/how-do-i-concretely-type-a-field-in-a-struct-dynamically/94524 "2023-02-12T18:12:30Z")

</div>

Hello! For performance reasons I have to concretely type this field in my struct; struct Test{I,D} Stencil::Vector{Tuple{repeat(\[I\],D)...}} end I’ve tried to do as follows but it errors out. “I” is the type I wish…

---

## [Problem with SymPy](https://discourse.julialang.org/t/problem-with-sympy/94525)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 0\
**Last updated:** [February 12, 2023, 6:11pm UTC](https://discourse.julialang.org/t/problem-with-sympy/94525 "2023-02-12T18:11:01Z")

</div>

I am having the following problem. using SymPy @syms x y f = -integrate(sin(y)/(abs(y)-PI)^3,(y,x,PI/6)) + integrate(cos(y-x)/(abs(y)-PI)^3,(y,x,PI/6)) + integrate(sin(y)\*cos(y-x)/(abs(y)-PI)^3,(y,x,PI/6)) - integrate(1…

---

## [How to loop over vector with varying inner-dimensions?](https://discourse.julialang.org/t/how-to-loop-over-vector-with-varying-inner-dimensions/94517)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 5\
**Last updated:** [February 12, 2023, 5:52pm UTC](https://discourse.julialang.org/t/how-to-loop-over-vector-with-varying-inner-dimensions/94517 "2023-02-12T17:52:08Z")

</div>

Hello! Suppose I have: Values = SVector{3, Int64}\[\[3, 0, 1\], \[2, 3, 4\], \[3, 4, 3\], \[2, 3, 2\], \[0, 2, 2\], \[4, 2, 4\], \[4, 2, 4\], \[0, 3, 3\], \[4, 2, 0\], \[2, 2, 0\], \[0, 0, 0\], \[0, 0, 2\], \[2, 1, 4\], \[2, 0, 4\], \[1, 2, 2\], \[1,…

---

## [Plots not working when using PackageCompiler](https://discourse.julialang.org/t/plots-not-working-when-using-packagecompiler/94480)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [February 12, 2023, 2:48pm UTC](https://discourse.julialang.org/t/plots-not-working-when-using-packagecompiler/94480 "2023-02-12T14:48:07Z")

</div>

I have a very simple piece of code: using Plots x=\[1,2,3,4,5\] y=\[1,2,3,4,5\] plot(x,y) Works fine. When I now use a system image it stops to work. Instead of a plot window I get the text output: Plot{Plots.GRBackend()…

---

## [Where is Fourier()](https://discourse.julialang.org/t/where-is-fourier/94512)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 5\
**Last updated:** [February 12, 2023, 2:09pm UTC](https://discourse.julialang.org/t/where-is-fourier/94512 "2023-02-12T14:09:53Z")

</div>

In the demo on spectral methods found at https://docs.sciml.ai/SciMLBenchmarksOutput/stable/MOLPDE/burgers\_spectral\_wpd/ there is a call to Fourier(). I cannot figure out which module it is in. Could somebody please l…

---

## [Limit output in Documenter when displaying a DataFrame](https://discourse.julialang.org/t/limit-output-in-documenter-when-displaying-a-dataframe/94503)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 3\
**Last updated:** [February 12, 2023, 12:06pm UTC](https://discourse.julialang.org/t/limit-output-in-documenter-when-displaying-a-dataframe/94503 "2023-02-12T12:06:33Z")

</div>

In a .md file for Documenter if I do the following, \`\`\`\`@example dataset\_movies using DataFrames, RDatasets movies = dataset("ggplot2", "movies") \`\`\`\` Then when building with makedocs(…) I get a file of size …

---

## [Help needed with FFT and NFFT](https://discourse.julialang.org/t/help-needed-with-fft-and-nfft/93449)

<div class="topic-metadata">

**Author:** [@Karajan](https://discourse.julialang.org/u/Karajan)\
**Replies:** 14\
**Last updated:** [February 12, 2023, 11:36am UTC](https://discourse.julialang.org/t/help-needed-with-fft-and-nfft/93449 "2023-02-12T11:36:10Z")

</div>

Hi, I think I could use some help understanding nonuniform discrete Fourier transforms (NFFT). Either I’m not using the tools correctly or I’m misunderstanding how they work in general. I read that when my signal has no…

---

## [How do I extract number of dimensions and type from a StaticArray?](https://discourse.julialang.org/t/how-do-i-extract-number-of-dimensions-and-type-from-a-staticarray/94497)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [February 12, 2023, 9:25am UTC](https://discourse.julialang.org/t/how-do-i-extract-number-of-dimensions-and-type-from-a-staticarray/94497 "2023-02-12T09:25:48Z")

</div>

Hello! Suppose I have: n, d = 100, 2 p = rand(SVector{d,Float64},n) p = rand(SVector{d,Float64},n) 100-element Vector{SVector{2, Float64}}: \[0.45095181425482966, 0.07762277325569156\] \[0.08059534744395058, 0…

---

## [Do we have a "sizeforce!"?](https://discourse.julialang.org/t/do-we-have-a-sizeforce/94496)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [February 12, 2023, 8:59am UTC](https://discourse.julialang.org/t/do-we-have-a-sizeforce/94496 "2023-02-12T08:59:26Z")

</div>

Hello! Reading in the help of sizehint!: I notice how it is only a “suggestive” procedure and that it may do it. Is there a way to force it? I know I can preallocate arrays my self. For less code complexity, I had …

---

## [Type stability issues when broadcasting](https://discourse.julialang.org/t/type-stability-issues-when-broadcasting/92715)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 4\
**Last updated:** [February 12, 2023, 8:39am UTC](https://discourse.julialang.org/t/type-stability-issues-when-broadcasting/92715 "2023-02-12T08:39:09Z")

</div>

I am seeing some odd type instability issues when broadcasting. Simple functions seem to become type-unstable when broadcasting over multiple views: f1(x::AbstractVector{T}) where T = 1 f2(x::AbstractVector{T}) where T…

---

## [Error when doing integration with QuadGK](https://discourse.julialang.org/t/error-when-doing-integration-with-quadgk/94487)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 1\
**Last updated:** [February 12, 2023, 4:41am UTC](https://discourse.julialang.org/t/error-when-doing-integration-with-quadgk/94487 "2023-02-12T04:41:52Z")

</div>

I used the following code using QuadGK v = quadgk(x-\>cos(x)^2/((x+1)\*(x^2-x+1)),-pi,0)\[1\] and got the error below ERROR: DomainError with -1.0000000000000009: integrand produced Inf in the interval (-1.00000000000000…

---

## [Custom JLL wrappers](https://discourse.julialang.org/t/custom-jll-wrappers/94484)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 2\
**Last updated:** [February 12, 2023, 2:41am UTC](https://discourse.julialang.org/t/custom-jll-wrappers/94484 "2023-02-12T02:41:11Z")

</div>

I’m working on a (Centos7) system where I can’t download prebuilt binaries. Rather, I need to build all the binaries from source using an internal build tool. Julia itself runs well. So long as my dependent packages con…

---

## [Plots is not plotting correctly](https://discourse.julialang.org/t/plots-is-not-plotting-correctly/94477)

<div class="topic-metadata">

**Author:** [@mmj](https://discourse.julialang.org/u/mmj)\
**Replies:** 6\
**Last updated:** [February 12, 2023, 12:47am UTC](https://discourse.julialang.org/t/plots-is-not-plotting-correctly/94477 "2023-02-12T00:47:34Z")

</div>

Hello. This is a simple problem, but I have not found any solutions on it yet. I am very new to Plots. I am using Plots on a Pluto Notebook but I have been facing certain difficulty with its syntax. I tried to do a sim…

---

## [Makie app from command line](https://discourse.julialang.org/t/makie-app-from-command-line/53890)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 12\
**Last updated:** [February 11, 2023, 9:29pm UTC](https://discourse.julialang.org/t/makie-app-from-command-line/53890 "2023-02-11T21:29:30Z")

</div>

How can I launch a Makie.jl based app from the command line? I tried: julia --project -e "include(\\"./src/KiteViewer.jl\\");main()" which shortly shows the Makie windows but then terminates. How can I achieve that it …

---

## [PackageCompiler: Integration of mingw-w64](https://discourse.julialang.org/t/packagecompiler-integration-of-mingw-w64/94448)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 1\
**Last updated:** [February 11, 2023, 9:18pm UTC](https://discourse.julialang.org/t/packagecompiler-integration-of-mingw-w64/94448 "2023-02-11T21:18:30Z")

</div>

I have problems to integrate properly the mingw-w64 compiler and header files into my project for application compiling via PackageCompiler. I found one tread in the package home page: compile\_app() fails to build if…

---

## [Converting Complex Values in an Array to their Absolute Value (Magnitude)](https://discourse.julialang.org/t/converting-complex-values-in-an-array-to-their-absolute-value-magnitude/94482)

<div class="topic-metadata">

**Author:** [@HexSpin](https://discourse.julialang.org/u/HexSpin)\
**Replies:** 3\
**Last updated:** [February 11, 2023, 8:44pm UTC](https://discourse.julialang.org/t/converting-complex-values-in-an-array-to-their-absolute-value-magnitude/94482 "2023-02-11T20:44:04Z")

</div>

This seems like it should be straight forward, but I’m not seeing much … I have a 2D array A of complex values, but I need an array of its absolute values (magnitude). I naively write, B = abs(A), but of course, it do…

---

## [What language are Julia packages written in?](https://discourse.julialang.org/t/what-language-are-julia-packages-written-in/94298)

<div class="topic-metadata">

**Author:** [@Kronos](https://discourse.julialang.org/u/Kronos)\
**Replies:** 12\
**Last updated:** [February 11, 2023, 7:08pm UTC](https://discourse.julialang.org/t/what-language-are-julia-packages-written-in/94298 "2023-02-11T19:08:49Z")

</div>

What language are Julia packages written in ?

---

## [Package to mollify a function?](https://discourse.julialang.org/t/package-to-mollify-a-function/94467)

<div class="topic-metadata">

**Author:** [@Masacroso](https://discourse.julialang.org/u/Masacroso)\
**Replies:** 6\
**Last updated:** [February 11, 2023, 6:26pm UTC](https://discourse.julialang.org/t/package-to-mollify-a-function/94467 "2023-02-11T18:26:06Z")

</div>

Hi, I was searching in the web but I didn’t found something about how to mollify a mathematical function, using any custom mollifier, in Julia. So my question is: there is a package to do that? If not, there is a way to…

---

## [Strange behavior of SymPy in VS Code](https://discourse.julialang.org/t/strange-behavior-of-sympy-in-vs-code/94451)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 5\
**Last updated:** [February 11, 2023, 4:09pm UTC](https://discourse.julialang.org/t/strange-behavior-of-sympy-in-vs-code/94451 "2023-02-11T16:09:04Z")

</div>

In VS Code, I used the following code using SymPy @sysm x y f(x,y) = sin(y-x) df = sympy.diff(f(x,y),x) # it outputs \`- cos(x-y)\`: correct df(PI/2,y) # it output \`-sin(y)\`: correct df(x,PI/2) # it outputs \`-1\`: wr…

---

## [FFT documentation](https://discourse.julialang.org/t/fft-documentation/94431)

<div class="topic-metadata">

**Author:** [@Cevheriferd](https://discourse.julialang.org/u/Cevheriferd)\
**Replies:** 4\
**Last updated:** [February 11, 2023, 3:00pm UTC](https://discourse.julialang.org/t/fft-documentation/94431 "2023-02-11T15:00:24Z")

</div>

Hi I have a very general question. As far as I understand AbstractFFTs is the main package in Julia to perform FFTs. Why doesn’t the documentation of this package show up when searching it several search engines? The sea…

---

## [Seems the new update SciMLBase results in the error of DiffEqOperators.jl](https://discourse.julialang.org/t/seems-the-new-update-scimlbase-results-in-the-error-of-diffeqoperators-jl/94463)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 2\
**Last updated:** [February 11, 2023, 2:41pm UTC](https://discourse.julialang.org/t/seems-the-new-update-scimlbase-results-in-the-error-of-diffeqoperators-jl/94463 "2023-02-11T14:41:13Z")

</div>

I understand that DiffEqOperators.jl will be deprecated but it is still useful for me to solve some PDEs. Can anyone suggest to me how to resolve this problem? using DiffEqOperators dx = 0.1 Δ1 = UpwindDifference(1,2, d…

---

## [Mu synthesis with RobustAndOptimalControl?](https://discourse.julialang.org/t/mu-synthesis-with-robustandoptimalcontrol/94427)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 9\
**Last updated:** [February 11, 2023, 2:23pm UTC](https://discourse.julialang.org/t/mu-synthesis-with-robustandoptimalcontrol/94427 "2023-02-11T14:23:18Z")

</div>

µ synthesis is a generalization of the controller design done using H infinity control. Is there a way to do µ synthesis using the RobustAndOptimalControl package?

---

## [How to define my own "unique" function?](https://discourse.julialang.org/t/how-to-define-my-own-unique-function/94464)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [February 11, 2023, 1:05pm UTC](https://discourse.julialang.org/t/how-to-define-my-own-unique-function/94464 "2023-02-11T13:05:46Z")

</div>

Hello! Suppose I have a list of tuples given as: ps 17-element Vector{Tuple{Int64, Int64, Float64}}: (6, 1, 0.1943167542320367) (6, 7, 0.3711794598818039) (6, 3, 0.24015959913323964) (3, 1, 0.10660277812749026) (3…

---

## [Error when installing the DifferentialEquations package](https://discourse.julialang.org/t/error-when-installing-the-differentialequations-package/94437)

<div class="topic-metadata">

**Author:** [@Vidianos](https://discourse.julialang.org/u/Vidianos)\
**Replies:** 4\
**Last updated:** [February 11, 2023, 10:50am UTC](https://discourse.julialang.org/t/error-when-installing-the-differentialequations-package/94437 "2023-02-11T10:50:46Z")

</div>

I want to transition from Matlab to Julia and I am trying to install the DifferentialEquations package. I am getting an error which I am not certain how to fix. Here is the error message \[ Info: Precompiling Differentia…

---

## [About the implementation of SciMLOperators.FunctionOperator](https://discourse.julialang.org/t/about-the-implementation-of-scimloperators-functionoperator/93738)

<div class="topic-metadata">

**Author:** [@sbrisard](https://discourse.julialang.org/u/sbrisard)\
**Replies:** 8\
**Last updated:** [February 11, 2023, 10:30am UTC](https://discourse.julialang.org/t/about-the-implementation-of-scimloperators-functionoperator/93738 "2023-02-11T10:30:26Z")

</div>

I am looking into SciMLOperators to define convolution linear operators. I was wondering why FunctionOperator requires prototypes of the input and output. Would the sizes not be sufficient? Also, it seems to me that t…

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

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