# Latest

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

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

**Page:** 1035

---

## [Generate all possible codewords given a dictionary](https://discourse.julialang.org/t/generate-all-possible-codewords-given-a-dictionary/81388)

<div class="topic-metadata">

**Author:** [@Alehud](https://discourse.julialang.org/u/Alehud)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 9:29pm UTC](https://discourse.julialang.org/t/generate-all-possible-codewords-given-a-dictionary/81388 "2022-05-20T21:29:27Z")

</div>

I have a 1D array that is my “dictionary”. E.g., d = \['a', 'b', 'c'\] I want to generate all possible codewords of length n composed of elements from d. For example, if n = 2, then the output I expect is \['a', 'a'\] \['a…

---

## [Workflow for codes with several .jl](https://discourse.julialang.org/t/workflow-for-codes-with-several-jl/81395)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 9:24pm UTC](https://discourse.julialang.org/t/workflow-for-codes-with-several-jl/81395 "2022-05-20T21:24:41Z")

</div>

So I’m used to the python framework where I create a folder and in there I have several scripts that all do several simple things. So I would expect that I could do something like this in Julia. Like simple\_modules.jl …

---

## [Makie | First item in GridLayout not displayed](https://discourse.julialang.org/t/makie-first-item-in-gridlayout-not-displayed/81353)

<div class="topic-metadata">

**Author:** [@Audrius-St](https://discourse.julialang.org/u/Audrius-St)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 8:25pm UTC](https://discourse.julialang.org/t/makie-first-item-in-gridlayout-not-displayed/81353 "2022-05-20T20:25:26Z")

</div>

Hello, OS: Windows 11 Julia: 1.7.2 Makie: 0.17.2 The first item “Patient” in the following nested GridLayout is not being displayed: Code fragment: # Figure for GLMakie display noto\_sans = assetpath("NotoSans-Re…

---

## [CeMicrodata.jl - Pulling data from the Consumer Expenditure (CE) Public Use Microdata (PUMD) into Julia](https://discourse.julialang.org/t/cemicrodata-jl-pulling-data-from-the-consumer-expenditure-ce-public-use-microdata-pumd-into-julia/81394)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 0\
**Last updated:** [May 20, 2022, 8:20pm UTC](https://discourse.julialang.org/t/cemicrodata-jl-pulling-data-from-the-consumer-expenditure-ce-public-use-microdata-pumd-into-julia/81394 "2022-05-20T20:20:47Z")

</div>

Hi there! @thasenzagl and I have just released a Julia package to pull data from the Consumer Expenditure (CE) Public Use Microdata (PUMD). The package is available on GitHub and it is currently allowing low-level opera…

---

## [Examples of MVC or other UI pattern for Makie](https://discourse.julialang.org/t/examples-of-mvc-or-other-ui-pattern-for-makie/53489)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 1\
**Last updated:** [May 20, 2022, 7:02pm UTC](https://discourse.julialang.org/t/examples-of-mvc-or-other-ui-pattern-for-makie/53489 "2022-05-20T19:02:03Z")

</div>

I’m trying to put together a simple GUI using Makie and the latest layout awesomeness and realizing that most of the challenge is figuring out how best to implement something like MVC (Model-View-Controller) or whatever …

---

## [EEGLAB .set Format in Julia](https://discourse.julialang.org/t/eeglab-set-format-in-julia/81037)

<div class="topic-metadata">

**Author:** [@duodenum](https://discourse.julialang.org/u/duodenum)\
**Replies:** 3\
**Last updated:** [May 20, 2022, 6:57pm UTC](https://discourse.julialang.org/t/eeglab-set-format-in-julia/81037 "2022-05-20T18:57:36Z")

</div>

Hello, I’m a neuroscientist considering switching to Julia. I’m writing some functions and got a bit frustrated with MATLAB. My question is: is there a way to import EEGLAB .set format to Julia, similar to for example p…

---

## [Field types](https://discourse.julialang.org/t/field-types/81277)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 29\
**Last updated:** [May 20, 2022, 6:08pm UTC](https://discourse.julialang.org/t/field-types/81277 "2022-05-20T18:08:59Z")

</div>

I know that the following: struct test{T\<:Real} a::T b::T end is better than: struct test a::Real b::Real end but why can’t I fully specify the field types like this: struct test{T::Float64} a::T…

---

## [Record video](https://discourse.julialang.org/t/record-video/81289)

<div class="topic-metadata">

**Author:** [@vahhab70](https://discourse.julialang.org/u/vahhab70)\
**Replies:** 3\
**Last updated:** [May 20, 2022, 6:08pm UTC](https://discourse.julialang.org/t/record-video/81289 "2022-05-20T18:08:51Z")

</div>

Hello, I am new in Julia and I would appreciate your help. I want to record a video. It seems frames are accumulated during recording the frames: using GLMakie using MAT file = matopen(“//home//arostami//Desktop//3D/…

---

## [Using streamplot with PyPlot backend in Plots](https://discourse.julialang.org/t/using-streamplot-with-pyplot-backend-in-plots/81278)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 5\
**Last updated:** [May 20, 2022, 4:02pm UTC](https://discourse.julialang.org/t/using-streamplot-with-pyplot-backend-in-plots/81278 "2022-05-20T16:02:05Z")

</div>

Hello, I don’t have a strong understanding of how Plots work, but as far as I know, it serves as an API that uses backend plotting systems, like matplotlib or gr. This allows the user to use similar (if not identical) s…

---

## [Building a Dockerfile with packages](https://discourse.julialang.org/t/building-a-dockerfile-with-packages/37272)

<div class="topic-metadata">

**Author:** [@nnn](https://discourse.julialang.org/u/nnn)\
**Replies:** 7\
**Last updated:** [May 20, 2022, 3:39pm UTC](https://discourse.julialang.org/t/building-a-dockerfile-with-packages/37272 "2022-05-20T15:39:08Z")

</div>

I want to build a docker image with Julia packages ready to go. What are best practices for that? Here’s what I got so far: FROM julia RUN julia install.jl where install.jl is: using Pkg packages = \["JSON", "CSV"\] …

---

## [LibPQ connection with keepalive parameters](https://discourse.julialang.org/t/libpq-connection-with-keepalive-parameters/81379)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 0\
**Last updated:** [May 20, 2022, 3:09pm UTC](https://discourse.julialang.org/t/libpq-connection-with-keepalive-parameters/81379 "2022-05-20T15:09:17Z")

</div>

Is it possible to specify keepalive parameters for LibPQ connection? Thank you,

---

## [The verbosity of dropdims…dims…dims (was: range improvement for 1.1)](https://discourse.julialang.org/t/the-verbosity-of-dropdims-dims-dims-was-range-improvement-for-1-1/18428)

<div class="topic-metadata">

**Author:** [@improbable22](https://discourse.julialang.org/u/improbable22)\
**Replies:** 15\
**Last updated:** [May 20, 2022, 2:38pm UTC](https://discourse.julialang.org/t/the-verbosity-of-dropdims-dims-dims-was-range-improvement-for-1-1/18428 "2022-05-20T14:38:27Z")

</div>

It would be nice if this could be something like sum(a, dims=1, drop=true) for all functions which take dims.

---

## [Convincing Documenter to create a PDF output](https://discourse.julialang.org/t/convincing-documenter-to-create-a-pdf-output/81337)

<div class="topic-metadata">

**Author:** [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Replies:** 8\
**Last updated:** [May 20, 2022, 2:38pm UTC](https://discourse.julialang.org/t/convincing-documenter-to-create-a-pdf-output/81337 "2022-05-20T14:38:04Z")

</div>

I’m trying to get Documenter to create a PDF version of my package’s docs. Following the documentation, I first tried makedocs(format = Documenter.LaTeX())… but quickly realized I no longer have a TeX installation. Duh…

---

## [How can I change specific values in array?](https://discourse.julialang.org/t/how-can-i-change-specific-values-in-array/81349)

<div class="topic-metadata">

**Author:** [@clrescobar](https://discourse.julialang.org/u/clrescobar)\
**Replies:** 8\
**Last updated:** [May 20, 2022, 2:26pm UTC](https://discourse.julialang.org/t/how-can-i-change-specific-values-in-array/81349 "2022-05-20T14:26:56Z")

</div>

Hello, I am new to Julia and I am using POMDPs.jl package, specially TabularTDLearning.jl. ValuePolicy has a property called value\_table which you can access to get the q-values and can also be modified, for example f…

---

## [What is the best type for a Matrix to be used in Multiplication to give good performance?](https://discourse.julialang.org/t/what-is-the-best-type-for-a-matrix-to-be-used-in-multiplication-to-give-good-performance/81115)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 34\
**Last updated:** [May 20, 2022, 2:01pm UTC](https://discourse.julialang.org/t/what-is-the-best-type-for-a-matrix-to-be-used-in-multiplication-to-give-good-performance/81115 "2022-05-20T14:01:00Z")

</div>

I have a matrix (size 35x35) that I build at the beginning of my code, in which does not change later in the code. This matrix is used to be multiped with other matrices in a for loop. Since I care about the performance,…

---

## [Can I modify the fields of a designed structure?](https://discourse.julialang.org/t/can-i-modify-the-fields-of-a-designed-structure/80980)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 11\
**Last updated:** [May 20, 2022, 1:53pm UTC](https://discourse.julialang.org/t/can-i-modify-the-fields-of-a-designed-structure/80980 "2022-05-20T13:53:23Z")

</div>

I was working on a structure with theirs fields are vectors and matrices and I have a vector of it. I need to change elements of this vector to be of a structure which its fields are static vectors and matrices. How can …

---

## [How to draw histogram of a sine?](https://discourse.julialang.org/t/how-to-draw-histogram-of-a-sine/81361)

<div class="topic-metadata">

**Author:** [@youxiuqingnianyyy](https://discourse.julialang.org/u/youxiuqingnianyyy)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 1:32pm UTC](https://discourse.julialang.org/t/how-to-draw-histogram-of-a-sine/81361 "2022-05-20T13:32:10Z")

</div>

I want to draw the figure like this in Julia Plots. Is there any package I could use? Need suggestion.

---

## [ReinforcementLearning.jl vs POMDPs.jl](https://discourse.julialang.org/t/reinforcementlearning-jl-vs-pomdps-jl/81355)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 0\
**Last updated:** [May 20, 2022, 10:17am UTC](https://discourse.julialang.org/t/reinforcementlearning-jl-vs-pomdps-jl/81355 "2022-05-20T10:17:42Z")

</div>

Hello. Some weeks ago, there was a live session regarding the ReinforcementLearning.jl package, and some of the questions were to identify differences, overlaps, and cooperation opportunities with the JuliaPOMDP organiza…

---

## [Multi-threading to the “combine” function](https://discourse.julialang.org/t/multi-threading-to-the-combine-function/67783)

<div class="topic-metadata">

**Author:** [@bojusemo](https://discourse.julialang.org/u/bojusemo)\
**Replies:** 5\
**Last updated:** [May 20, 2022, 10:15am UTC](https://discourse.julialang.org/t/multi-threading-to-the-combine-function/67783 "2022-05-20T10:15:43Z")

</div>

Hello folks, Could anybody guide me, please? Can multi-threading be designated to the “combine” function in the example below? Thank you in advance Boris julia\> begin using DataFrames, Chain d…

---

## [Need help with incomprehensible typeinference](https://discourse.julialang.org/t/need-help-with-incomprehensible-typeinference/81056)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 9\
**Last updated:** [May 20, 2022, 9:44am UTC](https://discourse.julialang.org/t/need-help-with-incomprehensible-typeinference/81056 "2022-05-20T09:44:01Z")

</div>

Hi there, I am the author of ExtensibleEffects.jl. This is an advanced functional package, hence please bear with me if the following example looks totally alien and not understandable why you ever would like to do some…

---

## [Using Julia on a cluster](https://discourse.julialang.org/t/using-julia-on-a-cluster/80755)

<div class="topic-metadata">

**Author:** [@Marius\_123](https://discourse.julialang.org/u/Marius_123)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 9:37am UTC](https://discourse.julialang.org/t/using-julia-on-a-cluster/80755 "2022-05-20T09:37:46Z")

</div>

Hello, i am new to parallel computing and wanted to parallelize a for loop. This for loop is embarassingly parallel. In each iteration of the for loop it calls sciml\_train with a initial guess and computes a parameter e…

---

## [Is it possible to unsynch the EnsembleGPUArrays?](https://discourse.julialang.org/t/is-it-possible-to-unsynch-the-ensemblegpuarrays/77879)

<div class="topic-metadata">

**Author:** [@Marius\_123](https://discourse.julialang.org/u/Marius_123)\
**Replies:** 6\
**Last updated:** [May 20, 2022, 9:35am UTC](https://discourse.julialang.org/t/is-it-possible-to-unsynch-the-ensemblegpuarrays/77879 "2022-05-20T09:35:52Z")

</div>

Hello, i want to solve multiple ODEs in parallel on the GPU, is it possible to do this unsynchronized? As stated in the DiffEqGPU, all trajectories have the same time stepping. This slows down the solving if one trajecto…

---

## [Stipple busy](https://discourse.julialang.org/t/stipple-busy/81276)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 4\
**Last updated:** [May 20, 2022, 7:59am UTC](https://discourse.julialang.org/t/stipple-busy/81276 "2022-05-20T07:59:11Z")

</div>

Is there way to add an icon or something to show that computations are done in the background … something like an hourglass or “working …” label.

---

## [How to lookup and assign on label-aware AbstractVectors in various packages](https://discourse.julialang.org/t/how-to-lookup-and-assign-on-label-aware-abstractvectors-in-various-packages/81309)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [May 20, 2022, 7:44am UTC](https://discourse.julialang.org/t/how-to-lookup-and-assign-on-label-aware-abstractvectors-in-various-packages/81309 "2022-05-20T07:44:00Z")

</div>

Sometimes I do not remember the position of dimensions or of the individual indexes in a multi-dimensional array and when performances are not a critical factor I prefer to work on keys rather than position. I am hence …

---

## [How to run julia script as a command in the terminal?](https://discourse.julialang.org/t/how-to-run-julia-script-as-a-command-in-the-terminal/81341)

<div class="topic-metadata">

**Author:** [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)\
**Replies:** 5\
**Last updated:** [May 20, 2022, 5:26am UTC](https://discourse.julialang.org/t/how-to-run-julia-script-as-a-command-in-the-terminal/81341 "2022-05-20T05:26:33Z")

</div>

I want to create some CLI applications in julia, but instead of the users writing (in the terminal): julia --project /path-to/src/MyScript.jl arg1 --opt-1 I want to be able to type: myscript arg1 --opt-1

---

## [FIR Filter Implementation in Julia](https://discourse.julialang.org/t/fir-filter-implementation-in-julia/81331)

<div class="topic-metadata">

**Author:** [@duodenum](https://discourse.julialang.org/u/duodenum)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 5:26am UTC](https://discourse.julialang.org/t/fir-filter-implementation-in-julia/81331 "2022-05-20T05:26:25Z")

</div>

Hello all, I’m trying to replicate this MATLAB code in Julia for zero-phase filtering: d = designfilt('bandpassfir', 'StopbandFrequency1', 1e-9, ... 'PassbandFrequency1', 35, 'PassbandFrequency2', 45, ... 'Stop…

---

## [To normalize or not to normalize a Neural or Universal ODE](https://discourse.julialang.org/t/to-normalize-or-not-to-normalize-a-neural-or-universal-ode/81124)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 4:58am UTC](https://discourse.julialang.org/t/to-normalize-or-not-to-normalize-a-neural-or-universal-ode/81124 "2022-05-20T04:58:19Z")

</div>

Hey folks. I have been working on creating a Neural ODE and a Universal ODE for a 6 compartment model. One common neural network practice is to normalize the inputs to be between 0 and 1. For example in a convolutional n…

---

## [ModelingToolkit vs plain DifferentialEquations](https://discourse.julialang.org/t/modelingtoolkit-vs-plain-differentialequations/81322)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 12\
**Last updated:** [May 20, 2022, 3:42am UTC](https://discourse.julialang.org/t/modelingtoolkit-vs-plain-differentialequations/81322 "2022-05-20T03:42:45Z")

</div>

Hi All, What is the magic that happens inside of the “ModelingToolkit.ODESystem”? When I have the DAE system in the next form: using DifferentialEquations, OrdinaryDiffEq, Sundials u0 = \[0.0, 0.0, 0.0, 0.0, 0.0, 0.0…

---

## [Project.toml](https://discourse.julialang.org/t/project-toml/81342)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 6\
**Last updated:** [May 19, 2022, 11:11pm UTC](https://discourse.julialang.org/t/project-toml/81342 "2022-05-19T23:11:21Z")

</div>

I recently forked a package https://github.com/marouanehanhasse/Lora.jl that i want to try but it does have REQUIRE instead of Project.toml, is there any direct method to switch from REQUIRE to Project.toml in Github?

---

## [JuMP turning off/on a constraint](https://discourse.julialang.org/t/jump-turning-off-on-a-constraint/81268)

<div class="topic-metadata">

**Author:** [@jvaes](https://discourse.julialang.org/u/jvaes)\
**Replies:** 6\
**Last updated:** [May 19, 2022, 10:19pm UTC](https://discourse.julialang.org/t/jump-turning-off-on-a-constraint/81268 "2022-05-19T22:19:38Z")

</div>

Hi there, I was wondering if JuMP has a way to turn off/on a constraint. According to the documentation, I can delete a constraint using the function delete (and then unregister if I want) but I cannot find a way to tu…

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

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