# Latest

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

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

**Page:** 652

---

## [How to implement a Bessel filter with ModelingToolkit?](https://discourse.julialang.org/t/how-to-implement-a-bessel-filter-with-modelingtoolkit/101220)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 13\
**Last updated:** [July 8, 2023, 3:47am UTC](https://discourse.julialang.org/t/how-to-implement-a-bessel-filter-with-modelingtoolkit/101220 "2023-07-08T03:47:46Z")

</div>

How can I implement the following Bessel filter with ModelingToolkit? \\frac{w\_1²}{0.618 s²~+~1.3617 w\_1 s~+~w\_1²} I know there is this filter component in the standard library: Basic Blocks · ModelingToolkitStandardLib…

---

## [Cannot multiply a quadratic expression by an affine expression](https://discourse.julialang.org/t/cannot-multiply-a-quadratic-expression-by-an-affine-expression/101240)

<div class="topic-metadata">

**Author:** [@horvetz](https://discourse.julialang.org/u/horvetz)\
**Replies:** 6\
**Last updated:** [July 7, 2023, 11:57pm UTC](https://discourse.julialang.org/t/cannot-multiply-a-quadratic-expression-by-an-affine-expression/101240 "2023-07-07T23:57:01Z")

</div>

I am trying to define an expression P = Q’ \* R \* Q using @expression but it is not cooperating. I tried to split the matrix product and even use @NLexpression macro but no luck. Can someone suggest a way to define P? u…

---

## [Make function ignore Case-sensitivity of its input](https://discourse.julialang.org/t/make-function-ignore-case-sensitivity-of-its-input/101294)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 5\
**Last updated:** [July 7, 2023, 9:29pm UTC](https://discourse.julialang.org/t/make-function-ignore-case-sensitivity-of-its-input/101294 "2023-07-07T21:29:42Z")

</div>

I want make findfirst() function Case-insensitive. I want to extract texts after Filter word in webpages text. Some webpages contains it as FILTER and some as Filter. How to make them equivalent ? while for other w…

---

## [Low rank factorized AbstractMatrix](https://discourse.julialang.org/t/low-rank-factorized-abstractmatrix/19838)

<div class="topic-metadata">

**Author:** [@jarl](https://discourse.julialang.org/u/jarl)\
**Replies:** 18\
**Last updated:** [July 7, 2023, 8:52pm UTC](https://discourse.julialang.org/t/low-rank-factorized-abstractmatrix/19838 "2023-07-07T20:52:02Z")

</div>

Basic question: Is there an AbstractMatrix which can represent a low-rank factorized matrix? Example: I have the rank-one matrix: n1=900; n2=100; u=\[zeros(n1);randn(n2)\]; A=u\*u'; I want to use A in functions which tak…

---

## [Include fixed point in JuMP](https://discourse.julialang.org/t/include-fixed-point-in-jump/101236)

<div class="topic-metadata">

**Author:** [@leima0521](https://discourse.julialang.org/u/leima0521)\
**Replies:** 10\
**Last updated:** [July 7, 2023, 8:30pm UTC](https://discourse.julialang.org/t/include-fixed-point-in-jump/101236 "2023-07-07T20:30:41Z")

</div>

Hi, I am using JuMP to maximize a nonlinear function. The function takes two vector inputs: d and p. The dimension of p is much smaller than the dimension of d. The trick is that the value of d is determined by p. Give…

---

## [Custom Compat.jl Block](https://discourse.julialang.org/t/custom-compat-jl-block/101328)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 1\
**Last updated:** [July 7, 2023, 8:15pm UTC](https://discourse.julialang.org/t/custom-compat-jl-block/101328 "2023-07-07T20:15:02Z")

</div>

I wrote a function to collect an iterator into a tuple: collect\_tuple(itr) = \_collect\_tuple(Iterators.peel(itr)) \_collect\_tuple(peel\_return) = \_collect\_tuple(peel\_return...) \_collect\_tuple(::Nothing) = () \_collect\_tuple…

---

## [VSCode, conda environments, and Stan.jl](https://discourse.julialang.org/t/vscode-conda-environments-and-stan-jl/101271)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 6\
**Last updated:** [July 7, 2023, 7:56pm UTC](https://discourse.julialang.org/t/vscode-conda-environments-and-stan-jl/101271 "2023-07-07T19:56:51Z")

</div>

I have spent the last couple of days trying to get Stan.jl to run with VSCode. Stan.jl requires cmdstan, which (on my platform, Windows) is most easily installed via conda. However, the conda environments seem to be giv…

---

## [\[ANN\] Deneb.jl](https://discourse.julialang.org/t/ann-deneb-jl/101074)

<div class="topic-metadata">

**Author:** [@brucala](https://discourse.julialang.org/u/brucala)\
**Replies:** 3\
**Last updated:** [July 7, 2023, 7:20pm UTC](https://discourse.julialang.org/t/ann-deneb-jl/101074 "2023-07-07T19:20:07Z")

</div>

I’m happy to announce Deneb.jl, a convenient Julia API for creating Vega-Lite visualizations. I began developing this package nearly two years ago, mainly as a personal project to deepen my understanding of Julia. Howev…

---

## [Extracting values from UnivariateFinite](https://discourse.julialang.org/t/extracting-values-from-univariatefinite/62794)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 8\
**Last updated:** [July 7, 2023, 6:51pm UTC](https://discourse.julialang.org/t/extracting-values-from-univariatefinite/62794 "2023-07-07T18:51:22Z")

</div>

So MLJ gave me, as its output, a UnivariateFinite data structure; I have: UnivariateFinite{OrderedFactor{2}}(0=\>0.937, 1=\>0.0626) Is there a way I can extract, as an array, the probabilities from this distribution (oth…

---

## [Does Pkg.develop have different behavior with and without path?](https://discourse.julialang.org/t/does-pkg-develop-have-different-behavior-with-and-without-path/101325)

<div class="topic-metadata">

**Author:** [@kmp5](https://discourse.julialang.org/u/kmp5)\
**Replies:** 0\
**Last updated:** [July 7, 2023, 6:48pm UTC](https://discourse.julialang.org/t/does-pkg-develop-have-different-behavior-with-and-without-path/101325 "2023-07-07T18:48:07Z")

</div>

Hi all I also posted this question on the stackoverflow I am having an interesting issue with the Package manager system and wondering if its related to the way my Project.toml is set up. The issue is that when I call P…

---

## [Still more on updating, uninstalling and re-installing Julia (Windows)](https://discourse.julialang.org/t/still-more-on-updating-uninstalling-and-re-installing-julia-windows/101295)

<div class="topic-metadata">

**Author:** [@vsoler](https://discourse.julialang.org/u/vsoler)\
**Replies:** 4\
**Last updated:** [July 7, 2023, 6:43pm UTC](https://discourse.julialang.org/t/still-more-on-updating-uninstalling-and-re-installing-julia-windows/101295 "2023-07-07T18:43:32Z")

</div>

I updated my 1.9.0 Julia version to 1.9.1 using UpdateJulia. version 1.9.1 was installed version 1.9.0 was not removed (although I intended to) my desktop icon, when double-clicked, starts 1.9.0 (I prefer that it start…

---

## [Drawing a large network using Julia](https://discourse.julialang.org/t/drawing-a-large-network-using-julia/85793)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 6\
**Last updated:** [July 7, 2023, 6:13pm UTC](https://discourse.julialang.org/t/drawing-a-large-network-using-julia/85793 "2023-07-07T18:13:26Z")

</div>

Is there a way to draw a network (with nods and edges) in Julia? In particular, I have (say) 5 nodes of type 1 and 10 of type 2. Directed edges exist from each type 1 node to type 2 node, and I would probably show nodes …

---

## [Mapreduce performance and dispatch](https://discourse.julialang.org/t/mapreduce-performance-and-dispatch/101322)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 0\
**Last updated:** [July 7, 2023, 5:49pm UTC](https://discourse.julialang.org/t/mapreduce-performance-and-dispatch/101322 "2023-07-07T17:49:14Z")

</div>

I’m having trouble getting mapreduce to dispatch correctly and am looking for tips. From profiling I can see that it dispatches to map and reduce independently rather than something better like mapfoldl. There’s a simil…

---

## [String7 and Bools : bug or feature?](https://discourse.julialang.org/t/string7-and-bools-bug-or-feature/101188)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 7\
**Last updated:** [July 7, 2023, 4:36pm UTC](https://discourse.julialang.org/t/string7-and-bools-bug-or-feature/101188 "2023-07-07T16:36:26Z")

</div>

This one got me (by reading in a DataFrame via CSV). Is this behavior intentional? julia\> using CSV julia\> x = String7( "4" ) "4" julia\> parse( Int, x ) 4 julia\> y = String7( "true" ) "true" julia\> parse( Bool, y …

---

## [Power as vector rather than a value](https://discourse.julialang.org/t/power-as-vector-rather-than-a-value/101207)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 13\
**Last updated:** [July 7, 2023, 3:36pm UTC](https://discourse.julialang.org/t/power-as-vector-rather-than-a-value/101207 "2023-07-07T15:36:33Z")

</div>

Can we solve something like this ? 10^\[1, 2, 3, 4\] Is there any way ?

---

## [CCXT with Julia](https://discourse.julialang.org/t/ccxt-with-julia/90905)

<div class="topic-metadata">

**Author:** [@W4C](https://discourse.julialang.org/u/W4C)\
**Replies:** 2\
**Last updated:** [July 7, 2023, 3:01pm UTC](https://discourse.julialang.org/t/ccxt-with-julia/90905 "2023-07-07T15:01:14Z")

</div>

Hello, I wonder if some people here have been able to run CCXT GitHub - ccxt/ccxt: A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges with Julia Wondering if…

---

## [1.10 alpha significantly slower to start REPL](https://discourse.julialang.org/t/1-10-alpha-significantly-slower-to-start-repl/101293)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 9\
**Last updated:** [July 7, 2023, 2:00pm UTC](https://discourse.julialang.org/t/1-10-alpha-significantly-slower-to-start-repl/101293 "2023-07-07T14:00:01Z")

</div>

Got the new alpha from juliaup, and the REPL seemed significantly slower to boot than in the release. Did a very simple test where I pressed Ctrl-D as soon as I saw the julia prompt, so might be a little variability fro…

---

## [The proper way of documenting constructors](https://discourse.julialang.org/t/the-proper-way-of-documenting-constructors/17049)

<div class="topic-metadata">

**Author:** [@fjarri](https://discourse.julialang.org/u/fjarri)\
**Replies:** 3\
**Last updated:** [July 7, 2023, 1:58pm UTC](https://discourse.julialang.org/t/the-proper-way-of-documenting-constructors/17049 "2023-07-07T13:58:47Z")

</div>

If a type has outer constructors, Julia’s REPL shows all their docstrings joined together with the type’s docstring when asked for help, which is pretty neat: "Type docstring" struct A x end "Constructor docstring…

---

## [Code Coverage Unknown for Private Repo](https://discourse.julialang.org/t/code-coverage-unknown-for-private-repo/101315)

<div class="topic-metadata">

**Author:** [@JohnS](https://discourse.julialang.org/u/JohnS)\
**Replies:** 0\
**Last updated:** [July 7, 2023, 1:23pm UTC](https://discourse.julialang.org/t/code-coverage-unknown-for-private-repo/101315 "2023-07-07T13:23:33Z")

</div>

Thanks for your help; please let me know how I can be clearer etc. I generated a pkg using the PkgTemplates “A More Complicated Example”. Pushed the repo to GitHub; CI is passing. Clicked the code cov unknown badge. Th…

---

## [PackageCompiler executable Error](https://discourse.julialang.org/t/packagecompiler-executable-error/81466)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 6\
**Last updated:** [July 7, 2023, 1:20pm UTC](https://discourse.julialang.org/t/packagecompiler-executable-error/81466 "2023-07-07T13:20:22Z")

</div>

Hi I built an exectuable with PackageCompiler.create\_app("JuliaPlotting", "/home/christian/trasch/julia-plotting") but when I run it with /home/christian/trasch/julia-plotting/bin/JuliaPlotting it spits out the follow…

---

## [How to avoid zeros while using log on axis?](https://discourse.julialang.org/t/how-to-avoid-zeros-while-using-log-on-axis/101310)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [July 7, 2023, 1:03pm UTC](https://discourse.julialang.org/t/how-to-avoid-zeros-while-using-log-on-axis/101310 "2023-07-07T13:03:48Z")

</div>

Is there way to avoid zero in data go -Inf and still have log axis during plotting?

---

## [Plotting shaded region for quantile](https://discourse.julialang.org/t/plotting-shaded-region-for-quantile/101308)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [July 7, 2023, 11:02am UTC](https://discourse.julialang.org/t/plotting-shaded-region-for-quantile/101308 "2023-07-07T11:02:01Z")

</div>

how can i plot median and quantile regions (5%, 95%) as shade for a given line plot? Is there any function in julia? At the moment i’m using ribbon plot(x , y, ribbon = (q5, q95)) #q5 is 5% quantile and q95 is 95%. …

---

## [Is MonteCarloProblem() still working at present?](https://discourse.julialang.org/t/is-montecarloproblem-still-working-at-present/101292)

<div class="topic-metadata">

**Author:** [@maurice\_lin](https://discourse.julialang.org/u/maurice_lin)\
**Replies:** 2\
**Last updated:** [July 7, 2023, 10:31am UTC](https://discourse.julialang.org/t/is-montecarloproblem-still-working-at-present/101292 "2023-07-07T10:31:26Z")

</div>

From mathematical optimization - Parameter estimation of multiple datasets in julia DifferentialEquations - Stack Overflow, I tried the example in Julia. But Julia told me that MonteCarlo function have not been defined. …

---

## [Problem with referencing modules](https://discourse.julialang.org/t/problem-with-referencing-modules/100916)

<div class="topic-metadata">

**Author:** [@jlhouchin](https://discourse.julialang.org/u/jlhouchin)\
**Replies:** 22\
**Last updated:** [July 7, 2023, 6:57am UTC](https://discourse.julialang.org/t/problem-with-referencing-modules/100916 "2023-07-07T06:57:29Z")

</div>

Hello. Not quite new to Julia, been lurking for years and played quite a bit with porting code from another project. I have code I have ported that I have written tests for and one of them is failing and I can not figur…

---

## [Customize a random function to sample 3 out of a list of 4097 real numbers](https://discourse.julialang.org/t/customize-a-random-function-to-sample-3-out-of-a-list-of-4097-real-numbers/100876)

<div class="topic-metadata">

**Author:** [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Replies:** 5\
**Last updated:** [July 7, 2023, 6:42am UTC](https://discourse.julialang.org/t/customize-a-random-function-to-sample-3-out-of-a-list-of-4097-real-numbers/100876 "2023-07-07T06:42:28Z")

</div>

I need a very fast random sampler to choose n numbers from a precomputed 1D array, say X. We can assume that n is much smaller than length(X). I have tried rand(X,n), \[rand(X) for i=1:n\] , but neither gives satisfactory …

---

## [Very slow "Updating registry at 'C:\\Users\\me\\.julia\\registries\\General'"](https://discourse.julialang.org/t/very-slow-updating-registry-at-c-users-me-julia-registries-general/51614)

<div class="topic-metadata">

**Author:** [@devel-chm](https://discourse.julialang.org/u/devel-chm)\
**Replies:** 19\
**Last updated:** [July 7, 2023, 4:14am UTC](https://discourse.julialang.org/t/very-slow-updating-registry-at-c-users-me-julia-registries-general/51614 "2023-07-07T04:14:18Z")

</div>

I’m using win10 and julia-1.5.3 from the REPL. When I use Pkg mode to add a new package (or other operations) it starts by updating the registries\\General: (@v1.5) pkg\> add Pluto Updating registry at C:\\Users\\me\\.jul…

---

## [JuMP summation constraint error](https://discourse.julialang.org/t/jump-summation-constraint-error/101181)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 5\
**Last updated:** [July 7, 2023, 2:10am UTC](https://discourse.julialang.org/t/jump-summation-constraint-error/101181 "2023-07-07T02:10:40Z")

</div>

I’m trying to add a constraint to a JuMP model that sums the elements of a constant matrix c times binary variables x. For i=1:I, x\[i,j\] is a binary variable for j=1:len\_J\_i\[i\]. That is for each i=1:I, x\[i,:\] is a vecto…

---

## [Ipopt solves large-scale nonlinear problems](https://discourse.julialang.org/t/ipopt-solves-large-scale-nonlinear-problems/98831)

<div class="topic-metadata">

**Author:** [@lzq-zbc](https://discourse.julialang.org/u/lzq-zbc)\
**Replies:** 18\
**Last updated:** [July 7, 2023, 2:06am UTC](https://discourse.julialang.org/t/ipopt-solves-large-scale-nonlinear-problems/98831 "2023-07-07T02:06:52Z")

</div>

I’m new to Julia, I’m working on optimal power flow problems in the direction of power systems, and when solving large-scale problems with Julia (there are thousands of variables and constraints, of course, most of them …

---

## [Identical diagonal elements](https://discourse.julialang.org/t/identical-diagonal-elements/83969)

<div class="topic-metadata">

**Author:** [@ivzktch99](https://discourse.julialang.org/u/ivzktch99)\
**Replies:** 6\
**Last updated:** [July 7, 2023, 2:01am UTC](https://discourse.julialang.org/t/identical-diagonal-elements/83969 "2023-07-07T02:01:56Z")

</div>

Suppose you have using JuMP,Ipopt model = Model(Ipopt.Optimizer) n = 5 @variable(model, X\[1:n, 1:n\]) What is the easiest way to impose that the elements of main diagonal of X are identical. No restriction on what they …

---

## ["BoundError: attempt to access JuMP containers" when creating a constraint](https://discourse.julialang.org/t/bounderror-attempt-to-access-jump-containers-when-creating-a-constraint/100306)

<div class="topic-metadata">

**Author:** [@Luiz\_Monteiro](https://discourse.julialang.org/u/Luiz_Monteiro)\
**Replies:** 2\
**Last updated:** [July 7, 2023, 1:37am UTC](https://discourse.julialang.org/t/bounderror-attempt-to-access-jump-containers-when-creating-a-constraint/100306 "2023-07-07T01:37:04Z")

</div>

Hi, I’m trying to create a constraint like specified below, but have this error: “ERROR: BoundsError: attempt to access JuMP.Containers.SparseAxisArray{VariableRef, 3, Tuple{Int64, Int64, Bool}} with 44 entries at index”…

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

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