# Latest

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

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

**Page:** 1623

---

## [Minimizing a numerical function](https://discourse.julialang.org/t/minimizing-a-numerical-function/47139)

<div class="topic-metadata">

**Author:** [@DShiu](https://discourse.julialang.org/u/DShiu)\
**Replies:** 8\
**Last updated:** [September 23, 2020, 5:30pm UTC](https://discourse.julialang.org/t/minimizing-a-numerical-function/47139 "2020-09-23T17:30:41Z")

</div>

I am using Optim.jl to minimize a function: optimize(δ-\> nls\_obj(δ, theta2, y, c, d, p0, B), 0, LBFGS(), Optim.Options(g\_tol = 1e-2, iterations=100\_000, show\_trace=true, show\_every=50)) Given other input values, functi…

---

## [Long start-up times for Julia REPL in VS Code](https://discourse.julialang.org/t/long-start-up-times-for-julia-repl-in-vs-code/43796)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 10\
**Last updated:** [September 23, 2020, 4:25pm UTC](https://discourse.julialang.org/t/long-start-up-times-for-julia-repl-in-vs-code/43796 "2020-09-23T16:25:07Z")

</div>

It takes VS Code about 10 seconds to go from me clicking on “Julia: Start REPL” to the REPL being up and running. In comparison, starting Julia in a terminal takes only one second. Where does this difference come from? …

---

## [Numerical integration for array](https://discourse.julialang.org/t/numerical-integration-for-array/47043)

<div class="topic-metadata">

**Author:** [@DShiu](https://discourse.julialang.org/u/DShiu)\
**Replies:** 17\
**Last updated:** [September 23, 2020, 4:16pm UTC](https://discourse.julialang.org/t/numerical-integration-for-array/47043 "2020-09-23T16:16:31Z")

</div>

I have a function f(x1, x2) that returns an array. I need to compute a definite integral for each element of the returned array over a space of (x1, x2). I am considering writing a Monte Carlo integration inside functio…

---

## [Why Combinatorics package doesn't warn of overflow?](https://discourse.julialang.org/t/why-combinatorics-package-doesnt-warn-of-overflow/47136)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [September 23, 2020, 2:54pm UTC](https://discourse.julialang.org/t/why-combinatorics-package-doesnt-warn-of-overflow/47136 "2020-09-23T14:54:20Z")

</div>

This is dangerous, as the following code doesn’t emit any warning, just give very different results (I assume due to overflowing ???) using Combinatorics # 4 players get exactly one ace each: sol1 = 4 \* 3 \*2 \* multinom…

---

## [Dictionaries with abstract types for keys/values as function arguments](https://discourse.julialang.org/t/dictionaries-with-abstract-types-for-keys-values-as-function-arguments/47063)

<div class="topic-metadata">

**Author:** [@MJHutchinson](https://discourse.julialang.org/u/MJHutchinson)\
**Replies:** 7\
**Last updated:** [September 23, 2020, 2:43pm UTC](https://discourse.julialang.org/t/dictionaries-with-abstract-types-for-keys-values-as-function-arguments/47063 "2020-09-23T14:43:53Z")

</div>

I am currently writing a library that for a number of applications needs to take a dictionary of matrices as arguments. In order to make the functions reasonably general, I wanted to make the key/value types in the funct…

---

## [MacOS Plots install problem with FFMPEG](https://discourse.julialang.org/t/macos-plots-install-problem-with-ffmpeg/45729)

<div class="topic-metadata">

**Author:** [@alunap](https://discourse.julialang.org/u/alunap)\
**Replies:** 4\
**Last updated:** [September 23, 2020, 1:58pm UTC](https://discourse.julialang.org/t/macos-plots-install-problem-with-ffmpeg/45729 "2020-09-23T13:58:31Z")

</div>

I see that other people had issues similar to mine last year with installing Plots.jl due to issues with FFMPEG, but it doesn’t look like the cause is the same. I’m just starting Julia, looking to use it instead of Pytho…

---

## [Open new window for each plot](https://discourse.julialang.org/t/open-new-window-for-each-plot/47130)

<div class="topic-metadata">

**Author:** [@pascal-mueller](https://discourse.julialang.org/u/pascal-mueller)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 1:51pm UTC](https://discourse.julialang.org/t/open-new-window-for-each-plot/47130 "2020-09-23T13:51:58Z")

</div>

Hi, how can I make sure I get a new window for each plot when using the Plots package? E.g. if we have p1 = getPlotOne() p2 = getPlotTwo() How do I now get two separate windows?

---

## [Pretty macroexpand in Base?](https://discourse.julialang.org/t/pretty-macroexpand-in-base/47132)

<div class="topic-metadata">

**Author:** [@johnmyleswhite](https://discourse.julialang.org/u/johnmyleswhite)\
**Replies:** 6\
**Last updated:** [September 23, 2020, 1:22pm UTC](https://discourse.julialang.org/t/pretty-macroexpand-in-base/47132 "2020-09-23T13:22:59Z")

</div>

Whenever I talk to someone about macros, I always suggest they start by looking at the expansion of the macro. But the default expansion isn’t super readable because of LineNumberNode’s, gensyms, etc. So I almost always…

---

## [Any good functions to show the structure of an object like \`Juno/Atom.strucutre\` but lighter weight?](https://discourse.julialang.org/t/any-good-functions-to-show-the-structure-of-an-object-like-juno-atom-strucutre-but-lighter-weight/47133)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 12:58pm UTC](https://discourse.julialang.org/t/any-good-functions-to-show-the-structure-of-an-object-like-juno-atom-strucutre-but-lighter-weight/47133 "2020-09-23T12:58:40Z")

</div>

I tried including Juno in my list of packages but it makes start up so slow! Like 50s. But I only want to use the structure function. I am tempted to rip out just the structure function and make it into another pacakge. …

---

## [Resources for evangelism](https://discourse.julialang.org/t/resources-for-evangelism/47034)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 15\
**Last updated:** [September 23, 2020, 12:56pm UTC](https://discourse.julialang.org/t/resources-for-evangelism/47034 "2020-09-23T12:56:34Z")

</div>

I’m looking for resources for introducing Julia to people as a possible solution to challenges experienced in a python-based scientific-computing project. The challenges arise from inefficiency and lack of composability …

---

## [Experimental reproducibility: julia vs the rest](https://discourse.julialang.org/t/experimental-reproducibility-julia-vs-the-rest/46769)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 13\
**Last updated:** [September 23, 2020, 12:40pm UTC](https://discourse.julialang.org/t/experimental-reproducibility-julia-vs-the-rest/46769 "2020-09-23T12:40:27Z")

</div>

One of the things I find very appealing about julia is the ability to provide, through {Project,Manifest}.toml files, the exact environment some code was run in so enabling somebody else to reproduce the results generate…

---

## [Soft vs Hard Scopes, Macros, and \`@everywhere\`](https://discourse.julialang.org/t/soft-vs-hard-scopes-macros-and-everywhere/47124)

<div class="topic-metadata">

**Author:** [@chisquared](https://discourse.julialang.org/u/chisquared)\
**Replies:** 3\
**Last updated:** [September 23, 2020, 12:23pm UTC](https://discourse.julialang.org/t/soft-vs-hard-scopes-macros-and-everywhere/47124 "2020-09-23T12:23:44Z")

</div>

I’m reading the section on the manual regarding the scope of variables: https://docs.julialang.org/en/v1.5/manual/variables-and-scoping/ It says that macros introduce a hard local scope. There is some ambiguity here wh…

---

## [Availabilty of Hypatia.jl solver](https://discourse.julialang.org/t/availabilty-of-hypatia-jl-solver/47131)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 12:14pm UTC](https://discourse.julialang.org/t/availabilty-of-hypatia-jl-solver/47131 "2020-09-23T12:14:01Z")

</div>

I was very excited to learned about the Hypatia.jl solver from the JuliaCon keynote of Juan Pablo Vielma and this JuMP-dev 2019 workshop from Chris Coey. However I haven’t found any repository or further information on i…

---

## [\[ANN\] CuCountMap.jl - CUDA.jl-enabled faster \`StatsBase.countmap\` for small types](https://discourse.julialang.org/t/ann-cucountmap-jl-cuda-jl-enabled-faster-statsbase-countmap-for-small-types/47125)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [September 23, 2020, 9:45am UTC](https://discourse.julialang.org/t/ann-cucountmap-jl-cuda-jl-enabled-faster-statsbase-countmap-for-small-types/47125 "2020-09-23T09:45:30Z")

</div>

See GitHub - xiaodaigh/CuCountMap.jl: Fast \`StatsBase.countmap\` for small types on the GPU via CUDA.jl I can get about 3x the performance for small types on the GPU via CUDA.jl vs a purely CPU implementation. This is in…

---

## [Help eliminating allocations in a call to a Fortran subroutine](https://discourse.julialang.org/t/help-eliminating-allocations-in-a-call-to-a-fortran-subroutine/47078)

<div class="topic-metadata">

**Author:** [@zyth0s](https://discourse.julialang.org/u/zyth0s)\
**Replies:** 2\
**Last updated:** [September 22, 2020, 5:09pm UTC](https://discourse.julialang.org/t/help-eliminating-allocations-in-a-call-to-a-fortran-subroutine/47078 "2020-09-22T17:09:17Z")

</div>

I would like to ask you for help to improve a call to a critical routine written in Fortran. A minimal version of the library is the following Fortran library sourcemodule fortran\_lib contains subroutine density\_gra…

---

## [Show axis border when legend is outside plot](https://discourse.julialang.org/t/show-axis-border-when-legend-is-outside-plot/46970)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 9:38am UTC](https://discourse.julialang.org/t/show-axis-border-when-legend-is-outside-plot/46970 "2020-09-23T09:38:12Z")

</div>

Hi all- Is it possible to show the right y-axis border when placing the legend outside the plot? Thanks. using Plots pyplot() plot(rand(10), legend = :outertopright)

---

## [Sluggish Julia start on Win 10. Is it just me? \[video\] to show](https://discourse.julialang.org/t/sluggish-julia-start-on-win-10-is-it-just-me-video-to-show/47121)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [September 23, 2020, 9:22am UTC](https://discourse.julialang.org/t/sluggish-julia-start-on-win-10-is-it-just-me-video-to-show/47121 "2020-09-23T09:22:41Z")

</div>

It takes me almost 1 minute to get working!

---

## [NHS-X Jobs UK Data Scientist / Engineer](https://discourse.julialang.org/t/nhs-x-jobs-uk-data-scientist-engineer/47123)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [September 23, 2020, 9:18am UTC](https://discourse.julialang.org/t/nhs-x-jobs-uk-data-scientist-engineer/47123 "2020-09-23T09:18:27Z")

</div>

Does not specifically mention Julia https://www.england.nhs.uk/about/working-for/#!/job/UK/West\_Yorkshire/London/NHS\_England\_NHS\_Improvement/Senior\_AI\_Lab\_Data\_Scientist\_NHSX/Senior\_AI\_Lab\_Data\_Scientist\_NHSX-v2633879?\_…

---

## [DataFrames Complexity](https://discourse.julialang.org/t/dataframes-complexity/47069)

<div class="topic-metadata">

**Author:** [@NafQan](https://discourse.julialang.org/u/NafQan)\
**Replies:** 5\
**Last updated:** [September 23, 2020, 9:06am UTC](https://discourse.julialang.org/t/dataframes-complexity/47069 "2020-09-23T09:06:18Z")

</div>

Sorry for being blunt, but a question that I am having for a while now and is in someway bothering me: Is there anything that DataFrames.jl does which can’t be done with arrays and matrices in a more efficient, less com…

---

## [Euro HPC in Healthcare](https://discourse.julialang.org/t/euro-hpc-in-healthcare/47122)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [September 23, 2020, 8:56am UTC](https://discourse.julialang.org/t/euro-hpc-in-healthcare/47122 "2020-09-23T08:56:16Z")

</div>

Live sessions here https://www.youtube.com/c/DigitalSingleMarketEU/videos Recordings:

---

## [Package Pkg not found in current path AppVeyor julia Nightly #2032](https://discourse.julialang.org/t/package-pkg-not-found-in-current-path-appveyor-julia-nightly-2032/47118)

<div class="topic-metadata">

**Author:** [@Saer\_Samanipour1](https://discourse.julialang.org/u/Saer_Samanipour1)\
**Replies:** 0\
**Last updated:** [September 23, 2020, 7:37am UTC](https://discourse.julialang.org/t/package-pkg-not-found-in-current-path-appveyor-julia-nightly-2032/47118 "2020-09-23T07:37:09Z")

</div>

Hi, When I test my code via CI services such as AppVeyor for julia Nightly I get the below error. Would appreciate any help there. Cheers, Saer code using CompCreate using Test using JLD using CSV using DataFra…

---

## [Concurrency violation on interplay between Distributed and Base.Threads](https://discourse.julialang.org/t/concurrency-violation-on-interplay-between-distributed-and-base-threads/47080)

<div class="topic-metadata">

**Author:** [@jonas-schulze](https://discourse.julialang.org/u/jonas-schulze)\
**Replies:** 4\
**Last updated:** [September 23, 2020, 7:24am UTC](https://discourse.julialang.org/t/concurrency-violation-on-interplay-between-distributed-and-base-threads/47080 "2020-09-23T07:24:03Z")

</div>

I’m working on a distributed pipeline algorithm that uses several stages per worker process. IIRC tasks cannot hop between threads once they’ve been scheduled. Since I want my stages to potentially run in parallel, I tri…

---

## [Data Centric Programming](https://discourse.julialang.org/t/data-centric-programming/47108)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [September 23, 2020, 3:41am UTC](https://discourse.julialang.org/t/data-centric-programming/47108 "2020-09-23T03:41:12Z")

</div>

I just heard of this topic, Any comments from the Julia community please?

---

## [How to obtain a Julia 1.4.1 kernel in Jupyter on Windows 10?](https://discourse.julialang.org/t/how-to-obtain-a-julia-1-4-1-kernel-in-jupyter-on-windows-10/47106)

<div class="topic-metadata">

**Author:** [@amca01](https://discourse.julialang.org/u/amca01)\
**Replies:** 2\
**Last updated:** [September 23, 2020, 2:29am UTC](https://discourse.julialang.org/t/how-to-obtain-a-julia-1-4-1-kernel-in-jupyter-on-windows-10/47106 "2020-09-23T02:29:34Z")

</div>

Hello, I have Julia 1.3.0 available as a kernel in Jupyter Lab, and I’ve installed the IJulia package in my installation of Julia 1.4.1. But when I open Jupyter Lab, there is no 1.4.1. kernel there. I can’t remember b…

---

## [Stable hashing across Julia versions](https://discourse.julialang.org/t/stable-hashing-across-julia-versions/44423)

<div class="topic-metadata">

**Author:** [@grero](https://discourse.julialang.org/u/grero)\
**Replies:** 7\
**Last updated:** [September 23, 2020, 2:22am UTC](https://discourse.julialang.org/t/stable-hashing-across-julia-versions/44423 "2020-09-23T02:22:57Z")

</div>

Did something change with respect to hashing since 1.4.2? I have code that checks whether data have already been computed by checking a hash of the arguments used to compute the data, and I appear to be getting different…

---

## [Current state of PopGen.jl](https://discourse.julialang.org/t/current-state-of-popgen-jl/41616)

<div class="topic-metadata">

**Author:** [@pdimens](https://discourse.julialang.org/u/pdimens)\
**Replies:** 18\
**Last updated:** [September 23, 2020, 12:41am UTC](https://discourse.julialang.org/t/current-state-of-popgen-jl/41616 "2020-09-23T00:41:48Z")

</div>

Hello all, For the past (I honestly don’t know how many) months, I’ve been writing and rewriting my fork of PopGen.jl (found here). The vast majority of the work involved was establishing a data structure and a million…

---

## [Replicating Ruby's dig() in Julia](https://discourse.julialang.org/t/replicating-rubys-dig-in-julia/20551)

<div class="topic-metadata">

**Author:** [@Amval](https://discourse.julialang.org/u/Amval)\
**Replies:** 6\
**Last updated:** [September 23, 2020, 12:33am UTC](https://discourse.julialang.org/t/replicating-rubys-dig-in-julia/20551 "2020-09-23T00:33:44Z")

</div>

Hello, in Ruby there’s a method useful for navigating nested dictionaries called dig() nested = Dict( :a =\> Dict( :b =\> "b", :c =\> Dict( :d =\> "d" ) ) ) dig(nested, :a, :b) …

---

## [Windows 10: Package operations slow](https://discourse.julialang.org/t/windows-10-package-operations-slow/46355)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 15\
**Last updated:** [September 22, 2020, 11:33pm UTC](https://discourse.julialang.org/t/windows-10-package-operations-slow/46355 "2020-09-22T23:33:53Z")

</div>

Erase .julia. Activate and instantiate an environment. Windows 10:126 seconds WSL2: 13 seconds Is there a solution?

---

## [Module with state - how to implement?](https://discourse.julialang.org/t/module-with-state-how-to-implement/47092)

<div class="topic-metadata">

**Author:** [@freeman](https://discourse.julialang.org/u/freeman)\
**Replies:** 15\
**Last updated:** [September 22, 2020, 9:29pm UTC](https://discourse.julialang.org/t/module-with-state-how-to-implement/47092 "2020-09-22T21:29:58Z")

</div>

I would like to have a module with state: when I’m working in the repl, I load the module and its state is “empty”; as I use the module’s constructors to instantiate variables of a certain type defined in that module, th…

---

## [Problem with CPLEX lazy callback and JuMP](https://discourse.julialang.org/t/problem-with-cplex-lazy-callback-and-jump/47090)

<div class="topic-metadata">

**Author:** [@dragond4](https://discourse.julialang.org/u/dragond4)\
**Replies:** 2\
**Last updated:** [September 22, 2020, 8:59pm UTC](https://discourse.julialang.org/t/problem-with-cplex-lazy-callback-and-jump/47090 "2020-09-22T20:59:21Z")

</div>

Hi! When trying to use lazy callbacks in JuMP I get the following error if CPLEX is used as solver: ERROR: LoadError: TypeError: in typeassert, expected Tuple{CPLEX.Model,Function}, got a value of type Tuple{UInt64,In…

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

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