# Latest

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

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

**Page:** 1117

---

## [\[ANN\] FGenerators.jl: Python-like generator syntax for high-performance iteration](https://discourse.julialang.org/t/ann-fgenerators-jl-python-like-generator-syntax-for-high-performance-iteration/45402)

<div class="topic-metadata">

**Author:** [@tkf](https://discourse.julialang.org/u/tkf)\
**Replies:** 7\
**Last updated:** [February 19, 2022, 3:54pm UTC](https://discourse.julialang.org/t/ann-fgenerators-jl-python-like-generator-syntax-for-high-performance-iteration/45402 "2022-02-19T15:54:36Z")

</div>

FGenerators.jl is a package for defining Transducers.jl-compatible iteration protocol (aka extended foldl) with a simple Python-like @yield-based syntax. Quoting FGenerators.jl README, here are a few examples for creati…

---

## [Gadfly labels overlap and are not readable](https://discourse.julialang.org/t/gadfly-labels-overlap-and-are-not-readable/76634)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 3:56pm UTC](https://discourse.julialang.org/t/gadfly-labels-overlap-and-are-not-readable/76634 "2022-02-17T15:56:39Z")

</div>

I am trying to plot a figure which very elongated. However, the Gadfly labels overlap and are not readable. See below: Gadfly.draw(Gadfly.PDF("a.pdf"), Gadfly.spy(rand(1000,10), Gadfly.Scale.y\_discrete(labels=i-\>string…

---

## [Test for existence of a variable](https://discourse.julialang.org/t/test-for-existence-of-a-variable/42845)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 44\
**Last updated:** [February 19, 2022, 3:18pm UTC](https://discourse.julialang.org/t/test-for-existence-of-a-variable/42845 "2022-02-19T15:18:45Z")

</div>

Hi. I have been using Julia for more than a year, but because Julia is Julia, I still feel like a Newbie, so please be gentle. I have searched everywhere for a simple test of existence of a variable, like exist() in MA…

---

## [\[Makie.jl\] Changing axes font sizes on 3D plots like surface](https://discourse.julialang.org/t/makie-jl-changing-axes-font-sizes-on-3d-plots-like-surface/76495)

<div class="topic-metadata">

**Author:** [@KirillGerke](https://discourse.julialang.org/u/KirillGerke)\
**Replies:** 2\
**Last updated:** [February 19, 2022, 3:06pm UTC](https://discourse.julialang.org/t/makie-jl-changing-axes-font-sizes-on-3d-plots-like-surface/76495 "2022-02-19T15:06:12Z")

</div>

Dear All, While Makie.jl’s documentation and some threads here suggest using functions like the following: fontsize\_theme = Theme(fontsize = 30) set\_theme!(fontsize\_theme) update\_theme!(fontsize = 36) they work just f…

---

## [Delete multiple edges with specific property in a metagraph](https://discourse.julialang.org/t/delete-multiple-edges-with-specific-property-in-a-metagraph/76745)

<div class="topic-metadata">

**Author:** [@ChristianStehr](https://discourse.julialang.org/u/ChristianStehr)\
**Replies:** 8\
**Last updated:** [February 19, 2022, 2:53pm UTC](https://discourse.julialang.org/t/delete-multiple-edges-with-specific-property-in-a-metagraph/76745 "2022-02-19T14:53:34Z")

</div>

Hello everyone, I want to delete multiple edges in a metagraph that have a specific property, here is my mwe: using MetaGraphs, Graphs g = erdos\_renyi(1000,5000) mg = MetaGraph(g) for i in 1:nv(mg) #give all edges spec…

---

## [How to understand the optimization behavior JuMP?](https://discourse.julialang.org/t/how-to-understand-the-optimization-behavior-jump/76736)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 4\
**Last updated:** [February 19, 2022, 2:19pm UTC](https://discourse.julialang.org/t/how-to-understand-the-optimization-behavior-jump/76736 "2022-02-19T14:19:47Z")

</div>

Hi, I am new to Julia and JuMP package. Recently I am trying to use JuMP to solve similar optimization problems like Power Systems posted in JuMP’s tutorial. I read through the page, find the section unit commitment is…

---

## [Shearlab in julia](https://discourse.julialang.org/t/shearlab-in-julia/76747)

<div class="topic-metadata">

**Author:** [@randino](https://discourse.julialang.org/u/randino)\
**Replies:** 1\
**Last updated:** [February 19, 2022, 2:08pm UTC](https://discourse.julialang.org/t/shearlab-in-julia/76747 "2022-02-19T14:08:40Z")

</div>

when I tested this step , it 's not work @time shearletSystem\_nopar = Shearlab.getshearletsystem2D(size(X\_nopar,1), size(X\_nopar,2), scales,shearLevels,full,directionalFilter,scalingFilter,0); help me plzz

---

## [Interpolate variable value inside macro call](https://discourse.julialang.org/t/interpolate-variable-value-inside-macro-call/76740)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 5\
**Last updated:** [February 19, 2022, 1:53pm UTC](https://discourse.julialang.org/t/interpolate-variable-value-inside-macro-call/76740 "2022-02-19T13:53:39Z")

</div>

I am trying to parse a file containing half-lives of nuclear isotopes. One of the columns contains the units of the half-life time as a string, and I would like to convert it into Unitful units. As an example, let’s say…

---

## [The active manifest file is an older format](https://discourse.julialang.org/t/the-active-manifest-file-is-an-older-format/72963)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 3\
**Last updated:** [February 19, 2022, 1:48pm UTC](https://discourse.julialang.org/t/the-active-manifest-file-is-an-older-format/72963 "2022-02-19T13:48:55Z")

</div>

How to solve this alert that appears during the update? julia\> VERSION v “1.7.0” Apparently I have not inherited correctly the packages from Julia 1.6.4 to Julia 1.7.0 !!! ┌ Warning: The active manifest file is an ol…

---

## [DataFrame can't get filter to get rid of rows where a column contains a blank " "](https://discourse.julialang.org/t/dataframe-cant-get-filter-to-get-rid-of-rows-where-a-column-contains-a-blank/76726)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 8\
**Last updated:** [February 19, 2022, 1:31pm UTC](https://discourse.julialang.org/t/dataframe-cant-get-filter-to-get-rid-of-rows-where-a-column-contains-a-blank/76726 "2022-02-19T13:31:24Z")

</div>

Hi there I have a dataframe ( df\_list\_of\_clles ) that has a column ( toffer) that contains missing values and blanks. A blank in this case is " " . I can get rid of the missing values using the below but isnothing do…

---

## [Julia in python](https://discourse.julialang.org/t/julia-in-python/76731)

<div class="topic-metadata">

**Author:** [@randino](https://discourse.julialang.org/u/randino)\
**Replies:** 6\
**Last updated:** [February 19, 2022, 12:17pm UTC](https://discourse.julialang.org/t/julia-in-python/76731 "2022-02-19T12:17:05Z")

</div>

I want to execute the juila in python , but the shearlab is not work plzz help me import warnings import julia import sys import pylab import Shearlab n = 512; mat\_fname\_gt = pjoin('./sample\_data/', 'barbara.jpg') data\_…

---

## [Why is \`sort(x, by = \_ -\> rand())\` not a good shuffler?](https://discourse.julialang.org/t/why-is-sort-x-by-rand-not-a-good-shuffler/76737)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [February 19, 2022, 12:15pm UTC](https://discourse.julialang.org/t/why-is-sort-x-by-rand-not-a-good-shuffler/76737 "2022-02-19T12:15:11Z")

</div>

I learned this the hard way in that sort(x, by = \_ -\> rand()) is not a shuffler, i.e. x is not random enough after this shuffle. Using Random.shuffle is the correct way it seems. But why is sort(x, by = \_ -\> rand()) no…

---

## [Reading tab-delimited file & memory allocation](https://discourse.julialang.org/t/reading-tab-delimited-file-memory-allocation/76727)

<div class="topic-metadata">

**Author:** [@lln](https://discourse.julialang.org/u/lln)\
**Replies:** 5\
**Last updated:** [February 19, 2022, 11:58am UTC](https://discourse.julialang.org/t/reading-tab-delimited-file-memory-allocation/76727 "2022-02-19T11:58:14Z")

</div>

Hi, I have the following code for parsing a tab-delimited file function read\_file(file::String, chrom::Int64)::Dict vld\_dict::Dict{String, Vector{String}} = Dict("SNP" =\> String\[\], "A1" =\> String\[\], "A2" =\> String\[\]…

---

## [Use regex replacement strings](https://discourse.julialang.org/t/use-regex-replacement-strings/76729)

<div class="topic-metadata">

**Author:** [@Mo-Gul](https://discourse.julialang.org/u/Mo-Gul)\
**Replies:** 8\
**Last updated:** [February 19, 2022, 8:23am UTC](https://discourse.julialang.org/t/use-regex-replacement-strings/76729 "2022-02-19T08:23:08Z")

</div>

I want to transform a string containing a + with different variants. One of them is removing the + and transforming the following letter to lowercase. Currently I do this in two steps. str = "Abdul+Hakim"; str2 = replac…

---

## [Unable to use "plots"](https://discourse.julialang.org/t/unable-to-use-plots/76680)

<div class="topic-metadata">

**Author:** [@iAnkiit](https://discourse.julialang.org/u/iAnkiit)\
**Replies:** 6\
**Last updated:** [February 19, 2022, 7:42am UTC](https://discourse.julialang.org/t/unable-to-use-plots/76680 "2022-02-19T07:42:16Z")

</div>

I am getting this error. Failed to precompile Plots \[91a5bcdd-55d7-5caf-9e0b-520d859cae80\]. Tried following ways but nothing improved. Pkg.gc() Pkg.rm(“Plots”) Pkg.gc() Pkg.add(“Plots”) Someone please help me with …

---

## [\`filter\` on a \`DataFrame\` is not allocating a new object as expected](https://discourse.julialang.org/t/filter-on-a-dataframe-is-not-allocating-a-new-object-as-expected/76447)

<div class="topic-metadata">

**Author:** [@hdavid16](https://discourse.julialang.org/u/hdavid16)\
**Replies:** 7\
**Last updated:** [February 19, 2022, 4:27am UTC](https://discourse.julialang.org/t/filter-on-a-dataframe-is-not-allocating-a-new-object-as-expected/76447 "2022-02-19T04:27:22Z")

</div>

Hi, I just attempted the following and was surprised that my original table was modified. I would have expected filter to allocate a new DataFrame so that setdiff! would not have modified the original DataFrame. I also …

---

## [Xpress NonLinear](https://discourse.julialang.org/t/xpress-nonlinear/74669)

<div class="topic-metadata">

**Author:** [@andreab](https://discourse.julialang.org/u/andreab)\
**Replies:** 1\
**Last updated:** [February 19, 2022, 3:33am UTC](https://discourse.julialang.org/t/xpress-nonlinear/74669 "2022-02-19T03:33:50Z")

</div>

Is there a package in the JuMP ecosystem providing an interface to FICO Xpress NonLinear solver? Xpress.jl seems to support only Xpress Optimizer. If I try to use Xpress.jl to solve a non-convex NLP, I get the followin…

---

## [VegaLite with vscode](https://discourse.julialang.org/t/vegalite-with-vscode/76132)

<div class="topic-metadata">

**Author:** [@gtraeger](https://discourse.julialang.org/u/gtraeger)\
**Replies:** 3\
**Last updated:** [February 19, 2022, 12:48am UTC](https://discourse.julialang.org/t/vegalite-with-vscode/76132 "2022-02-19T00:48:13Z")

</div>

When I plot something with VegaLite using vscode the plot shows up as a thumbnail in a new window. The thumbnail size stays static even though I resize the plot window. Is there any way I can get the plot to resize as I …

---

## [How to work on a specific field of an vector of structure?](https://discourse.julialang.org/t/how-to-work-on-a-specific-field-of-an-vector-of-structure/76720)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 7\
**Last updated:** [February 18, 2022, 11:04pm UTC](https://discourse.julialang.org/t/how-to-work-on-a-specific-field-of-an-vector-of-structure/76720 "2022-02-18T23:04:18Z")

</div>

I have the below R instance of Rs structure. I want to work on a specific field of all rows (as dealing with Matrix). So, I am using R\[:\].I\[:\] but it gives an error. Any way to do that? Base.@kwdef mutable struct Rs …

---

## [Flux cpu() type stability](https://discourse.julialang.org/t/flux-cpu-type-stability/76610)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 3\
**Last updated:** [February 18, 2022, 11:02pm UTC](https://discourse.julialang.org/t/flux-cpu-type-stability/76610 "2022-02-18T23:02:37Z")

</div>

While reviewing a loss function I wrote, I noticed that the cpu() function from Flux produced type instability: julia\> using Flux julia\> @code\_warntype cpu(rand(10)) MethodInstance for Flux.cpu(::Vector{Float64}) fro…

---

## [Getting an error for FixedEffectModels](https://discourse.julialang.org/t/getting-an-error-for-fixedeffectmodels/76498)

<div class="topic-metadata">

**Author:** [@rubaiyat](https://discourse.julialang.org/u/rubaiyat)\
**Replies:** 12\
**Last updated:** [February 18, 2022, 6:58pm UTC](https://discourse.julialang.org/t/getting-an-error-for-fixedeffectmodels/76498 "2022-02-18T18:58:59Z")

</div>

Hello everyone, Recently I updated all my packages on Julia 1.6 via Pkg.update() and also \]up, and since then the regressions I had previously been running using FixedEffectModels.reg are not working anymore. Here’s a …

---

## [Converting string to character](https://discourse.julialang.org/t/converting-string-to-character/76715)

<div class="topic-metadata">

**Author:** [@programmer12](https://discourse.julialang.org/u/programmer12)\
**Replies:** 3\
**Last updated:** [February 18, 2022, 6:56pm UTC](https://discourse.julialang.org/t/converting-string-to-character/76715 "2022-02-18T18:56:57Z")

</div>

Hi all, I am new to Julia and would appreciate some help. I am trying to make a calculator on Julia for body mass index. Essentially, this calculator will ask the user to choose Metric or Imperial in the beginning of th…

---

## [Issues with Julia installation on google tpu vm](https://discourse.julialang.org/t/issues-with-julia-installation-on-google-tpu-vm/65783)

<div class="topic-metadata">

**Author:** [@ymh](https://discourse.julialang.org/u/ymh)\
**Replies:** 10\
**Last updated:** [February 18, 2022, 6:25pm UTC](https://discourse.julialang.org/t/issues-with-julia-installation-on-google-tpu-vm/65783 "2022-02-18T18:25:56Z")

</div>

Hi, I’m running into some issues after installing Julia 1.6.2 on a google TPU VM (just in case: a TPU VM is not the same as a TPU node). Would anyone happen to have run into this sort of issue before? For instance, whe…

---

## [Domain error for Turing model with callback](https://discourse.julialang.org/t/domain-error-for-turing-model-with-callback/75723)

<div class="topic-metadata">

**Author:** [@vembha](https://discourse.julialang.org/u/vembha)\
**Replies:** 33\
**Last updated:** [February 18, 2022, 6:06pm UTC](https://discourse.julialang.org/t/domain-error-for-turing-model-with-callback/75723 "2022-02-18T18:06:07Z")

</div>

Hello, Following is a moderately large Turing model, where the ODE system is solved for 51 time steps with a discrete callback at t=20. #====================================== PARAMETER ESTIMATION FROM SYNTHETIC DATA =…

---

## [Remove all entries that occur more than once](https://discourse.julialang.org/t/remove-all-entries-that-occur-more-than-once/76672)

<div class="topic-metadata">

**Author:** [@Mo-Gul](https://discourse.julialang.org/u/Mo-Gul)\
**Replies:** 3\
**Last updated:** [February 18, 2022, 6:03pm UTC](https://discourse.julialang.org/t/remove-all-entries-that-occur-more-than-once/76672 "2022-02-18T18:03:01Z")

</div>

How can I drop all elements in a list that occur more than once? For example when I have using DataFrames firstnames = DataFrame(name = \["Anton", "Jordan", "Jordan"\], gender = \["M", "M", "F"\]) I would like the remainin…

---

## [Why do take! and put! for channels allocate memory?](https://discourse.julialang.org/t/why-do-take-and-put-for-channels-allocate-memory/76513)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 1\
**Last updated:** [February 18, 2022, 6:00pm UTC](https://discourse.julialang.org/t/why-do-take-and-put-for-channels-allocate-memory/76513 "2022-02-18T18:00:20Z")

</div>

I ran a bunch of floats through some channels across threads to test it out and discovered that memory was being allocated during the process which seems odd. Increasing the count in the for loop increases the allocation…

---

## [@nloops, but for n-1 indices](https://discourse.julialang.org/t/nloops-but-for-n-1-indices/76595)

<div class="topic-metadata">

**Author:** [@jbshannon](https://discourse.julialang.org/u/jbshannon)\
**Replies:** 6\
**Last updated:** [February 18, 2022, 5:42pm UTC](https://discourse.julialang.org/t/nloops-but-for-n-1-indices/76595 "2022-02-18T17:42:01Z")

</div>

I’m writing a function where I want to use Base.Cartesian.@nloops to collect possible combinations of inputs, but the object I am creating has one index with a fixed value. Here is a function that does something similar …

---

## [Julia 1.9 (not yet downloadable) and 1.8](https://discourse.julialang.org/t/julia-1-9-not-yet-downloadable-and-1-8/76708)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [February 18, 2022, 4:30pm UTC](https://discourse.julialang.org/t/julia-1-9-not-yet-downloadable-and-1-8/76708 "2022-02-18T16:30:27Z")

</div>

I just downloaded the Julia nightly to get Julia 1.9-DEV that is now on master. 1.8-beta1 seems close. I actually get: | | |\_| | | | (\_| | | Version 1.8.0-DEV.1505 (2022-02-12) \_/ |\\\_\_'\_|\_|\_|\\\_\_'\_| | Commit e422…

---

## [Pluging: Julia | Dataiku](https://discourse.julialang.org/t/pluging-julia-dataiku/76709)

<div class="topic-metadata">

**Author:** [@SOFIA\_PEDRAZA](https://discourse.julialang.org/u/SOFIA_PEDRAZA)\
**Replies:** 5\
**Last updated:** [February 18, 2022, 5:10pm UTC](https://discourse.julialang.org/t/pluging-julia-dataiku/76709 "2022-02-18T17:10:40Z")

</div>

Hi, I had installed the pluging in DataIku to create and execute Julia recipes the same way you would use any other code recipes. It makes that a Julia kernel also becomes available for Jupyter notebooks. I am using the…

---

## [Constructing a Dict but not sure WHY it works](https://discourse.julialang.org/t/constructing-a-dict-but-not-sure-why-it-works/76710)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [February 18, 2022, 5:08pm UTC](https://discourse.julialang.org/t/constructing-a-dict-but-not-sure-why-it-works/76710 "2022-02-18T17:08:19Z")

</div>

I am using example code to learn julia when I can. I have come across this line my\_dict = Dict( compt =\> Dict{ String, Any }() for compt in comp\_list) I can see what it’s doing BUT the area I am uncertain about is , …

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

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