# Latest

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

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

**Page:** 1875

---

## [Temporarily unable to edit path for Julia in julia-client](https://discourse.julialang.org/t/temporarily-unable-to-edit-path-for-julia-in-julia-client/31558)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 0\
**Last updated:** [November 27, 2019, 5:53am UTC](https://discourse.julialang.org/t/temporarily-unable-to-edit-path-for-julia-in-julia-client/31558 "2019-11-27T05:53:47Z")

</div>

This describes a problem that went away between the time I started writing this report and when I finished. So I’m leaving the report as it was and then adding a final section. Since the behavior seems like a bug, even…

---

## [How to plot a subplots in PlotlyJS](https://discourse.julialang.org/t/how-to-plot-a-subplots-in-plotlyjs/31424)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 4\
**Last updated:** [November 27, 2019, 3:31am UTC](https://discourse.julialang.org/t/how-to-plot-a-subplots-in-plotlyjs/31424 "2019-11-27T03:31:05Z")

</div>

How can I use PlotlyJS.jl to make two subplots with two traces each with shared x-axis? What I have: using PlotlyJS trace1 = PlotlyJS.scatter(x=1:3, y=rand(3)) trace2 = PlotlyJS.scatter(x=1:3, y=rand(3)) trace3 = Plot…

---

## [How to get all the symbols within a module?](https://discourse.julialang.org/t/how-to-get-all-the-symbols-within-a-module/31539)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 2\
**Last updated:** [November 27, 2019, 1:13am UTC](https://discourse.julialang.org/t/how-to-get-all-the-symbols-within-a-module/31539 "2019-11-27T01:13:24Z")

</div>

is there a way to list all the symbols in a module?

---

## [Difficulty in solving a MINLP](https://discourse.julialang.org/t/difficulty-in-solving-a-minlp/31555)

<div class="topic-metadata">

**Author:** [@muriloasouza](https://discourse.julialang.org/u/muriloasouza)\
**Replies:** 2\
**Last updated:** [November 27, 2019, 12:56am UTC](https://discourse.julialang.org/t/difficulty-in-solving-a-minlp/31555 "2019-11-27T00:56:43Z")

</div>

Hello all, i’m trying to solve a MINLP using Couenne. These are my variables and constraints: Constraints: 1040 Variables: 1048 (8 integer) Auxiliaries: 3530 (13 integer) It had a lot more, bu…

---

## [How to extract the Standard Deviation out of Turing.jl](https://discourse.julialang.org/t/how-to-extract-the-standard-deviation-out-of-turing-jl/31519)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 3\
**Last updated:** [November 27, 2019, 12:35am UTC](https://discourse.julialang.org/t/how-to-extract-the-standard-deviation-out-of-turing-jl/31519 "2019-11-27T00:35:18Z")

</div>

I am trying to extract the Standard Deviation out of Turing for the parameter p but it kept giving me an error. I was tired and frustrated and I could not think straight. I guess I need to take a break. The guide here …

---

## [How to check whether 2 symbols are indeed pointing to the same object?](https://discourse.julialang.org/t/how-to-check-whether-2-symbols-are-indeed-pointing-to-the-same-object/31553)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 6\
**Last updated:** [November 26, 2019, 11:17pm UTC](https://discourse.julialang.org/t/how-to-check-whether-2-symbols-are-indeed-pointing-to-the-same-object/31553 "2019-11-26T23:17:47Z")

</div>

julia\> struct MM x::Int end julia\> Base.:(==)(m1::MM,m2::MM) = m1.x == m2.x julia\> m1 = MM(3) MM(3) julia\> m2 = MM(3) MM(3) m1 == m2 #returns true I am looking for a way to check whether m1 and m2…

---

## [Time tick issue on x-axis](https://discourse.julialang.org/t/time-tick-issue-on-x-axis/15643)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 7\
**Last updated:** [November 26, 2019, 10:26pm UTC](https://discourse.julialang.org/t/time-tick-issue-on-x-axis/15643 "2019-11-26T22:26:25Z")

</div>

I’m trying to plot a time-related histogram where the x-axis is times in a day, but I want the ticks to increase every 30 minutes instead of the crazy amount of ticks defaulted by Gadfly. Any other plotting package solu…

---

## [Cxx: calling icxx with a string interpolation results in a cryptic BoundsError](https://discourse.julialang.org/t/cxx-calling-icxx-with-a-string-interpolation-results-in-a-cryptic-boundserror/31508)

<div class="topic-metadata">

**Author:** [@GlenHenshaw](https://discourse.julialang.org/u/GlenHenshaw)\
**Replies:** 3\
**Last updated:** [November 26, 2019, 9:45pm UTC](https://discourse.julialang.org/t/cxx-calling-icxx-with-a-string-interpolation-results-in-a-cryptic-boundserror/31508 "2019-11-26T21:45:48Z")

</div>

This code used to work for me: foo = @cxxnew makefoo(); icxx"$foo-\>bar = 5;" But it now throws a rather cryptic error: ERROR: BoundsError: attempt to access 36-element Array{Tuple{AbstractString,Symbol,Int64,Int64,Boo…

---

## [Why mul! is so fast?](https://discourse.julialang.org/t/why-mul-is-so-fast/31436)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 7\
**Last updated:** [November 26, 2019, 8:17pm UTC](https://discourse.julialang.org/t/why-mul-is-so-fast/31436 "2019-11-26T20:17:19Z")

</div>

I wrote my own (simple) version of mul!, for comparison: function mymul!(y, A, x) y .= 0.0 @inbounds for j = 1:length(x) @simd for i = 1:length(y) y\[i\] += A\[i,j\] \* x\[j\] end end en…

---

## [Using Julia with Emacs under Cygwin](https://discourse.julialang.org/t/using-julia-with-emacs-under-cygwin/31547)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [November 26, 2019, 8:16pm UTC](https://discourse.julialang.org/t/using-julia-with-emacs-under-cygwin/31547 "2019-11-26T20:16:36Z")

</div>

Using Emacs with Cygwin requires some careful configuration. On the other hand, I find it very useful to operate Emacs by voice. The combination of Emacs with Cygwin makes it possible. I am putting together a guide for …

---

## [Performance with small matrices: 5-argument mul! vs BLAS.gemm!](https://discourse.julialang.org/t/performance-with-small-matrices-5-argument-mul-vs-blas-gemm/31543)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 7:26pm UTC](https://discourse.julialang.org/t/performance-with-small-matrices-5-argument-mul-vs-blas-gemm/31543 "2019-11-26T19:26:48Z")

</div>

Trying out the new 5-argument mul! introduced in Julia 1.3, (ABα+Cβ → C), for the calculation of matrix commutator comu(A,B)=AB-BA. From my testing, with small (2x2 or 3x3) matrices, mul! is actually faster than gemm!, a…

---

## [Can't Iterate on (::Task)](https://discourse.julialang.org/t/cant-iterate-on-task/31480)

<div class="topic-metadata">

**Author:** [@marouane1994](https://discourse.julialang.org/u/marouane1994)\
**Replies:** 2\
**Last updated:** [November 26, 2019, 6:56pm UTC](https://discourse.julialang.org/t/cant-iterate-on-task/31480 "2019-11-26T18:56:06Z")

</div>

i have a package built where i’m calling one function called prob with two methods inside a constructor called QRelaySampler and after i call it using QR=QRelaySampler(\[2 3;1 1\],1 ,1, 0.5) then QR.prob(200) it shows me …

---

## [Using connection pools in a websocket server with HTTP.jl](https://discourse.julialang.org/t/using-connection-pools-in-a-websocket-server-with-http-jl/31524)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 6:51pm UTC](https://discourse.julialang.org/t/using-connection-pools-in-a-websocket-server-with-http-jl/31524 "2019-11-26T18:51:06Z")

</div>

Hi all- I have two clients connected to a websocket server in HTTP.jl. I would like to do the following: send data from client 1 to the websocket server, process the data, send the processed data to client 2. Here is th…

---

## [Inconsistent errors when creating compact style functions/lambdas with type parameters and return types](https://discourse.julialang.org/t/inconsistent-errors-when-creating-compact-style-functions-lambdas-with-type-parameters-and-return-types/31540)

<div class="topic-metadata">

**Author:** [@dataDiver](https://discourse.julialang.org/u/dataDiver)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 6:36pm UTC](https://discourse.julialang.org/t/inconsistent-errors-when-creating-compact-style-functions-lambdas-with-type-parameters-and-return-types/31540 "2019-11-26T18:36:06Z")

</div>

I sometimes use the return type feature in Julia, and I have noticed that it is only properly available in the full function style: For instance I can define: function test(x::T, x::T)::T where {T} return x\*exp(y) en…

---

## [Unable to run Julia in Atom](https://discourse.julialang.org/t/unable-to-run-julia-in-atom/30694)

<div class="topic-metadata">

**Author:** [@gcalajo](https://discourse.julialang.org/u/gcalajo)\
**Replies:** 8\
**Last updated:** [November 26, 2019, 6:18pm UTC](https://discourse.julialang.org/t/unable-to-run-julia-in-atom/30694 "2019-11-26T18:18:12Z")

</div>

I was using Julia v 0.64 ( I need to use a code written in this version) in Atom in the last months without any issues. Today the REPL was not able to start Julia exting all time. I so uninstalled and reinstalled again…

---

## [Repeated @benchmark causes RAM creep](https://discourse.julialang.org/t/repeated-benchmark-causes-ram-creep/31533)

<div class="topic-metadata">

**Author:** [@Crown421](https://discourse.julialang.org/u/Crown421)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 5:19pm UTC](https://discourse.julialang.org/t/repeated-benchmark-causes-ram-creep/31533 "2019-11-26T17:19:08Z")

</div>

I am currently trying to quantify the performance/ scaling of the VML functions as added via VML.jl, and ran into a curious problem. Running this script, my RAM steadily increases until julia consumes 12-14Gb at the en…

---

## [History of Julia (2009-2019)](https://discourse.julialang.org/t/history-of-julia-2009-2019/31526)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 5\
**Last updated:** [November 26, 2019, 4:55pm UTC](https://discourse.julialang.org/t/history-of-julia-2009-2019/31526 "2019-11-26T16:55:53Z")

</div>

I created a visualisation of the Julia development history, here you go: History of the Julia Language (2009-2019) - YouTube :smiley:

---

## [Why A\[:,1\] .= x allocates?](https://discourse.julialang.org/t/why-a-1-x-allocates/31534)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 4:18pm UTC](https://discourse.julialang.org/t/why-a-1-x-allocates/31534 "2019-11-26T16:18:28Z")

</div>

Why the following code allocates? function f(A,x) A\[:,1\] .= x; return nothing end julia\> A = randn(5,5); x = randn(5); julia\> @btime f($A, $x) 30.941 ns (1 allocation: 48 bytes)

---

## [Including CSV Files in a Package I'm Developing..?](https://discourse.julialang.org/t/including-csv-files-in-a-package-im-developing/31532)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 4:03pm UTC](https://discourse.julialang.org/t/including-csv-files-in-a-package-im-developing/31532 "2019-11-26T16:03:50Z")

</div>

I’m attempting to develop my first package and I have a question about how to incorporate some necessary data into the package. Right now, I have four .csv files that include some data/lookup values that will be necessar…

---

## [\[ANN\] DataConvenience.jl - convenience functions I find useful](https://discourse.julialang.org/t/ann-dataconvenience-jl-convenience-functions-i-find-useful/31490)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 3:39pm UTC](https://discourse.julialang.org/t/ann-dataconvenience-jl-convenience-functions-i-find-useful/31490 "2019-11-26T15:39:24Z")

</div>

It’s there GitHub - xiaodaigh/DataConvenience.jl: Convenience functions missing in Julia @replicate n expr will run the expr n times. For example using Random @replicate 1\_000\_000 randstring(10) Also my other favouri…

---

## [Threads.@threads and Threads.@spawn](https://discourse.julialang.org/t/threads-threads-and-threads-spawn/31502)

<div class="topic-metadata">

**Author:** [@dkiese](https://discourse.julialang.org/u/dkiese)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 3:25pm UTC](https://discourse.julialang.org/t/threads-threads-and-threads-spawn/31502 "2019-11-26T15:25:41Z")

</div>

Hi everyone, I have a short question regarding the usage of the Threads.@spawn macro in combination with Threads.@threads. Say I have code which looks like some\_task = Threads.@spawn begin some\_function\_call\_1…

---

## [Undo add and instead dev my local package](https://discourse.julialang.org/t/undo-add-and-instead-dev-my-local-package/31510)

<div class="topic-metadata">

**Author:** [@doomphoenix-qxz](https://discourse.julialang.org/u/doomphoenix-qxz)\
**Replies:** 3\
**Last updated:** [November 26, 2019, 3:14pm UTC](https://discourse.julialang.org/t/undo-add-and-instead-dev-my-local-package/31510 "2019-11-26T15:14:16Z")

</div>

I created a package using PkgTemplates. I put it in .julia/dev and then added it to my primary environment for development purposes. Now when I change and git commit the files, it’s still pulling old commits that aren’t…

---

## [Generic types in parametric struct constructor](https://discourse.julialang.org/t/generic-types-in-parametric-struct-constructor/31530)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 2\
**Last updated:** [November 26, 2019, 2:01pm UTC](https://discourse.julialang.org/t/generic-types-in-parametric-struct-constructor/31530 "2019-11-26T14:01:46Z")

</div>

Why does this not work ? using Distributions Uniform{Float32}(0.0,1.0) ERROR: MethodError: no method matching Uniform{Float32}(::Float64, ::Float64) Closest candidates are: Uniform{Float32}(::T\<:Real, ::T\<:Real) where…

---

## [Can I capture sympy output in weave document?](https://discourse.julialang.org/t/can-i-capture-sympy-output-in-weave-document/23633)

<div class="topic-metadata">

**Author:** [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Replies:** 2\
**Last updated:** [November 26, 2019, 1:25pm UTC](https://discourse.julialang.org/t/can-i-capture-sympy-output-in-weave-document/23633 "2019-11-26T13:25:35Z")

</div>

I’m interested if I can render SymPy.jl-s output with Weave just like in jupyter notebooks? I know I can weave into tex and process further, but would be easier (at least for me) if the output could directly captured in …

---

## [findfirst for iterator-defined collections](https://discourse.julialang.org/t/findfirst-for-iterator-defined-collections/13792)

<div class="topic-metadata">

**Author:** [@wgm](https://discourse.julialang.org/u/wgm)\
**Replies:** 5\
**Last updated:** [November 26, 2019, 11:43am UTC](https://discourse.julialang.org/t/findfirst-for-iterator-defined-collections/13792 "2019-11-26T11:43:17Z")

</div>

I would like to be able to use findfirst over a collection defined by an iterator. For example findfirst(x-\>x==5, collect(Iterators.flatten((1:2,5:7)))) == 3 but there is no method for findfirst(x-\>x==5, Iterators.fla…

---

## [K-Means with penalty on (weighted) cluster size](https://discourse.julialang.org/t/k-means-with-penalty-on-weighted-cluster-size/31494)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 10:43am UTC](https://discourse.julialang.org/t/k-means-with-penalty-on-weighted-cluster-size/31494 "2019-11-26T10:43:01Z")

</div>

As the title suggests, I’m trying to cluster a set of points in space into a given number of clusters based on their proximity, however I also want the clusters to be of roughly equal size based on the “weight” of each l…

---

## [Vectorize replace with Vector of String raises DimensionMismatch](https://discourse.julialang.org/t/vectorize-replace-with-vector-of-string-raises-dimensionmismatch/31521)

<div class="topic-metadata">

**Author:** [@scelles](https://discourse.julialang.org/u/scelles)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 9:37am UTC](https://discourse.julialang.org/t/vectorize-replace-with-vector-of-string-raises-dimensionmismatch/31521 "2019-11-26T09:37:10Z")

</div>

Hello, I’m trying to replace coma with point in the following Vector of String julia\> a = \["0,309042 46,586349 111,4", "0,309042 46,586349 111,1", "0,309042 46,586349 111,3"\] 3-element Array{String,1}: "0,309042 46,58…

---

## [Local package development methodology discussion](https://discourse.julialang.org/t/local-package-development-methodology-discussion/31515)

<div class="topic-metadata">

**Author:** [@Glen](https://discourse.julialang.org/u/Glen)\
**Replies:** 1\
**Last updated:** [November 26, 2019, 7:05am UTC](https://discourse.julialang.org/t/local-package-development-methodology-discussion/31515 "2019-11-26T07:05:57Z")

</div>

Hi, I’ve been using Julia for a while and developed the habit of setting LOAD\_PATH in the Julia start-up file so that I have a directory structure like: ~/julia/dev-0.4/\*packages\* ~/julia/dev-0.5/\*packages\* ~/julia/dev…

---

## ["odd" behavior of module import in multi process environment](https://discourse.julialang.org/t/odd-behavior-of-module-import-in-multi-process-environment/31518)

<div class="topic-metadata">

**Author:** [@Sijun](https://discourse.julialang.org/u/Sijun)\
**Replies:** 0\
**Last updated:** [November 26, 2019, 5:44am UTC](https://discourse.julialang.org/t/odd-behavior-of-module-import-in-multi-process-environment/31518 "2019-11-26T05:44:01Z")

</div>

Maybe odd only in the eye of novice user, but I would like to know why. So, I have the settings for multi process environment JULIA\_NUM\_THREADS = 4 number of precesses = 4 (-p4) Also, I have push!(LOCAL\_PATH, “.”) in…

---

## [BenchmarkTools not working in Julia 1.2?](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334)

<div class="topic-metadata">

**Author:** [@hhb](https://discourse.julialang.org/u/hhb)\
**Replies:** 5\
**Last updated:** [November 26, 2019, 5:06am UTC](https://discourse.julialang.org/t/benchmarktools-not-working-in-julia-1-2/31334 "2019-11-26T05:06:31Z")

</div>

Issuing using Pkg; Pkg.add(“BenchmarkTools”) Leads to the error Updating registry at ~/.julia/registries/General Updating git-repo https://github.com/JuliaRegistries/General.git Resolving package versions… Unknown …

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

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