# Latest

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

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

**Page:** 1187

---

## [ExtraVariableSystemException while working with DiffEqOperators.jl](https://discourse.julialang.org/t/extravariablesystemexception-while-working-with-diffeqoperators-jl/72535)

<div class="topic-metadata">

**Author:** [@youainti](https://discourse.julialang.org/u/youainti)\
**Replies:** 2\
**Last updated:** [December 6, 2021, 11:39pm UTC](https://discourse.julialang.org/t/extravariablesystemexception-while-working-with-diffeqoperators-jl/72535 "2021-12-06T23:39:03Z")

</div>

I’ve run into two issues while using DiffEqOperators.jl to solve the Feynman-Kac Formula through the method of lines. Here is the setup to the problem: #setup symbols @parameters τ y @variables f(..) Dτ = Differential(…

---

## [How to select rows of a dataframe?](https://discourse.julialang.org/t/how-to-select-rows-of-a-dataframe/72682)

<div class="topic-metadata">

**Author:** [@corny85](https://discourse.julialang.org/u/corny85)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 10:06pm UTC](https://discourse.julialang.org/t/how-to-select-rows-of-a-dataframe/72682 "2021-12-06T22:06:11Z")

</div>

Hello, I have a dataframe df with 5 rows and a vector of vectors v=\[\[3\],\[5\],\[1,2\],\[4\]\]. I want to create a new dataframe dg with rows indexes sorted in order of v: the 1st row of dg is the 3rd row of df the 2nd row …

---

## [\[ANN\] DocumenterEpub.jl](https://discourse.julialang.org/t/ann-documenterepub-jl/53435)

<div class="topic-metadata">

**Author:** [@laborg](https://discourse.julialang.org/u/laborg)\
**Replies:** 26\
**Last updated:** [December 6, 2021, 10:05pm UTC](https://discourse.julialang.org/t/ann-documenterepub-jl/53435 "2021-12-06T22:05:25Z")

</div>

Hi, I’m releasing 0.1.0 of DocumenterEpub.jl. The provided EPUB() can act as a drop-in replacement for HTML() format and will then create an EPUB file to be consumed on e-ink devices. From the README: Create epub 3.…

---

## [How to insert a new vector in a vector of vectors](https://discourse.julialang.org/t/how-to-insert-a-new-vector-in-a-vector-of-vectors/72678)

<div class="topic-metadata">

**Author:** [@corny85](https://discourse.julialang.org/u/corny85)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 8:39pm UTC](https://discourse.julialang.org/t/how-to-insert-a-new-vector-in-a-vector-of-vectors/72678 "2021-12-06T20:39:11Z")

</div>

Hello, I’m beginning with Julia. Here is my problem: i have a vector of vectors that i fill up inside a loop under some conditions. At starting, i have v=\[\[1\]\]. Then with push! and pushfirst!, i fill up v. For examp…

---

## [Compositional Sampling in Turing - getting exactly same samples (standard deviation is zero)](https://discourse.julialang.org/t/compositional-sampling-in-turing-getting-exactly-same-samples-standard-deviation-is-zero/72326)

<div class="topic-metadata">

**Author:** [@rkmalaiya](https://discourse.julialang.org/u/rkmalaiya)\
**Replies:** 13\
**Last updated:** [December 6, 2021, 8:09pm UTC](https://discourse.julialang.org/t/compositional-sampling-in-turing-getting-exactly-same-samples-standard-deviation-is-zero/72326 "2021-12-06T20:09:16Z")

</div>

Hello Everyone, I have just started to use Turing. I want to implement a DINA Model ( DINA Model and Parameter Estimation: A Didactic (jstor.org)) which contains both discrete and continuous random variables. Hence, I w…

---

## [Increase perfomance for Gillespie Algorithm](https://discourse.julialang.org/t/increase-perfomance-for-gillespie-algorithm/72369)

<div class="topic-metadata">

**Author:** [@Luis](https://discourse.julialang.org/u/Luis)\
**Replies:** 19\
**Last updated:** [December 6, 2021, 7:56pm UTC](https://discourse.julialang.org/t/increase-perfomance-for-gillespie-algorithm/72369 "2021-12-06T19:56:29Z")

</div>

I am relatively new to Julia and trying to implement a version of Gillespies Algorithm that can be used in population genetics. I tried really hard to make it as fast and light weighted as possible, incorporating most o…

---

## [Approximation matching asymptotes](https://discourse.julialang.org/t/approximation-matching-asymptotes/72648)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 7:36pm UTC](https://discourse.julialang.org/t/approximation-matching-asymptotes/72648 "2021-12-06T19:36:46Z")

</div>

I have a function f: \\mathbb{R} \\to \\mathbb{R} that is expensive to calculate (implicitly defined, needs iterative methods). But otherwise f is well-behaved: continuous, differentiable, and strictly increasing on all the…

---

## [Strange warning on PyPlot for 1.7.0 "vendor() is depreciated ..."](https://discourse.julialang.org/t/strange-warning-on-pyplot-for-1-7-0-vendor-is-depreciated/72675)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 2\
**Last updated:** [December 6, 2021, 7:17pm UTC](https://discourse.julialang.org/t/strange-warning-on-pyplot-for-1-7-0-vendor-is-depreciated/72675 "2021-12-06T19:17:31Z")

</div>

I’m using 1.7.0 on my Intel machines now with the MKL Blas and happily avoiding the OpenBlas problem. I got this message from PyPlot the first time I call it from 1.7.0 in a new REPL session but not for calls after that …

---

## [Julia 1.7 & CUDA on Windows 11](https://discourse.julialang.org/t/julia-1-7-cuda-on-windows-11/72488)

<div class="topic-metadata">

**Author:** [@00shiv](https://discourse.julialang.org/u/00shiv)\
**Replies:** 6\
**Last updated:** [December 6, 2021, 6:56pm UTC](https://discourse.julialang.org/t/julia-1-7-cuda-on-windows-11/72488 "2021-12-06T18:56:57Z")

</div>

I am not able to get CUDA installed on Julia 1.7 on Windows 11 (not even with WSL). The errors seem to be the same in both cases as it is not able to install LLVM properly. The error seems to be “could not load symbol “L…

---

## [What are some recommended ways to create networks of ensembles of neurons?](https://discourse.julialang.org/t/what-are-some-recommended-ways-to-create-networks-of-ensembles-of-neurons/72673)

<div class="topic-metadata">

**Author:** [@yohan](https://discourse.julialang.org/u/yohan)\
**Replies:** 0\
**Last updated:** [December 6, 2021, 6:35pm UTC](https://discourse.julialang.org/t/what-are-some-recommended-ways-to-create-networks-of-ensembles-of-neurons/72673 "2021-12-06T18:35:18Z")

</div>

Hi! I’m very new to Julia and considering migrating my Izhikevich neuronal network simulations to Julia from MATLAB. I was wondering about ways of implementing interactions among ensembles of units. I’d like to have pop…

---

## [Show waveform as part of larger program](https://discourse.julialang.org/t/show-waveform-as-part-of-larger-program/72668)

<div class="topic-metadata">

**Author:** [@Nenndul](https://discourse.julialang.org/u/Nenndul)\
**Replies:** 2\
**Last updated:** [December 6, 2021, 5:47pm UTC](https://discourse.julialang.org/t/show-waveform-as-part-of-larger-program/72668 "2021-12-06T17:47:54Z")

</div>

I am using PortAudio to input and process an audio stream Just a very basic thing: stream = PortAudioStream("Microphone (5- UMC204HD 192k)", 1, 0) buf = read(stream, 5s) But when I use this inside of the larger progr…

---

## [Problem with regex example in docs](https://discourse.julialang.org/t/problem-with-regex-example-in-docs/72656)

<div class="topic-metadata">

**Author:** [@jdarnold](https://discourse.julialang.org/u/jdarnold)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 5:34pm UTC](https://discourse.julialang.org/t/problem-with-regex-example-in-docs/72656 "2021-12-06T17:34:41Z")

</div>

I’m trying the code in the Regex section, but I am getting an error. Anyone know what I am doing wrong? julia\> m = match(r"(a|b)(c)?(d)", "ad") RegexMatch("ad", 1="a", 2=nothing, 3="d") julia\> first, second, third = m;…

---

## [\[VSCode\] Plot pane is not working for PGFPlotsX](https://discourse.julialang.org/t/vscode-plot-pane-is-not-working-for-pgfplotsx/68171)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 5:13pm UTC](https://discourse.julialang.org/t/vscode-plot-pane-is-not-working-for-pgfplotsx/68171 "2021-12-06T17:13:32Z")

</div>

Hi everyone, I’m trying to plot some graphs on the plot pane on VSCode. I have toggled on the Use Plot Pane option as below: Unfortunately, everytime I type td or display(td) in the Julia REPL after the following …

---

## [On writing modules using functions from other packages](https://discourse.julialang.org/t/on-writing-modules-using-functions-from-other-packages/72602)

<div class="topic-metadata">

**Author:** [@BrunoVasco](https://discourse.julialang.org/u/BrunoVasco)\
**Replies:** 2\
**Last updated:** [December 5, 2021, 10:37am UTC](https://discourse.julialang.org/t/on-writing-modules-using-functions-from-other-packages/72602 "2021-12-05T10:37:16Z")

</div>

I’m trying to write a module for data visualization that uses the function Gray from the package Images.jl. From what I gather, this should have been a matter of creating my module and “calling” the other package and its…

---

## [Using (Web) packages together is much slower, e.g. 0.2 sec + 0.7 sec = 7.8 sec](https://discourse.julialang.org/t/using-web-packages-together-is-much-slower-e-g-0-2-sec-0-7-sec-7-8-sec/72075)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 4\
**Last updated:** [December 6, 2021, 3:50pm UTC](https://discourse.julialang.org/t/using-web-packages-together-is-much-slower-e-g-0-2-sec-0-7-sec-7-8-sec/72075 "2021-12-06T15:50:52Z")

</div>

I’ll first say, the composability of Julia packages is (otherwise) excellent. I can e.g. use these two packages together, and these are the times, if loading individually (and exiting in-between): julia\> @time using We…

---

## [GalactimOptim + AutoForwardDiff + IPNewton problem](https://discourse.julialang.org/t/galactimoptim-autoforwarddiff-ipnewton-problem/72508)

<div class="topic-metadata">

**Author:** [@mottelet](https://discourse.julialang.org/u/mottelet)\
**Replies:** 6\
**Last updated:** [December 6, 2021, 3:44pm UTC](https://discourse.julialang.org/t/galactimoptim-autoforwarddiff-ipnewton-problem/72508 "2021-12-06T15:44:41Z")

</div>

Hi, I am trying to solve a parameter fitting problem in a stiff biological ODE. The problem solves with correct precision in Matlab (with fmincon/IP) using the complex-step technique to compute the gradient, but since I…

---

## [PBS cluster: "Syntax error: redirection unexpected" and "nested task error: Unable to read host:port string from worker."](https://discourse.julialang.org/t/pbs-cluster-syntax-error-redirection-unexpected-and-nested-task-error-unable-to-read-host-port-string-from-worker/72620)

<div class="topic-metadata">

**Author:** [@anon28281882](https://discourse.julialang.org/u/anon28281882)\
**Replies:** 1\
**Last updated:** [December 6, 2021, 2:50pm UTC](https://discourse.julialang.org/t/pbs-cluster-syntax-error-redirection-unexpected-and-nested-task-error-unable-to-read-host-port-string-from-worker/72620 "2021-12-06T14:50:42Z")

</div>

Hi, I am new to Distributed computing. Everything works fine with Distributed on one machine. It seems that everything works fine on two machines with MPI.jl (it seems to be slower than Distributed on one machine but wo…

---

## [Why does the soft scope warning not appear in a nested loop?](https://discourse.julialang.org/t/why-does-the-soft-scope-warning-not-appear-in-a-nested-loop/72646)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 7\
**Last updated:** [December 6, 2021, 2:44pm UTC](https://discourse.julialang.org/t/why-does-the-soft-scope-warning-not-appear-in-a-nested-loop/72646 "2021-12-06T14:44:01Z")

</div>

Hello, I am confused because this basic loop yields a warning: i = 5 for j in 1:5 # ... i = "other\_value" # ... end ┌ Warning: Assignment to \`i\` in soft scope is ambiguous because a global variable by the s…

---

## [CairoMakie returning empty plots](https://discourse.julialang.org/t/cairomakie-returning-empty-plots/72581)

<div class="topic-metadata">

**Author:** [@hiraksarkar](https://discourse.julialang.org/u/hiraksarkar)\
**Replies:** 5\
**Last updated:** [December 6, 2021, 1:21pm UTC](https://discourse.julialang.org/t/cairomakie-returning-empty-plots/72581 "2021-12-06T13:21:24Z")

</div>

Hi, I am new to julia, I want plot a simple scatterplot from a dataframe where the colors are coded as String7 hexadecimal code, a snapshot, Row │ x y ncv\_color │ Int64 Int64 String7 ─────┼────────…

---

## [Weird behaviour with function variables leaking out of if blocks](https://discourse.julialang.org/t/weird-behaviour-with-function-variables-leaking-out-of-if-blocks/72651)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 1:01pm UTC](https://discourse.julialang.org/t/weird-behaviour-with-function-variables-leaking-out-of-if-blocks/72651 "2021-12-06T13:01:47Z")

</div>

According to the docs, if blocks are leaky. I can use it to my advantage with the following function f, but not with g, why? @enum Case A B f = function (case, x) if case == A coeff = 3 elseif case == B…

---

## [\[ANN\] Linear Regression v0.7-alpha](https://discourse.julialang.org/t/ann-linear-regression-v0-7-alpha/67560)

<div class="topic-metadata">

**Author:** [@Eric](https://discourse.julialang.org/u/Eric)\
**Replies:** 18\
**Last updated:** [December 6, 2021, 12:32pm UTC](https://discourse.julialang.org/t/ann-linear-regression-v0-7-alpha/67560 "2021-12-06T12:32:37Z")

</div>

I would like to inform you that a new package about linear regression is now available. I was needing some extra statistics and did eventually coded them for my purpose. I thought this could benefit others as well, so I…

---

## [Any 'getting started' docs/links for GeoJulia ecosystem?](https://discourse.julialang.org/t/any-getting-started-docs-links-for-geojulia-ecosystem/72040)

<div class="topic-metadata">

**Author:** [@byezy](https://discourse.julialang.org/u/byezy)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 12:24pm UTC](https://discourse.julialang.org/t/any-getting-started-docs-links-for-geojulia-ecosystem/72040 "2021-12-06T12:24:23Z")

</div>

Looking for a ‘getting started’ entry point for using GeoJulia for basic geospatial work that ties all of the packages and their capabilities/usage together… does anything exist?

---

## [Unit tests pass locally but fail through GitHub Actions](https://discourse.julialang.org/t/unit-tests-pass-locally-but-fail-through-github-actions/72641)

<div class="topic-metadata">

**Author:** [@mdneuzerling](https://discourse.julialang.org/u/mdneuzerling)\
**Replies:** 3\
**Last updated:** [December 6, 2021, 11:44am UTC](https://discourse.julialang.org/t/unit-tests-pass-locally-but-fail-through-github-actions/72641 "2021-12-06T11:44:49Z")

</div>

Hi folks. I’ve put together a package for my Advent of Code. The unit tests pass locally but fail when run through my simple GitHub Actions workflow: name: Run tests for AOC2021 on: push: branches: \[main, master\]…

---

## [(boxplot, StatsPlots.jl) how to plot \`boxplot\` with different number of data for each label?](https://discourse.julialang.org/t/boxplot-statsplots-jl-how-to-plot-boxplot-with-different-number-of-data-for-each-label/72649)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 1\
**Last updated:** [December 6, 2021, 11:43am UTC](https://discourse.julialang.org/t/boxplot-statsplots-jl-how-to-plot-boxplot-with-different-number-of-data-for-each-label/72649 "2021-12-06T11:43:03Z")

</div>

Hi, I’d like to plot a boxplot with different number of data for each label. For example, using StatsPlots labels = \["hi", "hello"\] data = \[1.0 missing 3.0; 4.0 5.0 6.0\] boxplot(labels, data) results in the error: j…

---

## [Package compiler fails when using Julia 1.7](https://discourse.julialang.org/t/package-compiler-fails-when-using-julia-1-7/72421)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [December 3, 2021, 12:39am UTC](https://discourse.julialang.org/t/package-compiler-fails-when-using-julia-1-7/72421 "2021-12-03T00:39:46Z")

</div>

I have a package and a script that creates a new system image. It works fine with Julia 1.6.4, but fails with Julia 1.7. I tried both on Ubuntu 18.04 and 20.04. Strange error messages: ⠙ \[04m:36s\] PackageCompiler: compi…

---

## [Most Efficient Way to Update and Array/Variable?](https://discourse.julialang.org/t/most-efficient-way-to-update-and-array-variable/72606)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 8\
**Last updated:** [December 6, 2021, 10:53am UTC](https://discourse.julialang.org/t/most-efficient-way-to-update-and-array-variable/72606 "2021-12-06T10:53:22Z")

</div>

Hi all! First of all, thanks for reading. I am trying to enhance the performance of this function and I wonder if there is a more Julian way to write it in order to make it faster! I have 4 variables that I update ins…

---

## [Find indices or corresponding values except given indices](https://discourse.julialang.org/t/find-indices-or-corresponding-values-except-given-indices/72637)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 2\
**Last updated:** [December 6, 2021, 10:02am UTC](https://discourse.julialang.org/t/find-indices-or-corresponding-values-except-given-indices/72637 "2021-12-06T10:02:52Z")

</div>

Hi, I’d like to know how to access the rest except for given indices. For example, A = \[1 2; 3 4\] # 2 x 2 indices = findall(a -\> a == 1, A) # indices = \[CartesianIndex(1, 1)\] # \_indices = \[CartesianIndex(2, 1), Cart…

---

## [HoJ bot : Heroku Memory quota exceed](https://discourse.julialang.org/t/hoj-bot-heroku-memory-quota-exceed/61194)

<div class="topic-metadata">

**Author:** [@Ashwani\_Rathee](https://discourse.julialang.org/u/Ashwani_Rathee)\
**Replies:** 5\
**Last updated:** [December 6, 2021, 8:27am UTC](https://discourse.julialang.org/t/hoj-bot-heroku-memory-quota-exceed/61194 "2021-12-06T08:27:48Z")

</div>

Fellow Julians : I was trying to put HoJ(Humans of Julia) bot on heroku, but memory quota exceeded issue keeps arising. Yeah, atleast with the free tier that’s the case. Though I think in general it would be awesome to…

---

## [How to define a Python class in a module with PyCall?](https://discourse.julialang.org/t/how-to-define-a-python-class-in-a-module-with-pycall/72634)

<div class="topic-metadata">

**Author:** [@nxtruong](https://discourse.julialang.org/u/nxtruong)\
**Replies:** 1\
**Last updated:** [December 6, 2021, 7:22am UTC](https://discourse.julialang.org/t/how-to-define-a-python-class-in-a-module-with-pycall/72634 "2021-12-06T07:22:50Z")

</div>

I want to write a Julia module in which I define a Python class using PyCall. Using an example in the README of PyCall, a MWE: module parent using PyCall const pypoly = PyNULL() function \_\_init\_\_() copy!(pypoly, py…

---

## [How to convert Array{Array{Float64,2},1} to Array{Array{Float16,2},1}](https://discourse.julialang.org/t/how-to-convert-array-array-float64-2-1-to-array-array-float16-2-1/57032)

<div class="topic-metadata">

**Author:** [@Shazman](https://discourse.julialang.org/u/Shazman)\
**Replies:** 1\
**Last updated:** [March 12, 2021, 5:12pm UTC](https://discourse.julialang.org/t/how-to-convert-array-array-float64-2-1-to-array-array-float16-2-1/57032 "2021-03-12T17:12:38Z")

</div>

I am trying to convet an Array then got this error, how can I fix it ? typeof(MME) Array{Array{Float64,2},1} mme = convert(Array{Float16},MME) ERROR: MethodError: Cannot convert an object of type Array{Float64,2}…

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

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