# Latest

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

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

**Page:** 1529

---

## [@run macro](https://discourse.julialang.org/t/run-macro/52981)

<div class="topic-metadata">

**Author:** [@Laco\_Kovac](https://discourse.julialang.org/u/Laco_Kovac)\
**Replies:** 2\
**Last updated:** [January 7, 2021, 4:56pm UTC](https://discourse.julialang.org/t/run-macro/52981 "2021-01-07T16:56:06Z")

</div>

I am trying to debug my code in VS Code. Presenter in the video JuliaCon 2020 | Using VS Code for Julia development | David Anthoff uses @run macro. I cannot find it/use it: julia\> @run MyModule.myFunction() ERROR: Lo…

---

## [Included code behaves different than code in place](https://discourse.julialang.org/t/included-code-behaves-different-than-code-in-place/52983)

<div class="topic-metadata">

**Author:** [@GerhardTotschnig](https://discourse.julialang.org/u/GerhardTotschnig)\
**Replies:** 3\
**Last updated:** [January 7, 2021, 4:00pm UTC](https://discourse.julialang.org/t/included-code-behaves-different-than-code-in-place/52983 "2021-01-07T16:00:18Z")

</div>

Included code behaves different than code in place In file test.jl: module test function sumto(n) s = 0 for i = 1:n s = s + i end s end end # module test This works: julia\>include("test.j…

---

## [Wiener process for Lorenz system](https://discourse.julialang.org/t/wiener-process-for-lorenz-system/52995)

<div class="topic-metadata">

**Author:** [@AhmedAlreweny](https://discourse.julialang.org/u/AhmedAlreweny)\
**Replies:** 1\
**Last updated:** [January 7, 2021, 3:40pm UTC](https://discourse.julialang.org/t/wiener-process-for-lorenz-system/52995 "2021-01-07T15:40:24Z")

</div>

I want to solve Lorenz system as a SDE with Wiener process added as noise. I was wondering if this is the correct way to represent this problem ? According to my understanding, the diagonal noise added here has the same …

---

## [\[DiffEqFlux.jl\] DimensionMismatch("array could not be broadcast to match destination")](https://discourse.julialang.org/t/diffeqflux-jl-dimensionmismatch-array-could-not-be-broadcast-to-match-destination/52992)

<div class="topic-metadata">

**Author:** [@vkv](https://discourse.julialang.org/u/vkv)\
**Replies:** 0\
**Last updated:** [January 7, 2021, 2:14pm UTC](https://discourse.julialang.org/t/diffeqflux-jl-dimensionmismatch-array-could-not-be-broadcast-to-match-destination/52992 "2021-01-07T14:14:21Z")

</div>

I’m trying to train a NeuralODE model on the MNIST dataset. When I take the gradient of loss function I get the DimensionMismatch error. using DiffEqFlux, OrdinaryDiffEq, Flux, NNlib, MLDataUtils, Printf using Flux: log…

---

## [Getting Error while creating Documentation using Documenter.jl](https://discourse.julialang.org/t/getting-error-while-creating-documentation-using-documenter-jl/52991)

<div class="topic-metadata">

**Author:** [@Debraj\_Bhal](https://discourse.julialang.org/u/Debraj_Bhal)\
**Replies:** 2\
**Last updated:** [January 7, 2021, 3:20pm UTC](https://discourse.julialang.org/t/getting-error-while-creating-documentation-using-documenter-jl/52991 "2021-01-07T15:20:37Z")

</div>

I was using the julia documentor.jl package as mentioned in documentation to create an empty documentation. But when i run the command: julia --color=yes make.jl I get the following error : $ julia --color=yes make.j…

---

## [Import functions using include in Pluto](https://discourse.julialang.org/t/import-functions-using-include-in-pluto/52993)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 0\
**Last updated:** [January 7, 2021, 2:49pm UTC](https://discourse.julialang.org/t/import-functions-using-include-in-pluto/52993 "2021-01-07T14:49:18Z")

</div>

My current workflow with Julia involves having one file where I define a bunch of functions, and then I write scripts which look like this: using Revise includet(joinpath(@\_\_DIR\_\_, "util.jl")) # and then I do stuff I’v…

---

## [Adding rows to a matrix dynamically](https://discourse.julialang.org/t/adding-rows-to-a-matrix-dynamically/52984)

<div class="topic-metadata">

**Author:** [@Rajesh-Nakka](https://discourse.julialang.org/u/Rajesh-Nakka)\
**Replies:** 4\
**Last updated:** [January 7, 2021, 2:00pm UTC](https://discourse.julialang.org/t/adding-rows-to-a-matrix-dynamically/52984 "2021-01-07T14:00:08Z")

</div>

I am trying to get:= Initialize a matrix of Float64 then adding rows to it dynamically in a loop! I tried with push! and append! but not able to find the right way to do it. I am currently using a not so efficient metho…

---

## [Getting Started For GSoC](https://discourse.julialang.org/t/getting-started-for-gsoc/52865)

<div class="topic-metadata">

**Author:** [@tantheta01](https://discourse.julialang.org/u/tantheta01)\
**Replies:** 4\
**Last updated:** [January 7, 2021, 1:38pm UTC](https://discourse.julialang.org/t/getting-started-for-gsoc/52865 "2021-01-07T13:38:58Z")

</div>

Hello Everyone, I am an undergraduate student in the Computer Science Department, with interests in Mathematics, Statistics and Deep Learning and wish to contribute to JULIA in GSoC this year, but I am not sure of how t…

---

## [Get GLMakie running with a Intel graphic card on Manjaro Linux](https://discourse.julialang.org/t/get-glmakie-running-with-a-intel-graphic-card-on-manjaro-linux/52986)

<div class="topic-metadata">

**Author:** [@scheidan](https://discourse.julialang.org/u/scheidan)\
**Replies:** 0\
**Last updated:** [January 7, 2021, 1:14pm UTC](https://discourse.julialang.org/t/get-glmakie-running-with-a-intel-graphic-card-on-manjaro-linux/52986 "2021-01-07T13:14:28Z")

</div>

Hi all, I wanted to try the new (really cool!) Makie release but I had trouble to get GLMakie to build on Manjaro Linux after an update: ┌ Error: Error building \`GLMakie\`: │ libGL error: MESA-LOADER: failed to open ir…

---

## [Gauss-Legendre Quadrature performance](https://discourse.julialang.org/t/gauss-legendre-quadrature-performance/52958)

<div class="topic-metadata">

**Author:** [@Nellatur](https://discourse.julialang.org/u/Nellatur)\
**Replies:** 5\
**Last updated:** [January 7, 2021, 12:26pm UTC](https://discourse.julialang.org/t/gauss-legendre-quadrature-performance/52958 "2021-01-07T12:26:34Z")

</div>

Hi, I found a benchmark set with Julia and other languages at https://modelingguru.nasa.gov/docs/DOC-2676 It seems that the Gauss-Legendre Quadrature case Julia is slower than Python :frowning: I also found GitHub - …

---

## [Demoting BigInt to Int64](https://discourse.julialang.org/t/demoting-bigint-to-int64/52968)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 6\
**Last updated:** [January 7, 2021, 9:06am UTC](https://discourse.julialang.org/t/demoting-bigint-to-int64/52968 "2021-01-07T09:06:41Z")

</div>

I need to read some numbers from a file and then do things with them. In theory I may get numbers that are bigger than 2^{128} so I parse them as BigInt. However, usually they are smaller than 2^{63} so Int64 is enough. …

---

## [Add and kill one new agent every time step](https://discourse.julialang.org/t/add-and-kill-one-new-agent-every-time-step/52974)

<div class="topic-metadata">

**Author:** [@SDA](https://discourse.julialang.org/u/SDA)\
**Replies:** 2\
**Last updated:** [January 7, 2021, 8:46am UTC](https://discourse.julialang.org/t/add-and-kill-one-new-agent-every-time-step/52974 "2021-01-07T08:46:11Z")

</div>

I am playing with the Agents.jl Flocking example here (Flocking model · Agents.jl). I would like to add a new agent and kill the oldest agent every time step. I can kill an agent by including age::Int as a property of…

---

## [Quadratic Programming with CPLEX and JuMP](https://discourse.julialang.org/t/quadratic-programming-with-cplex-and-jump/52950)

<div class="topic-metadata">

**Author:** [@ahmadreza-marandi](https://discourse.julialang.org/u/ahmadreza-marandi)\
**Replies:** 4\
**Last updated:** [January 7, 2021, 7:35am UTC](https://discourse.julialang.org/t/quadratic-programming-with-cplex-and-jump/52950 "2021-01-07T07:35:22Z")

</div>

It has been a while that CPLEX can solve nonconvex quadratic programming problems. But I am wondering if that has been considered in JuMP. The reason I am asking is that I coded the following: Q=\[-50.0 0.0 0.0 …

---

## [Deploying username.github.io with Franklin.jl](https://discourse.julialang.org/t/deploying-username-github-io-with-franklin-jl/52966)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [January 7, 2021, 6:09am UTC](https://discourse.julialang.org/t/deploying-username-github-io-with-franklin-jl/52966 "2021-01-07T06:09:19Z")

</div>

I’m trying to publish a static webpage to cadojo.github.io with Franklin.jl (my username is cadojo on GitHub). When I use Franklin.serve(), the webpage loads as expected: However, when I check the version published …

---

## [Parametrically-constrained arguments not working?](https://discourse.julialang.org/t/parametrically-constrained-arguments-not-working/52975)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 3\
**Last updated:** [January 7, 2021, 5:59am UTC](https://discourse.julialang.org/t/parametrically-constrained-arguments-not-working/52975 "2021-01-07T05:59:23Z")

</div>

The module testModule (below) defines method iterlocal that calls localindices. testModule uses DistributedArrays and SharedArrays, which impose mutually-exclusive parametric constraints on localindices so there is no a…

---

## [Relaxing binary variable](https://discourse.julialang.org/t/relaxing-binary-variable/52965)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 4\
**Last updated:** [January 7, 2021, 12:22am UTC](https://discourse.julialang.org/t/relaxing-binary-variable/52965 "2021-01-07T00:22:52Z")

</div>

In a model, I want to relax one binary variable. relax\_integrality(model) relaxes all variables of the model, so I think the right way to go will be to use unset\_binary as shown in the example below. model = Model() @v…

---

## ["Bounds Error" when trying to solve an ODE system](https://discourse.julialang.org/t/bounds-error-when-trying-to-solve-an-ode-system/52537)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 6\
**Last updated:** [January 6, 2021, 11:48pm UTC](https://discourse.julialang.org/t/bounds-error-when-trying-to-solve-an-ode-system/52537 "2021-01-06T23:48:04Z")

</div>

I’m trying to solve an ODE system in Julia for the first time and I’ve encountered an error that I don’t understand. I’m just trying to solve a simple SEIR model with some arbitrary parameter values and initial condition…

---

## [Cannot add any packages under Julia 1.5.3 (Windows 10)](https://discourse.julialang.org/t/cannot-add-any-packages-under-julia-1-5-3-windows-10/52961)

<div class="topic-metadata">

**Author:** [@neophytedave](https://discourse.julialang.org/u/neophytedave)\
**Replies:** 6\
**Last updated:** [January 6, 2021, 11:34pm UTC](https://discourse.julialang.org/t/cannot-add-any-packages-under-julia-1-5-3-windows-10/52961 "2021-01-06T23:34:21Z")

</div>

I am using Julia 1.5.3 under Windows 10, and cannot add any packages. The problem is not a misspelt package name. I have been able to add packages with all previous versions. I notice that, when attempting to add packa…

---

## [\[ANN\] Gridap.jl 0.15 comes with major enhancements!](https://discourse.julialang.org/t/ann-gridap-jl-0-15-comes-with-major-enhancements/51971)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 7\
**Last updated:** [January 6, 2021, 10:41pm UTC](https://discourse.julialang.org/t/ann-gridap-jl-0-15-comes-with-major-enhancements/51971 "2021-01-06T22:41:06Z")

</div>

After months of work, the Gridap developers are happy to announce the Gridap v0.15 release :rocket:! This new version comes with major improvements in the user API (and also in the library internals). The most exciting …

---

## [How to reference new variables in a combine for dataframes?](https://discourse.julialang.org/t/how-to-reference-new-variables-in-a-combine-for-dataframes/52851)

<div class="topic-metadata">

**Author:** [@bdeonovic](https://discourse.julialang.org/u/bdeonovic)\
**Replies:** 4\
**Last updated:** [January 6, 2021, 8:13pm UTC](https://discourse.julialang.org/t/how-to-reference-new-variables-in-a-combine-for-dataframes/52851 "2021-01-06T20:13:48Z")

</div>

Posted this on slack, but I think I’ll move over to using discourse more (I’ll post a cross link) when doing split-apply-combine with a DataFrame is there anyway for the apply transformations to reference previously cal…

---

## [Tensor contration efficiency](https://discourse.julialang.org/t/tensor-contration-efficiency/52897)

<div class="topic-metadata">

**Author:** [@Nellatur](https://discourse.julialang.org/u/Nellatur)\
**Replies:** 4\
**Last updated:** [January 6, 2021, 7:35pm UTC](https://discourse.julialang.org/t/tensor-contration-efficiency/52897 "2021-01-06T19:35:21Z")

</div>

I saw some benchmark between NumPy and BLAS from C++ regarding matrix-matrix multiplication (a special case of tensor contraction) https://stackoverflow.com/questions/7596612/benchmarking-python-vs-c-using-blas-and-nump…

---

## [Flux usage: Sending callback function to CPU on a separate thread](https://discourse.julialang.org/t/flux-usage-sending-callback-function-to-cpu-on-a-separate-thread/52925)

<div class="topic-metadata">

**Author:** [@groovyda](https://discourse.julialang.org/u/groovyda)\
**Replies:** 2\
**Last updated:** [January 6, 2021, 5:26pm UTC](https://discourse.julialang.org/t/flux-usage-sending-callback-function-to-cpu-on-a-separate-thread/52925 "2021-01-06T17:26:07Z")

</div>

Hi there I was trying to run the Vision vgg16 model in the model-zoo in Flux. https://github.com/FluxML/model-zoo/blob/master/vision/cifar10/cifar10.jl I found that the performance on the GPU was quite slow - mainly du…

---

## [\[ANN\] Latin hypercube on MLJTuning](https://discourse.julialang.org/t/ann-latin-hypercube-on-mljtuning/52954)

<div class="topic-metadata">

**Author:** [@ludoro](https://discourse.julialang.org/u/ludoro)\
**Replies:** 0\
**Last updated:** [January 6, 2021, 6:05pm UTC](https://discourse.julialang.org/t/ann-latin-hypercube-on-mljtuning/52954 "2021-01-06T18:05:49Z")

</div>

Hello everyone! Just a quick announcement. MLJTuning now has a new tuning strategy: Latin Hypercube.:tada: It will be live when https://github.com/JuliaRegistries/General/pull/27394 gets merged. You can take a look at th…

---

## [Julia called from Matlab](https://discourse.julialang.org/t/julia-called-from-matlab/52952)

<div class="topic-metadata">

**Author:** [@guigomes](https://discourse.julialang.org/u/guigomes)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 5:48pm UTC](https://discourse.julialang.org/t/julia-called-from-matlab/52952 "2021-01-06T17:48:57Z")

</div>

How to interact Julia with Matlab?

---

## [How to define an optimizer package?](https://discourse.julialang.org/t/how-to-define-an-optimizer-package/51534)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 6\
**Last updated:** [January 6, 2021, 5:38pm UTC](https://discourse.julialang.org/t/how-to-define-an-optimizer-package/51534 "2021-01-06T17:38:32Z")

</div>

Whenever I try to compile the solver declaration the following error appears using JuMP, JuMPeR, Cbc, MathOptInterface ModelD = Model(with\_optimizer(Cbc.Optimizer)) Error message: UndefVarError: with\_optimizer not defin…

---

## [The quasi-best MaxN function](https://discourse.julialang.org/t/the-quasi-best-maxn-function/52813)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 12\
**Last updated:** [January 6, 2021, 5:26pm UTC](https://discourse.julialang.org/t/the-quasi-best-maxn-function/52813 "2021-01-06T17:26:31Z")

</div>

I have not found among the library functions a function that finds the first N maximum values of a list. I tried to define some functions and make performance comparisons. I found two kinds of problems: one was to find a…

---

## [How to create a Flux model from parameter vector?](https://discourse.julialang.org/t/how-to-create-a-flux-model-from-parameter-vector/52928)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 3\
**Last updated:** [January 6, 2021, 5:18pm UTC](https://discourse.julialang.org/t/how-to-create-a-flux-model-from-parameter-vector/52928 "2021-01-06T17:18:41Z")

</div>

Hi, I have a parameter vector and shape array as below: shape =\[((2,5),2),((2,2),2)\] #shape of layers : weights and bias w = rand(18) #weights and bias together. In this case elements of w are divided as below: Fir…

---

## [\[ANN\] Quicktype -- generate JSON3 structs from json samples (WIP)](https://discourse.julialang.org/t/ann-quicktype-generate-json3-structs-from-json-samples-wip/52948)

<div class="topic-metadata">

**Author:** [@kskyten](https://discourse.julialang.org/u/kskyten)\
**Replies:** 0\
**Last updated:** [January 6, 2021, 4:26pm UTC](https://discourse.julialang.org/t/ann-quicktype-generate-json3-structs-from-json-samples-wip/52948 "2021-01-06T16:26:18Z")

</div>

Quicktype is a neat program that infers schemas from json samples and generates code in various different languages to read the json into native objects. I hacked together basic support for Julia in Quicktype. It should…

---

## [DifferentialEquations.jl: ODE returns "retcode: success" but interpolation gives "NaN"](https://discourse.julialang.org/t/differentialequations-jl-ode-returns-retcode-success-but-interpolation-gives-nan/52942)

<div class="topic-metadata">

**Author:** [@Paio](https://discourse.julialang.org/u/Paio)\
**Replies:** 2\
**Last updated:** [January 6, 2021, 3:55pm UTC](https://discourse.julialang.org/t/differentialequations-jl-ode-returns-retcode-success-but-interpolation-gives-nan/52942 "2021-01-06T15:55:47Z")

</div>

Hello Julia community, I am currently going through a toy-problem trying to solve the heat PDE using the FFT (I’m following this series by Steve Brunton Solving PDEs with the FFT \[Matlab\] - YouTube). This is the code I …

---

## [Suggestions to wrap the inputs for a Diff Equation solver (types and structures)](https://discourse.julialang.org/t/suggestions-to-wrap-the-inputs-for-a-diff-equation-solver-types-and-structures/52929)

<div class="topic-metadata">

**Author:** [@tiago](https://discourse.julialang.org/u/tiago)\
**Replies:** 14\
**Last updated:** [January 6, 2021, 3:42pm UTC](https://discourse.julialang.org/t/suggestions-to-wrap-the-inputs-for-a-diff-equation-solver-types-and-structures/52929 "2021-01-06T15:42:01Z")

</div>

Hello, I’m currently developing a package of a numerical solver to a certain kind of Stochastic PDE (Stochastic Neural Field Equations) in 1 and 2-dimensional space in a DifferentialEquations.jl fashion, i.e. with the us…

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

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