# Latest

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

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

**Page:** 1938

---

## [Vectorize and parallelize wsample function](https://discourse.julialang.org/t/vectorize-and-parallelize-wsample-function/27720)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 5\
**Last updated:** [August 21, 2019, 10:05am UTC](https://discourse.julialang.org/t/vectorize-and-parallelize-wsample-function/27720 "2019-08-21T10:05:17Z")

</div>

Hey everyone, I have a function that in theory should be fully parallelizable as it is independent of the previous input. In the example below i just fill a vector with categorically distributed random variables: using…

---

## [Is there a function \`hasspecialization\`?](https://discourse.julialang.org/t/is-there-a-function-hasspecialization/27790)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 8:49am UTC](https://discourse.julialang.org/t/is-there-a-function-hasspecialization/27790 "2019-08-21T08:49:43Z")

</div>

Is there a strict version of hasmethod which only gives true if there is a specialized method with precisely the types I provide in the Tuple? julia\> f(x::Any) = "any" f (generic function with 1 method) julia\> f(x::Int…

---

## [Updated to Julia1.2 Pkg status empty and problems adding Plots](https://discourse.julialang.org/t/updated-to-julia1-2-pkg-status-empty-and-problems-adding-plots/27782)

<div class="topic-metadata">

**Author:** [@thunder-road](https://discourse.julialang.org/u/thunder-road)\
**Replies:** 7\
**Last updated:** [August 21, 2019, 7:59am UTC](https://discourse.julialang.org/t/updated-to-julia1-2-pkg-status-empty-and-problems-adding-plots/27782 "2019-08-21T07:59:39Z")

</div>

Hi This is my first foray back into using Julia since about a year and had fun playing with DifferentialEquationsExamples in JupyterLab last night using Julia 1.1.1 Just now I updated to Julia1.2 using brew cask upgrad…

---

## [World age problem](https://discourse.julialang.org/t/world-age-problem/27759)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 20\
**Last updated:** [August 21, 2019, 7:55am UTC](https://discourse.julialang.org/t/world-age-problem/27759 "2019-08-21T07:55:30Z")

</div>

In the REPL, the following code works: julia\> func = Meta.parse("x-\>x^2 + 2x - 1") :(x-\>begin #= none:1 =# (x ^ 2 + 2x) - 1 end) julia\> map(eval(func), \[1,3,-1\]) 3-element Array{Int64,1}: 2 …

---

## [Language Server is not launching at all](https://discourse.julialang.org/t/language-server-is-not-launching-at-all/27731)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 7:51am UTC](https://discourse.julialang.org/t/language-server-is-not-launching-at-all/27731 "2019-08-21T07:51:12Z")

</div>

Language server does not seem to be starting with the latest extension. I am on Julia 1.0.3 with extension version 0.12.1. For example if I try to select a code block I get Select code block only works once the Julia L…

---

## [FemtoCleaner.jl needs help for updating to Julia 1.x syntax/features](https://discourse.julialang.org/t/femtocleaner-jl-needs-help-for-updating-to-julia-1-x-syntax-features/27787)

<div class="topic-metadata">

**Author:** [@XVilka](https://discourse.julialang.org/u/XVilka)\
**Replies:** 0\
**Last updated:** [August 21, 2019, 5:05am UTC](https://discourse.julialang.org/t/femtocleaner-jl-needs-help-for-updating-to-julia-1-x-syntax-features/27787 "2019-08-21T05:05:05Z")

</div>

Overall the project seems abandoned - no updates for a year, PRs are not getting merged and update to Julia 1.x needs your help. See more information at the Issues and Pull Requests repository pages. Would be nice if mai…

---

## [Inserting into sqlite DB en masse?](https://discourse.julialang.org/t/inserting-into-sqlite-db-en-masse/27777)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 4:08am UTC](https://discourse.julialang.org/t/inserting-into-sqlite-db-en-masse/27777 "2019-08-21T04:08:23Z")

</div>

I’m currently entering rows one-at-a time using Stmt,bind!,execute! and the process is quite slow, even though there are only 3 columns in the table, and I have a lot of rows to insert. I’ve been looking through the doc…

---

## [How can I update matrix value by using row and column vector julia](https://discourse.julialang.org/t/how-can-i-update-matrix-value-by-using-row-and-column-vector-julia/27779)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 3:01am UTC](https://discourse.julialang.org/t/how-can-i-update-matrix-value-by-using-row-and-column-vector-julia/27779 "2019-08-21T03:01:10Z")

</div>

Hello, I have an initialized 2D Float array as follows: proj\_img = zeros(1024,1024) I have another 2D Float array contain a specific row and column location as follows: pix\_vis\_locs= \[621 1 622 2 …

---

## [Understanding \`@everywhere\` and environments](https://discourse.julialang.org/t/understanding-everywhere-and-environments/27438)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 5\
**Last updated:** [August 20, 2019, 9:45pm UTC](https://discourse.julialang.org/t/understanding-everywhere-and-environments/27438 "2019-08-20T21:45:48Z")

</div>

I am working on a project that I’ve put into a module. The working directory of this module is in my Base.load\_path() and running using thvaccine works as expected. I can be in the v1.0 environment and still using thvacc…

---

## [@threadcall and dlsym in Julia 1.3](https://discourse.julialang.org/t/threadcall-and-dlsym-in-julia-1-3/27778)

<div class="topic-metadata">

**Author:** [@rkat](https://discourse.julialang.org/u/rkat)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 12:34am UTC](https://discourse.julialang.org/t/threadcall-and-dlsym-in-julia-1-3/27778 "2019-08-21T00:34:13Z")

</div>

I have a dynamic library with a function in it that I’d like to call using @threadcall in Julia 1.3. This doesn’t seem to be possible. Here is a minimal example to reproduce the problem. /\* foo.c \*/ #include \<stdio.h\> v…

---

## [Help with creating a local repo](https://discourse.julialang.org/t/help-with-creating-a-local-repo/13061)

<div class="topic-metadata">

**Author:** [@noambard](https://discourse.julialang.org/u/noambard)\
**Replies:** 4\
**Last updated:** [August 20, 2019, 8:42pm UTC](https://discourse.julialang.org/t/help-with-creating-a-local-repo/13061 "2019-08-20T20:42:27Z")

</div>

Hi, At my local place of employment we work behind a firewall and have to create local repositories for all the languages we use (CRAN, Pypi, etc.) I’ve been trying to understand how to do that exact thing for julia wi…

---

## [Mux.jl route vs page](https://discourse.julialang.org/t/mux-jl-route-vs-page/27431)

<div class="topic-metadata">

**Author:** [@milesf](https://discourse.julialang.org/u/milesf)\
**Replies:** 1\
**Last updated:** [August 20, 2019, 7:55pm UTC](https://discourse.julialang.org/t/mux-jl-route-vs-page/27431 "2019-08-20T19:55:58Z")

</div>

I am trying to determine best practices for using route versus page, but don’t understand the differences between these two functions. The documentation describes page as being more strict with exact request location ma…

---

## [Type-stable threaded map?](https://discourse.julialang.org/t/type-stable-threaded-map/24498)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 9\
**Last updated:** [August 20, 2019, 7:44pm UTC](https://discourse.julialang.org/t/type-stable-threaded-map/24498 "2019-08-20T19:44:58Z")

</div>

Can anyone think of a way to write a threaded map function that is type stable? The only way I have come up with so far uses return\_type which I understand is not a good idea. function tmap(f, args...) cargs = colle…

---

## [Directory file tree & \`walkdir()\`](https://discourse.julialang.org/t/directory-file-tree-walkdir/27768)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [August 20, 2019, 6:04pm UTC](https://discourse.julialang.org/t/directory-file-tree-walkdir/27768 "2019-08-20T18:04:11Z")

</div>

I’m trying to make some Julia code for (i) generating a directory/file tree at a given directory, and (ii) write the result to a CSV file. The use case is that I have ripped my movie disks to my hard disk (no pirate cop…

---

## [Julia Enthusiasts In Michigan](https://discourse.julialang.org/t/julia-enthusiasts-in-michigan/27771)

<div class="topic-metadata">

**Author:** [@Onor.io](https://discourse.julialang.org/u/Onor.io)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 5:43pm UTC](https://discourse.julialang.org/t/julia-enthusiasts-in-michigan/27771 "2019-08-20T17:43:42Z")

</div>

Just wondering if there are any folks using Julia or wanting to learn more about Julia in Southeast Michigan? I mean the general vicinity of metro Detroit. If so, could you reply to my message or contact me?

---

## [Error New App in Genie.jl](https://discourse.julialang.org/t/error-new-app-in-genie-jl/27766)

<div class="topic-metadata">

**Author:** [@Santiago\_Cuervo](https://discourse.julialang.org/u/Santiago_Cuervo)\
**Replies:** 0\
**Last updated:** [August 20, 2019, 2:46pm UTC](https://discourse.julialang.org/t/error-new-app-in-genie-jl/27766 "2019-08-20T14:46:20Z")

</div>

Hi, i’m trying to create a Genie app just like following the steps described in the docs but I got an error in the first step. :slight\_smile: using Genie Genie.newapp("MyAppscr") IOError: open: no such file or directo…

---

## [Julia integral calculation - community module or own module?](https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 17\
**Last updated:** [August 20, 2019, 2:41pm UTC](https://discourse.julialang.org/t/julia-integral-calculation-community-module-or-own-module/24278 "2019-08-20T14:41:31Z")

</div>

I need to calculate some integrals in my program. Before using Julia i did it in C by using Complex Newton-Cotes formulas(Boole rule, Simpson rule and others): Here is the simplified example(only with Boole Rule): #inc…

---

## [Julia version of the (fortran) IMSL library?](https://discourse.julialang.org/t/julia-version-of-the-fortran-imsl-library/27729)

<div class="topic-metadata">

**Author:** [@steph\_de\_paris](https://discourse.julialang.org/u/steph_de_paris)\
**Replies:** 2\
**Last updated:** [August 20, 2019, 1:39pm UTC](https://discourse.julialang.org/t/julia-version-of-the-fortran-imsl-library/27729 "2019-08-20T13:39:26Z")

</div>

Hello, Is there any statistics package allowing to reproduce in an easy way the functionality of the (fortran) IMSL library ? Especially, I am looking for julia functions reproducing the following IMSL functions : RGI…

---

## [Suggest installing un-installed packages](https://discourse.julialang.org/t/suggest-installing-un-installed-packages/27747)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 4\
**Last updated:** [August 20, 2019, 1:48pm UTC](https://discourse.julialang.org/t/suggest-installing-un-installed-packages/27747 "2019-08-20T13:48:22Z")

</div>

Maybe I’m just lazy and a bit averse to error messages but julia\> using SomePackageThatIDontHave ERROR: ArgumentError: Package SomePackageThatIDontHave not found in current path: - Run \`import Pkg; Pkg.add("SomePackageT…

---

## [Filter dataframe by date, e.g. yearmonth](https://discourse.julialang.org/t/filter-dataframe-by-date-e-g-yearmonth/27741)

<div class="topic-metadata">

**Author:** [@FredC](https://discourse.julialang.org/u/FredC)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 12:49pm UTC](https://discourse.julialang.org/t/filter-dataframe-by-date-e-g-yearmonth/27741 "2019-08-20T12:49:27Z")

</div>

Basically, I have a column of dates and a 3 month period I want to filter the dataframe down to. I have, e.g yms = yearmonth.(\[Date(2019,4),Date(2019,5),Date(2019,6)\]) and then I try something like df2 = @where(df1, …

---

## [Syntax highlighting doesn't work in Juno](https://discourse.julialang.org/t/syntax-highlighting-doesnt-work-in-juno/27750)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 2\
**Last updated:** [August 20, 2019, 12:35pm UTC](https://discourse.julialang.org/t/syntax-highlighting-doesnt-work-in-juno/27750 "2019-08-20T12:35:27Z")

</div>

As the title says syntax highlighting doesn’t work for me in Juno (with .jl files). I tried to uninstall-install ink and julia-client but that didn’t solve it. I also removed every community package, and installed uber-j…

---

## [How to get the current LP bound in an user callback (cplex)?](https://discourse.julialang.org/t/how-to-get-the-current-lp-bound-in-an-user-callback-cplex/27076)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 4\
**Last updated:** [August 20, 2019, 12:14pm UTC](https://discourse.julialang.org/t/how-to-get-the-current-lp-bound-in-an-user-callback-cplex/27076 "2019-08-20T12:14:07Z")

</div>

Dear community, I have a MIP in which I add cuts in a user callback (using JuMP 0.18.5, CPLEX 0.5, MathProgBase 0.7.7). I would like to retrieve the LP bound in the current node of the B&B tree, e.g., by doing something…

---

## [How to use an expression in a anonymous function?](https://discourse.julialang.org/t/how-to-use-an-expression-in-a-anonymous-function/27756)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [August 20, 2019, 12:05pm UTC](https://discourse.julialang.org/t/how-to-use-an-expression-in-a-anonymous-function/27756 "2019-08-20T12:05:58Z")

</div>

The following works: julia\> map(x -\> x^2 + 2x - 1, \[1,3,-1\]) 3-element Array{Int64,1}: 2 14 -2 But I need to calculate the function dynamically. I have: julia\> expr=Meta.parse("x^2 + 2x - 1") :((x ^ 2 + 2x) - 1) …

---

## [Wrong type returned by range in 2-dims case?](https://discourse.julialang.org/t/wrong-type-returned-by-range-in-2-dims-case/27736)

<div class="topic-metadata">

**Author:** [@szcf-weiya](https://discourse.julialang.org/u/szcf-weiya)\
**Replies:** 5\
**Last updated:** [August 20, 2019, 10:53am UTC](https://discourse.julialang.org/t/wrong-type-returned-by-range-in-2-dims-case/27736 "2019-08-20T10:53:07Z")

</div>

When I tried the following command to generate 2-dims linspace arrays, whose type should be Float, not Int r = range(\[1,1\],\[8,9\],length=10) # 10-element LinRange{Array{Int64,1}}: # \[1.0, 1.0\],\[1.77778, 1.88889\],\[2.55556…

---

## [Can't get Julia1.2.0 kernel in Jupyter](https://discourse.julialang.org/t/cant-get-julia1-2-0-kernel-in-jupyter/27749)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [August 20, 2019, 10:29am UTC](https://discourse.julialang.org/t/cant-get-julia1-2-0-kernel-in-jupyter/27749 "2019-08-20T10:29:22Z")

</div>

Can’t get the kernel for Julia-1.2.0 working in Jupyter, even if I did add IJulia like for all the other versions (that work without problem): What can it be ? How can I debug it ?

---

## [Solving system of equations](https://discourse.julialang.org/t/solving-system-of-equations/27691)

<div class="topic-metadata">

**Author:** [@zaccazy](https://discourse.julialang.org/u/zaccazy)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 9:43am UTC](https://discourse.julialang.org/t/solving-system-of-equations/27691 "2019-08-20T09:43:50Z")

</div>

Hi. I’m interested in ‘nlsolve’ function for solving system of equations. Let us consider simple example: Eq.1: y=a+x Eq.2: y=2x-1, where a is a vector that it can take values 3 and 5. I want to solve system of equa…

---

## [Julia crashes when adding package with ssh, https works](https://discourse.julialang.org/t/julia-crashes-when-adding-package-with-ssh-https-works/25827)

<div class="topic-metadata">

**Author:** [@cstook](https://discourse.julialang.org/u/cstook)\
**Replies:** 6\
**Last updated:** [August 20, 2019, 8:40am UTC](https://discourse.julialang.org/t/julia-crashes-when-adding-package-with-ssh-https-works/25827 "2019-08-20T08:40:55Z")

</div>

Trying to add a unregistered package from my github account using ssh causes Julia to crash. I replaced my boot drive in my windows PC and I am in the process reinstalling everything. I have set up a new private/public…

---

## [Difference between Set{Int}() and BitSet()](https://discourse.julialang.org/t/difference-between-set-int-and-bitset/27737)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 2\
**Last updated:** [August 20, 2019, 8:33am UTC](https://discourse.julialang.org/t/difference-between-set-int-and-bitset/27737 "2019-08-20T08:33:26Z")

</div>

I want to compute the intersection of a matrix of sets. I came across BitSet in addition to Set{Int}, and the following benchmarks (which initialize a matrix of Set or BitSet) baffles me in terms of memory usage: julia\> …

---

## [Make Julia environments separation based on full version number](https://discourse.julialang.org/t/make-julia-environments-separation-based-on-full-version-number/27537)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 11\
**Last updated:** [August 20, 2019, 8:04am UTC](https://discourse.julialang.org/t/make-julia-environments-separation-based-on-full-version-number/27537 "2019-08-20T08:04:49Z")

</div>

I would like to make Julia installations that create different environments based on the full Julia version number. That is instead of e.g. ~/.julia/environments/v1.0 ~/.julia/environments/v1.1 I would like to …

---

## [Unable to use multiple threads with MPI using Atom IDE](https://discourse.julialang.org/t/unable-to-use-multiple-threads-with-mpi-using-atom-ide/26995)

<div class="topic-metadata">

**Author:** [@Diego](https://discourse.julialang.org/u/Diego)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 7:39am UTC](https://discourse.julialang.org/t/unable-to-use-multiple-threads-with-mpi-using-atom-ide/26995 "2019-08-20T07:39:27Z")

</div>

Team, I am starting to use the MPI library with Atom IDE. However, I am still unsucessful as by some reason the system is only considering a single thread. I know that to enable multiple threads with Atom I have to use …

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

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