# Latest

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

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

**Page:** 1733

---

## [Julia doesn't start in Atom(juno)](https://discourse.julialang.org/t/julia-doesnt-start-in-atom-juno/14705)

<div class="topic-metadata">

**Author:** [@Giovanna\_Abreu](https://discourse.julialang.org/u/Giovanna_Abreu)\
**Replies:** 11\
**Last updated:** [May 31, 2020, 12:45pm UTC](https://discourse.julialang.org/t/julia-doesnt-start-in-atom-juno/14705 "2020-05-31T12:45:42Z")

</div>

Hello everyone, I was programming in Julia then the Atom stopped work. I installed Julia and Atom with Juno on my machine (Windows 10) and it doesn’t work. I simply cannot start Julia from Juno. REPL shows the followin…

---

## [Appending arrays in @threads](https://discourse.julialang.org/t/appending-arrays-in-threads/40496)

<div class="topic-metadata">

**Author:** [@drhandwerk](https://discourse.julialang.org/u/drhandwerk)\
**Replies:** 7\
**Last updated:** [May 31, 2020, 11:31am UTC](https://discourse.julialang.org/t/appending-arrays-in-threads/40496 "2020-05-31T11:31:24Z")

</div>

What’s the correct way to achieve three arrays of size 10 related to the following? A = \[\]; B = \[\]; C = \[\]; Threads.@threads for i = 1:10 append!(A,i) append!(B,i) append!(C,i) end The above either works, doe…

---

## [Evaluate string as variable](https://discourse.julialang.org/t/evaluate-string-as-variable/40504)

<div class="topic-metadata">

**Author:** [@POKIN\_CHAN](https://discourse.julialang.org/u/POKIN_CHAN)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 11:06am UTC](https://discourse.julialang.org/t/evaluate-string-as-variable/40504 "2020-05-31T11:06:45Z")

</div>

In python, a = 3 eval(“a”) equals 3 Any Julia method similar to “eval()”? Thanks.

---

## [Sum over BigInt better performance without generator](https://discourse.julialang.org/t/sum-over-bigint-better-performance-without-generator/40332)

<div class="topic-metadata">

**Author:** [@bernb](https://discourse.julialang.org/u/bernb)\
**Replies:** 3\
**Last updated:** [May 31, 2020, 10:54am UTC](https://discourse.julialang.org/t/sum-over-bigint-better-performance-without-generator/40332 "2020-05-31T10:54:39Z")

</div>

I use the following script: using BenchmarkTools total\_gen(k) = sum(BigInt(2)^(n-1) for n in 1:k) total\_arr(k) = sum(\[BigInt(2)^(n-1) for n in 1:k\]) display(@benchmark total\_gen(10\_000)) display(@benchmark total\_arr(1…

---

## [Passing multiple arguments to a function](https://discourse.julialang.org/t/passing-multiple-arguments-to-a-function/40503)

<div class="topic-metadata">

**Author:** [@POKIN\_CHAN](https://discourse.julialang.org/u/POKIN_CHAN)\
**Replies:** 5\
**Last updated:** [May 31, 2020, 10:41am UTC](https://discourse.julialang.org/t/passing-multiple-arguments-to-a-function/40503 "2020-05-31T10:41:34Z")

</div>

In python, args ={"a":2 ,"c":1,"e":9} def test(a,c,e): print(a,c,e) test(\*\*args) My I know the similar way of passing arguments in Julia? Thanks

---

## [Wrong use of asymptotic notation in the Multi-dimensional Arrays page](https://discourse.julialang.org/t/wrong-use-of-asymptotic-notation-in-the-multi-dimensional-arrays-page/40464)

<div class="topic-metadata">

**Author:** [@natema](https://discourse.julialang.org/u/natema)\
**Replies:** 4\
**Last updated:** [May 31, 2020, 2:59am UTC](https://discourse.julialang.org/t/wrong-use-of-asymptotic-notation-in-the-multi-dimensional-arrays-page/40464 "2020-05-31T02:59:48Z")

</div>

I’m learning Julia and, reading the documentations in the past days, I wrote down few comments on typos, unclear sentences, etc. I’m new to the community and I’m unsure whether I should directly open an issue on GitHub, …

---

## [Default values for composite types in Julia](https://discourse.julialang.org/t/default-values-for-composite-types-in-julia/4479)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 8\
**Last updated:** [May 31, 2020, 2:56am UTC](https://discourse.julialang.org/t/default-values-for-composite-types-in-julia/4479 "2020-05-31T02:56:43Z")

</div>

In C++11, one can initialize the fields of a class to avoid boiler plate code. In Julia, I am currently typing every single combination of constructors in order to handle default values, for example: immutable GaussianV…

---

## [Question about the function "getcolumn" from Tables.jl](https://discourse.julialang.org/t/question-about-the-function-getcolumn-from-tables-jl/40489)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 12:38am UTC](https://discourse.julialang.org/t/question-about-the-function-getcolumn-from-tables-jl/40489 "2020-05-31T00:38:42Z")

</div>

Hi, I’m trying to select a column from a table-like data set (it could be a database, a JuliaDB table and so on). In JuliaDB, this could be done using JuliaDB.select(dat, :var). But I want my package to be able to take …

---

## [Autocompletion & tab complete no longer work after Atom Package update](https://discourse.julialang.org/t/autocompletion-tab-complete-no-longer-work-after-atom-package-update/18344)

<div class="topic-metadata">

**Author:** [@ndinsmore](https://discourse.julialang.org/u/ndinsmore)\
**Replies:** 31\
**Last updated:** [May 31, 2020, 12:19am UTC](https://discourse.julialang.org/t/autocompletion-tab-complete-no-longer-work-after-atom-package-update/18344 "2020-05-31T00:19:13Z")

</div>

Today Atom told me there where updates available to 3 packages, Julia\_client, ink, and one other. I promply updated and after the restart Autocompletion is no longer working. If I hit tab where I previously got complet…

---

## [Macro for optional threading not working](https://discourse.julialang.org/t/macro-for-optional-threading-not-working/40491)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 2\
**Last updated:** [May 31, 2020, 12:18am UTC](https://discourse.julialang.org/t/macro-for-optional-threading-not-working/40491 "2020-05-31T00:18:20Z")

</div>

macro optthreads(switch,code) :( if $(esc(switch)) esc(:(Threads.@threads $$code)) else $(esc(code)) end ) end function test(par) @optthreads par for i in 1:80 print(Threa…

---

## [What is the basic structure of a Julia Program?](https://discourse.julialang.org/t/what-is-the-basic-structure-of-a-julia-program/30626)

<div class="topic-metadata">

**Author:** [@sara\_J](https://discourse.julialang.org/u/sara_J)\
**Replies:** 11\
**Last updated:** [May 30, 2020, 10:03pm UTC](https://discourse.julialang.org/t/what-is-the-basic-structure-of-a-julia-program/30626 "2020-05-30T22:03:24Z")

</div>

I am new to Julia language but i need to know the basic structure of a Julia Program? I asked in stack-overflow but they are not sure. in c and java they have but in Julia I didn’t find and I search a lot

---

## [Is there a weave live preview server?](https://discourse.julialang.org/t/is-there-a-weave-live-preview-server/40466)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 2\
**Last updated:** [May 30, 2020, 9:52pm UTC](https://discourse.julialang.org/t/is-there-a-weave-live-preview-server/40466 "2020-05-30T21:52:27Z")

</div>

I want to write a document using weave, but currently I have to manually rerun the “save to file” or “show preview” commands in vscode. Is there a server which watches the file and recompiles the changed document? Mayb…

---

## [What to do to make jupyter notebook support available](https://discourse.julialang.org/t/what-to-do-to-make-jupyter-notebook-support-available/29767)

<div class="topic-metadata">

**Author:** [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Replies:** 2\
**Last updated:** [May 30, 2020, 9:04pm UTC](https://discourse.julialang.org/t/what-to-do-to-make-jupyter-notebook-support-available/29767 "2020-05-30T21:04:29Z")

</div>

https://github.com/microsoft/vscode-python/issues/5078 Recently the vscode python extension supports jupyter notebooks directly. What could be done to make the vscode notebook support work for julia?

---

## [Strange behaviour of REPL with EOT signal](https://discourse.julialang.org/t/strange-behaviour-of-repl-with-eot-signal/40483)

<div class="topic-metadata">

**Author:** [@lhp22](https://discourse.julialang.org/u/lhp22)\
**Replies:** 0\
**Last updated:** [May 30, 2020, 8:46pm UTC](https://discourse.julialang.org/t/strange-behaviour-of-repl-with-eot-signal/40483 "2020-05-30T20:46:24Z")

</div>

Hi there ! Here a minimal code : function test() i = 1 while true println("Input expected (n°$i)") readline(stdin) i+=1 end end main() = test() Then I run main() in the julia\> pr…

---

## [Get Vector of filenames in directory matching regex. But has the language changed?](https://discourse.julialang.org/t/get-vector-of-filenames-in-directory-matching-regex-but-has-the-language-changed/40480)

<div class="topic-metadata">

**Author:** [@anon64288406](https://discourse.julialang.org/u/anon64288406)\
**Replies:** 5\
**Last updated:** [May 30, 2020, 8:30pm UTC](https://discourse.julialang.org/t/get-vector-of-filenames-in-directory-matching-regex-but-has-the-language-changed/40480 "2020-05-30T20:30:51Z")

</div>

I want to do something similar to what this 2017 StackOverflow person wanted: Get a Vector of all filenames in a directory matching a certain regular expression. This answer says the following was valid: filter(r"^trip…

---

## [Best way to handle (large) chemical reactions](https://discourse.julialang.org/t/best-way-to-handle-large-chemical-reactions/6195)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 19\
**Last updated:** [May 30, 2020, 7:29pm UTC](https://discourse.julialang.org/t/best-way-to-handle-large-chemical-reactions/6195 "2020-05-30T19:29:13Z")

</div>

Hi, I am wondering what is the best way to handle chemical reactions for SSA simulations. For example, given a set of chemical reactions, I want to extract the transition matrix and rate function in order to use Gillesp…

---

## [Create constructor for type without a default constructor](https://discourse.julialang.org/t/create-constructor-for-type-without-a-default-constructor/40475)

<div class="topic-metadata">

**Author:** [@irhum](https://discourse.julialang.org/u/irhum)\
**Replies:** 3\
**Last updated:** [May 30, 2020, 6:56pm UTC](https://discourse.julialang.org/t/create-constructor-for-type-without-a-default-constructor/40475 "2020-05-30T18:56:02Z")

</div>

Hi there, So suppose a function like function model() a=4 b=2 x -\> a\*x+b end then, mymodel = model() seems to be an instantiation of a n implicitly defined struct, and the type itself can be obtained with t…

---

## [Ntuple aggressive specialisation and boxed values](https://discourse.julialang.org/t/ntuple-aggressive-specialisation-and-boxed-values/40450)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 4\
**Last updated:** [May 30, 2020, 5:28pm UTC](https://discourse.julialang.org/t/ntuple-aggressive-specialisation-and-boxed-values/40450 "2020-05-30T17:28:48Z")

</div>

Hi, Further to my questions on the General slack today I decided to do an experiment, pitting an NTuple based kmer type, against the existing BioSequences Mer types which are based on primitive types. Valentin advised …

---

## [Clear variable?](https://discourse.julialang.org/t/clear-variable/39592)

<div class="topic-metadata">

**Author:** [@Manoj\_Gopalkrishnan](https://discourse.julialang.org/u/Manoj_Gopalkrishnan)\
**Replies:** 4\
**Last updated:** [May 30, 2020, 3:39pm UTC](https://discourse.julialang.org/t/clear-variable/39592 "2020-05-30T15:39:41Z")

</div>

I am trying to sample a Turing model with this Gibbs sampler: sampler = Gibbs(PG(200, :toss), NUTS(.65, :a, :b, :θ, :σ, :μ, :temp)) Unfortunately, while making sure some of my code was correct, I have set a, b, \\mu to …

---

## [Accents and greek letters](https://discourse.julialang.org/t/accents-and-greek-letters/37954)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 12\
**Last updated:** [May 30, 2020, 3:16pm UTC](https://discourse.julialang.org/t/accents-and-greek-letters/37954 "2020-05-30T15:16:06Z")

</div>

Julia version: 1.4.1 Kubuntu: 18.04 LTS Hello, As a french-speaking person, I often use accentuated characters e.g., é (e-accute). When I run a simple code like this one: using Plots t(x) = cos(x) u(x) = -sin(x) pl…

---

## [Defining ODEs depending on function's input](https://discourse.julialang.org/t/defining-odes-depending-on-functions-input/40416)

<div class="topic-metadata">

**Author:** [@br500](https://discourse.julialang.org/u/br500)\
**Replies:** 5\
**Last updated:** [May 30, 2020, 3:11pm UTC](https://discourse.julialang.org/t/defining-odes-depending-on-functions-input/40416 "2020-05-30T15:11:02Z")

</div>

I’ve seen an example of solving Lorenz equations using DifferentialEquations: g = @ode\_def LorenzExample begin dx = σ\*(y-x) dy = x\*(ρ-z) - y dz = x\*y - β\*z end σ ρ β u0 = \[1.0;0.0;0.0\] tspan = (0.0,1.0) p = \[10.0…

---

## [TimeSeries Arrays in Julialang](https://discourse.julialang.org/t/timeseries-arrays-in-julialang/40144)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 2\
**Last updated:** [May 30, 2020, 1:33pm UTC](https://discourse.julialang.org/t/timeseries-arrays-in-julialang/40144 "2020-05-30T13:33:04Z")

</div>

I am just starting to develop some time series analysis in Julia, and I was trying to understand which time series array format is the current standard or the most used? I know this is a tough question, but let me try an…

---

## [Parameter substitutions in ModelingToolkit.jl](https://discourse.julialang.org/t/parameter-substitutions-in-modelingtoolkit-jl/34527)

<div class="topic-metadata">

**Author:** [@DR59](https://discourse.julialang.org/u/DR59)\
**Replies:** 8\
**Last updated:** [May 30, 2020, 7:18am UTC](https://discourse.julialang.org/t/parameter-substitutions-in-modelingtoolkit-jl/34527 "2020-05-30T07:18:57Z")

</div>

Hi, I’m getting to grips with ModelingToolkit.jl. Let’s take the ODE building example in the tutorial: @parameters t σ ρ β @variables x(t) y(t) z(t) @derivatives D'~t eqs = \[D(x) ~ σ\*(y-x), D(y) ~ x\*(ρ-z)-y, …

---

## [Help me extend this solution for high dimensional matrices in Julia](https://discourse.julialang.org/t/help-me-extend-this-solution-for-high-dimensional-matrices-in-julia/40459)

<div class="topic-metadata">

**Author:** [@yourboygorja](https://discourse.julialang.org/u/yourboygorja)\
**Replies:** 3\
**Last updated:** [May 30, 2020, 8:36am UTC](https://discourse.julialang.org/t/help-me-extend-this-solution-for-high-dimensional-matrices-in-julia/40459 "2020-05-30T08:36:51Z")

</div>

https://stackoverflow.com/questions/62097898/extend-this-solution-for-high-dimensional-matrices-in-julia

---

## [A call for community supplied Julia Code Examples](https://discourse.julialang.org/t/a-call-for-community-supplied-julia-code-examples/38490)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 10\
**Last updated:** [May 30, 2020, 9:01am UTC](https://discourse.julialang.org/t/a-call-for-community-supplied-julia-code-examples/38490 "2020-05-30T09:01:19Z")

</div>

Hey all, The Julia Language website currently has a “Code Examples” section that is linked on the main page which is designed to show how easy it is to use Julia syntactically. The existing example is fine in my opinion …

---

## [How to switch ODE from DifferentialEquations to OrdinaryDiffEq?](https://discourse.julialang.org/t/how-to-switch-ode-from-differentialequations-to-ordinarydiffeq/40460)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [May 30, 2020, 6:48am UTC](https://discourse.julialang.org/t/how-to-switch-ode-from-differentialequations-to-ordinarydiffeq/40460 "2020-05-30T06:48:10Z")

</div>

Hello, I am using a ChromeBook and I can’t install DifferentialEquations; but I can run OrdinaryDiffEq. I set a function and the solver based on the DifferentialEquations’s syntax but: julia\> prob = ODEProblem(sird!, …

---

## [No method matching zero(::Type{Array{Float64,1}})](https://discourse.julialang.org/t/no-method-matching-zero-type-array-float64-1/40395)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 14\
**Last updated:** [May 30, 2020, 5:17am UTC](https://discourse.julialang.org/t/no-method-matching-zero-type-array-float64-1/40395 "2020-05-30T05:17:50Z")

</div>

I am trying to implement a Household epidemiology model. Below, I provide a minimal working example to demonstrate the error (of course, the example is no longer meant to model the epidemic): using DifferentialEquations…

---

## [BioSimulator.jl](https://discourse.julialang.org/t/biosimulator-jl/40457)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [May 30, 2020, 5:12am UTC](https://discourse.julialang.org/t/biosimulator-jl/40457 "2020-05-30T05:12:21Z")

</div>

BioSimulator.jl does not add properly in Julia 1.4 Here is what I get in Atom. I clearly do not have the skills to fix this. Perhaps somebody already has. (@v1.4) pkg\> add https://github.com/alanderos91/BioSimulator.jl…

---

## [Debugging diffeqpy code, remake not defined](https://discourse.julialang.org/t/debugging-diffeqpy-code-remake-not-defined/40421)

<div class="topic-metadata">

**Author:** [@Abolfazl\_Ziaeemehr](https://discourse.julialang.org/u/Abolfazl_Ziaeemehr)\
**Replies:** 1\
**Last updated:** [May 30, 2020, 5:10am UTC](https://discourse.julialang.org/t/debugging-diffeqpy-code-remake-not-defined/40421 "2020-05-30T05:10:09Z")

</div>

I am going to solve a system of SDE using diffeqpy and use EnsembleProblem. I don’t know why I am getting remake not defined error. The code run properly without EnsembleProblem. So I guess the problem should be in pr…

---

## [Use @eval within a function](https://discourse.julialang.org/t/use-eval-within-a-function/40451)

<div class="topic-metadata">

**Author:** [@Lucas\_Liu](https://discourse.julialang.org/u/Lucas_Liu)\
**Replies:** 4\
**Last updated:** [May 30, 2020, 2:41am UTC](https://discourse.julialang.org/t/use-eval-within-a-function/40451 "2020-05-30T02:41:58Z")

</div>

I am new to metaprograming in Julia. The case is I have many vectors to initialize in a constructor. I came up with this code function MyStruct(n::Int) vecs = \[:x, :y, :z, :p\] for v in vecs @eval $v = Ve…

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

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