# Latest

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

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

**Page:** 1407

---

## [Pluto and startup.jl](https://discourse.julialang.org/t/pluto-and-startup-jl/60307)

<div class="topic-metadata">

**Author:** [@pg261](https://discourse.julialang.org/u/pg261)\
**Replies:** 3\
**Last updated:** [April 30, 2021, 1:12pm UTC](https://discourse.julialang.org/t/pluto-and-startup-jl/60307 "2021-04-30T13:12:59Z")

</div>

Hi ! I have a file config/startup.jl which is loaded when working with the REPL, but not when I run Pluto. Is this a bug? and if not startup.jl, is there a way to have a file that’s always included when I open a pluto …

---

## [How to efficiently get the DataFrame row index of statistical operation result](https://discourse.julialang.org/t/how-to-efficiently-get-the-dataframe-row-index-of-statistical-operation-result/60302)

<div class="topic-metadata">

**Author:** [@alessio](https://discourse.julialang.org/u/alessio)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 12:08pm UTC](https://discourse.julialang.org/t/how-to-efficiently-get-the-dataframe-row-index-of-statistical-operation-result/60302 "2021-04-30T12:08:51Z")

</div>

Given a DataFrame like this: df = DataFrame(A = 10\*rand(10), B = 10\*rand(10)) sort!(df, :A) q1 = percentile(df.A, 25) I would like to get the corresponding value in column B of the row such that row.A is the A value im…

---

## [Developing modules in Pluto?](https://discourse.julialang.org/t/developing-modules-in-pluto/58915)

<div class="topic-metadata">

**Author:** [@Jon\_Norberg](https://discourse.julialang.org/u/Jon_Norberg)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 11:58am UTC](https://discourse.julialang.org/t/developing-modules-in-pluto/58915 "2021-04-30T11:58:35Z")

</div>

I am getting addicted to working in Pluto but I still do move functions I have developed in Pluto over into a standard Julia file to incorporate it into a module. Is it possible to also use Pluto to develop the module di…

---

## [Any Julia only IDE available?](https://discourse.julialang.org/t/any-julia-only-ide-available/7081)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 22\
**Last updated:** [April 30, 2021, 11:58am UTC](https://discourse.julialang.org/t/any-julia-only-ide-available/7081 "2021-04-30T11:58:12Z")

</div>

I would like to know if there is any IDE that is designed specifically for Julia, I am more comfortable with IDE like RStudio, PyCharm, etc. I think Julia should have its own IDE. I understand that some users write C++ …

---

## [CuArrays using @views+mul!+transpose+slicing](https://discourse.julialang.org/t/cuarrays-using-views-mul-transpose-slicing/60289)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 4\
**Last updated:** [April 30, 2021, 11:13am UTC](https://discourse.julialang.org/t/cuarrays-using-views-mul-transpose-slicing/60289 "2021-04-30T11:13:31Z")

</div>

Hi, had a problem when using CuArrays for a specific operation. It is optimized for CPU and it would be nice if it worked with the same code on GPU so there was no need to dispatch specifically on it. a = cu(randn(10, 1…

---

## [How to pass constraints in NLsolve?](https://discourse.julialang.org/t/how-to-pass-constraints-in-nlsolve/60219)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 5\
**Last updated:** [April 30, 2021, 10:49am UTC](https://discourse.julialang.org/t/how-to-pass-constraints-in-nlsolve/60219 "2021-04-30T10:49:50Z")

</div>

I am solving 2-variable system of first order conditions for an optimization problem with NLsolve. I know that the optimal values of the optimization problem satisfy some conditions. For example, the optimal values shoul…

---

## [Unable to plot a sphere surface using Plots package](https://discourse.julialang.org/t/unable-to-plot-a-sphere-surface-using-plots-package/60194)

<div class="topic-metadata">

**Author:** [@AAlshammaa](https://discourse.julialang.org/u/AAlshammaa)\
**Replies:** 7\
**Last updated:** [April 29, 2021, 8:54pm UTC](https://discourse.julialang.org/t/unable-to-plot-a-sphere-surface-using-plots-package/60194 "2021-04-29T20:54:23Z")

</div>

I am trying to follow a tutorial on youtube for SVD, and the instructor created a sphere using Python. I am trying to translate the code to Julia n = 100 u = range(-π, π; length = n) v = range(0, π; length = n) x = cos.…

---

## [Iterate over Fields of named tupel](https://discourse.julialang.org/t/iterate-over-fields-of-named-tupel/60294)

<div class="topic-metadata">

**Author:** [@nonameclimber](https://discourse.julialang.org/u/nonameclimber)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 9:51am UTC](https://discourse.julialang.org/t/iterate-over-fields-of-named-tupel/60294 "2021-04-30T09:51:05Z")

</div>

Hi, I have a named tupel with 3 fields with Int64-Array and 1 field with a struct called “agent”. ::NamedTuple{(:S, :I, :R, :agents),Tuple{Array{Any,1},Array{Any,1},Array{Any,1},Array{Main.workspace3.Agent,1}}} Is the…

---

## [Simple Rule Engine](https://discourse.julialang.org/t/simple-rule-engine/59125)

<div class="topic-metadata">

**Author:** [@Dustin\_Hess](https://discourse.julialang.org/u/Dustin_Hess)\
**Replies:** 9\
**Last updated:** [April 30, 2021, 5:35am UTC](https://discourse.julialang.org/t/simple-rule-engine/59125 "2021-04-30T05:35:43Z")

</div>

Hi All I am teaching myself some design patterns currently I am trying to build a simple Rule Engine. I ran upon an issue where I would like to call many functions ( rule set) while passing them the same parameters. In …

---

## [Spawning inside a module](https://discourse.julialang.org/t/spawning-inside-a-module/18715)

<div class="topic-metadata">

**Author:** [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 4:47am UTC](https://discourse.julialang.org/t/spawning-inside-a-module/18715 "2021-04-30T04:47:31Z")

</div>

Hello everyone. I am trying to create a struct which stores a function with the intention to be executed in parallel over multiple cores. The problem seems I am facing is that struct fields seem to only reference functi…

---

## [Integrand produced a NaN. Domain error using QuadGK](https://discourse.julialang.org/t/integrand-produced-a-nan-domain-error-using-quadgk/60287)

<div class="topic-metadata">

**Author:** [@leopdsf](https://discourse.julialang.org/u/leopdsf)\
**Replies:** 3\
**Last updated:** [April 30, 2021, 3:37am UTC](https://discourse.julialang.org/t/integrand-produced-a-nan-domain-error-using-quadgk/60287 "2021-04-30T03:37:10Z")

</div>

Hello, everyone. I’m trying to solve numerically the following integral: \\int \_{-\\infty} ^{\\infty} \\exp(-z^2/2)\\ln(2\\cosh(z)) dz = 2.67636. For that, I write the following using QuadGK f3(z) = exp(-z^2/2)\*log(2\*cosh…

---

## [Difficulties with parametric plots](https://discourse.julialang.org/t/difficulties-with-parametric-plots/60240)

<div class="topic-metadata">

**Author:** [@Buk](https://discourse.julialang.org/u/Buk)\
**Replies:** 21\
**Last updated:** [April 30, 2021, 2:18am UTC](https://discourse.julialang.org/t/difficulties-with-parametric-plots/60240 "2021-04-30T02:18:25Z")

</div>

In Sage I did this: In Julia I tried doing the ‘same thing’: Plots.GRBackend() julia\> r=25.1; i=0.2; julia\> f(a) = ( 1/2\*(pi\*a\*i/r + 2\*r)\*cos(a), 1/2\*(pi\*a\*i/r + 2\*r)\*sin(a) ); julia\> plot( f, 0, 248\*pi )\` And got t…

---

## [Way to Avoid Checking Parameters Fall in Bounds for Distributions.jl](https://discourse.julialang.org/t/way-to-avoid-checking-parameters-fall-in-bounds-for-distributions-jl/59436)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 8\
**Last updated:** [April 30, 2021, 1:35am UTC](https://discourse.julialang.org/t/way-to-avoid-checking-parameters-fall-in-bounds-for-distributions-jl/59436 "2021-04-30T01:35:32Z")

</div>

Is there a way to avoid checking whether parameters for a distribution fall within the required bounds (e.g. positives only for beta-binomial)? It should make sampling with Turing.jl faster, and can also be helpful when …

---

## [Initialise array without specific types](https://discourse.julialang.org/t/initialise-array-without-specific-types/60204)

<div class="topic-metadata">

**Author:** [@baptnz](https://discourse.julialang.org/u/baptnz)\
**Replies:** 25\
**Last updated:** [April 30, 2021, 12:51am UTC](https://discourse.julialang.org/t/initialise-array-without-specific-types/60204 "2021-04-30T00:51:36Z")

</div>

I wrote a program that works fine but has several hard-coded types (Float64, etc.) which I’m now trying to get rid of, because they get in the way of automatic differentiation. I’ve hit a snag with the following: I init…

---

## [What is causing the error "MethodError: no method matching +(::UnitRange{Int64}, ::Int64)"](https://discourse.julialang.org/t/what-is-causing-the-error-methoderror-no-method-matching-unitrange-int64-int64/60271)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 2\
**Last updated:** [April 29, 2021, 11:16pm UTC](https://discourse.julialang.org/t/what-is-causing-the-error-methoderror-no-method-matching-unitrange-int64-int64/60271 "2021-04-29T23:16:47Z")

</div>

In the process of scraping some data from the web, the following code creates an error: idOpen = findall("""2"\>""",stringSnippetsI\[i\])\[end\]+1 The error produced is " MethodError: no method matching +(::UnitRange{Int6…

---

## [Symbolics.jl: simplification of expressions with trigonometric terms](https://discourse.julialang.org/t/symbolics-jl-simplification-of-expressions-with-trigonometric-terms/59904)

<div class="topic-metadata">

**Author:** [@cnf](https://discourse.julialang.org/u/cnf)\
**Replies:** 9\
**Last updated:** [April 29, 2021, 8:19pm UTC](https://discourse.julialang.org/t/symbolics-jl-simplification-of-expressions-with-trigonometric-terms/59904 "2021-04-29T20:19:00Z")

</div>

I am using the Symbolics.jl package with julia 1.5.2 running on a linux machine. Any assistance with the following would be appreciated. (1) How can I simplify expressions with trigonometric terms? For example, I appl…

---

## [Plotting broken? Gadfly and Plots backends not showing axis ticks, can't plot DataFrames](https://discourse.julialang.org/t/plotting-broken-gadfly-and-plots-backends-not-showing-axis-ticks-cant-plot-dataframes/60201)

<div class="topic-metadata">

**Author:** [@datadreamscorp](https://discourse.julialang.org/u/datadreamscorp)\
**Replies:** 14\
**Last updated:** [April 29, 2021, 7:42pm UTC](https://discourse.julialang.org/t/plotting-broken-gadfly-and-plots-backends-not-showing-axis-ticks-cant-plot-dataframes/60201 "2021-04-29T19:42:02Z")

</div>

Opened one of my scripts today to find this error whenever I tried to plot using a DataFrame in Pluto.jl. Tried plotting two vectors in another session and axis ticks are not showing properly (image below), which I guess…

---

## [Not getting basic Ensemble Simulations to work](https://discourse.julialang.org/t/not-getting-basic-ensemble-simulations-to-work/59827)

<div class="topic-metadata">

**Author:** [@johanakerman](https://discourse.julialang.org/u/johanakerman)\
**Replies:** 8\
**Last updated:** [April 29, 2021, 5:38pm UTC](https://discourse.julialang.org/t/not-getting-basic-ensemble-simulations-to-work/59827 "2021-04-29T17:38:11Z")

</div>

I am obviously very new to Julia but like it a lot. I am trying to learn how to make Ensemble Simulations. I do this in a Pluto notebook. I made sure I got a single simple ODE to solve and plot. Then I tried to use rando…

---

## [Adding sliders to VegaLite plot](https://discourse.julialang.org/t/adding-sliders-to-vegalite-plot/60262)

<div class="topic-metadata">

**Author:** [@Gurs](https://discourse.julialang.org/u/Gurs)\
**Replies:** 0\
**Last updated:** [April 29, 2021, 5:02pm UTC](https://discourse.julialang.org/t/adding-sliders-to-vegalite-plot/60262 "2021-04-29T17:02:09Z")

</div>

I’m wondering is it possible to add sliders to a vegalite plot in Julia, similar to the example here. I looked around the documentation page of vegalite.jl but couldn’t find any information or examples. I tried also “tra…

---

## [How to capture results from Pkg.test](https://discourse.julialang.org/t/how-to-capture-results-from-pkg-test/60214)

<div class="topic-metadata">

**Author:** [@bluesmoon](https://discourse.julialang.org/u/bluesmoon)\
**Replies:** 1\
**Last updated:** [April 29, 2021, 4:41pm UTC](https://discourse.julialang.org/t/how-to-capture-results-from-pkg-test/60214 "2021-04-29T16:41:10Z")

</div>

When I test a package using Pkg.test("PackageName"), how do I capture the results in the calling process? ie, something like results = Pkg.test("PackageName") Is my only option to use a custom test set subtype? If this…

---

## [Using .MyModule what is the period for?](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217)

<div class="topic-metadata">

**Author:** [@Hannah\_Rocio\_Santa\_C](https://discourse.julialang.org/u/Hannah_Rocio_Santa_C)\
**Replies:** 7\
**Last updated:** [April 29, 2021, 3:59pm UTC](https://discourse.julialang.org/t/using-mymodule-what-is-the-period-for/60217 "2021-04-29T15:59:15Z")

</div>

Hello, I was reading about modules(Workflow Tips · The Julia Language), and saw that one should add with using .MyModule (or import). I was wondering what the period does? Thank you!

---

## [Libdl.dlopen or Libdl.find\_library does not find a shared library](https://discourse.julialang.org/t/libdl-dlopen-or-libdl-find-library-does-not-find-a-shared-library/55161)

<div class="topic-metadata">

**Author:** [@Siel](https://discourse.julialang.org/u/Siel)\
**Replies:** 10\
**Last updated:** [April 29, 2021, 3:44pm UTC](https://discourse.julialang.org/t/libdl-dlopen-or-libdl-find-library-does-not-find-a-shared-library/55161 "2021-04-29T15:44:57Z")

</div>

I’m trying to call a custom C library whitin Julia but everything I tried have been fruiteless. I always get exactly the same error: /home/siel/Dev/npodjl/ipm\_v2.so: cannot open shared object file: No such file or direct…

---

## [How to tackle a Stefan problem in ModelingToolkit](https://discourse.julialang.org/t/how-to-tackle-a-stefan-problem-in-modelingtoolkit/59846)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 3\
**Last updated:** [April 29, 2021, 3:13pm UTC](https://discourse.julialang.org/t/how-to-tackle-a-stefan-problem-in-modelingtoolkit/59846 "2021-04-29T15:13:39Z")

</div>

I have a problem similar to a Stefan problem and I wanted to ask if there is any tooling to make this kind of problem simpler/more efficient to solve. Especially the moving boundary seems difficult to achieve.

---

## [EnsembleThreads slower than EnsembleSerial or EnsembleDistributed](https://discourse.julialang.org/t/ensemblethreads-slower-than-ensembleserial-or-ensembledistributed/59511)

<div class="topic-metadata">

**Author:** [@ograsdijk](https://discourse.julialang.org/u/ograsdijk)\
**Replies:** 3\
**Last updated:** [April 29, 2021, 3:09pm UTC](https://discourse.julialang.org/t/ensemblethreads-slower-than-ensembleserial-or-ensembledistributed/59511 "2021-04-29T15:09:43Z")

</div>

For my ode system EnsembleThreads (6 threads) is slower than either EnsembleSerial or EnsembleDistributed (6 processes). My specs are Windows 10 and a 6 core i8700k with 32Gb ram and running Julia V1.6. I’m running opti…

---

## [How to correctly stream data over a pipe to account for type variability?](https://discourse.julialang.org/t/how-to-correctly-stream-data-over-a-pipe-to-account-for-type-variability/60252)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 0\
**Last updated:** [April 29, 2021, 2:27pm UTC](https://discourse.julialang.org/t/how-to-correctly-stream-data-over-a-pipe-to-account-for-type-variability/60252 "2021-04-29T14:27:52Z")

</div>

I (very) recently managed to stream data from/to another program with julia through a named pipe. The base example is below but basically, what I can do now is : Declare some custom types to stream, on both sides Read…

---

## [XML to DataFrame](https://discourse.julialang.org/t/xml-to-dataframe/28429)

<div class="topic-metadata">

**Author:** [@jonjilla](https://discourse.julialang.org/u/jonjilla)\
**Replies:** 7\
**Last updated:** [April 29, 2021, 3:01pm UTC](https://discourse.julialang.org/t/xml-to-dataframe/28429 "2021-04-29T15:01:07Z")

</div>

I have an xml file that has the following list of lines under a node. It looks like this (several thousand rows like the following) \<Obj Time="2019-09-01T23:40:13+08:00" attr1="L" attr2="1" attr3="a"/\> \<Obj Time="2019-…

---

## [Error in simple Turing model with ReverseDiff](https://discourse.julialang.org/t/error-in-simple-turing-model-with-reversediff/60128)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 6\
**Last updated:** [April 29, 2021, 2:56pm UTC](https://discourse.julialang.org/t/error-in-simple-turing-model-with-reversediff/60128 "2021-04-29T14:56:40Z")

</div>

I had a model that was running until about two weeks ago, but suddenly stopped. I thought I’d post here before filing an issue - it’s not clear to me if this is more of a reversediff issue or a Turing issue or something …

---

## [Package request: STAR file parser and writer](https://discourse.julialang.org/t/package-request-star-file-parser-and-writer/60120)

<div class="topic-metadata">

**Author:** [@Guillawme](https://discourse.julialang.org/u/Guillawme)\
**Replies:** 10\
**Last updated:** [April 29, 2021, 2:38pm UTC](https://discourse.julialang.org/t/package-request-star-file-parser-and-writer/60120 "2021-04-29T14:38:21Z")

</div>

Hello there, First of all, I hope package requests are appropriate here. I will try my best to make this request as constructive as can be. If requests are not appropriate, I apologize, and I won’t take it personally if…

---

## [gamma(::BigFloat) overflows on Windows](https://discourse.julialang.org/t/gamma-bigfloat-overflows-on-windows/60169)

<div class="topic-metadata">

**Author:** [@DNF](https://discourse.julialang.org/u/DNF)\
**Replies:** 7\
**Last updated:** [April 29, 2021, 2:36pm UTC](https://discourse.julialang.org/t/gamma-bigfloat-overflows-on-windows/60169 "2021-04-29T14:36:24Z")

</div>

jl\> p = big(3.6e13) 3.6e+13 jl\> q = 1/big(0.563483398)+1 2.774675178628776489804929213602311938188089959295862682297487944939957397047059 jl\> beta(p, q) NaN ?? :confused:

---

## [Flux: problems in upgrading to Julia 1.6.1](https://discourse.julialang.org/t/flux-problems-in-upgrading-to-julia-1-6-1/59961)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 2\
**Last updated:** [April 29, 2021, 2:25pm UTC](https://discourse.julialang.org/t/flux-problems-in-upgrading-to-julia-1-6-1/59961 "2021-04-29T14:25:29Z")

</div>

I have just upgraded Julia from v1.5.4 to v1.6.1. Everything was working OK in the previous version and it also works OK with the new version, apart from Flux. I had to rm Flux, otherwise, the list of errors was huge. I …

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

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