# Latest

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

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

**Page:** 1970

---

## [Makie plot in gui instead of Juno plot pane?](https://discourse.julialang.org/t/makie-plot-in-gui-instead-of-juno-plot-pane/25825)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 3\
**Last updated:** [June 29, 2019, 5:33am UTC](https://discourse.julialang.org/t/makie-plot-in-gui-instead-of-juno-plot-pane/25825 "2019-06-29T05:33:56Z")

</div>

Hi, I am trying to 3D plot in Makie, which a gui with mouse pane, scale, rotate would be helpful to visualize the data. I could get a gui pop up when plot in julia repl, but in Juno, the default is always push the plot …

---

## [Passing numpy arrays between python and Julia](https://discourse.julialang.org/t/passing-numpy-arrays-between-python-and-julia/25826)

<div class="topic-metadata">

**Author:** [@00krishna](https://discourse.julialang.org/u/00krishna)\
**Replies:** 3\
**Last updated:** [June 29, 2019, 1:48am UTC](https://discourse.julialang.org/t/passing-numpy-arrays-between-python-and-julia/25826 "2019-06-29T01:48:16Z")

</div>

I am still new to Julia, so just wanted to incrementally test out some features. One thing I wanted to try was accelerating some python code I have by offloading it to Julia. The first scenario is simple. So I have a di…

---

## [Recent article](https://discourse.julialang.org/t/recent-article/25816)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 1\
**Last updated:** [June 29, 2019, 1:45am UTC](https://discourse.julialang.org/t/recent-article/25816 "2019-06-29T01:45:56Z")

</div>

check it out: https://www.zdnet.com/article/mit-were-building-on-julia-programming-language-to-open-up-ai-coding-to-novices/

---

## [Catching errors thrown by worker processes](https://discourse.julialang.org/t/catching-errors-thrown-by-worker-processes/25801)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 9\
**Last updated:** [June 28, 2019, 9:51pm UTC](https://discourse.julialang.org/t/catching-errors-thrown-by-worker-processes/25801 "2019-06-28T21:51:34Z")

</div>

Hi there, I want to be informed of errors arising in Julia worker processes. Right now the following code does not inform me about the thrown error. The second println is obviously not executed. The feedback I get, e.g.…

---

## [Metaprogramming & variable scope](https://discourse.julialang.org/t/metaprogramming-variable-scope/25819)

<div class="topic-metadata">

**Author:** [@versipellis](https://discourse.julialang.org/u/versipellis)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 8:29pm UTC](https://discourse.julialang.org/t/metaprogramming-variable-scope/25819 "2019-06-28T20:29:06Z")

</div>

I have some function as such: function somefunction(df::AbstractDataFrame, indexcols::Array{Symbol,1}) ... dummydf = similar(df,0) for col in indexcols dummydf\[col\] = \[\] @eval $col = unique(df\[$(…

---

## [Using varargs](https://discourse.julialang.org/t/using-varargs/25747)

<div class="topic-metadata">

**Author:** [@stu](https://discourse.julialang.org/u/stu)\
**Replies:** 5\
**Last updated:** [June 28, 2019, 8:26pm UTC](https://discourse.julialang.org/t/using-varargs/25747 "2019-06-28T20:26:29Z")

</div>

I have the following code: circ(x) = x./sqrt(sum(x .\* x)) x -\> cat(circ(x), circ(x); dims = 1) but I want to be able to create a function where I input a number and it concatenates that number of circ(x)s. so for exa…

---

## [How to retrive a data from Pointer](https://discourse.julialang.org/t/how-to-retrive-a-data-from-pointer/25815)

<div class="topic-metadata">

**Author:** [@arunkumar04](https://discourse.julialang.org/u/arunkumar04)\
**Replies:** 1\
**Last updated:** [June 28, 2019, 8:12pm UTC](https://discourse.julialang.org/t/how-to-retrive-a-data-from-pointer/25815 "2019-06-28T20:12:09Z")

</div>

I wrote a ccall function, which returns a struct. The function I wrote is ccall((:BinghamSample, "libbingsam.so"),bingham\_t,( Cdouble, Cdouble, Cdouble, Cint), 0, 0, 0, 10) struct bingham\_stats\_t dF::Ptr{Cdouble} …

---

## [Disable nested thread call](https://discourse.julialang.org/t/disable-nested-thread-call/25818)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 6\
**Last updated:** [June 28, 2019, 7:40pm UTC](https://discourse.julialang.org/t/disable-nested-thread-call/25818 "2019-06-28T19:40:26Z")

</div>

I’m wondering if it is possible to disable nested threaded call? e.g function foo() Threads.@threads for k in 1:120 # do something end end function baz() Threads.@threads for k in 1:120 foo() …

---

## [@enum macro example fails due to ColorType.jl loaded](https://discourse.julialang.org/t/enum-macro-example-fails-due-to-colortype-jl-loaded/25748)

<div class="topic-metadata">

**Author:** [@samusz](https://discourse.julialang.org/u/samusz)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 7:09pm UTC](https://discourse.julialang.org/t/enum-macro-example-fails-due-to-colortype-jl-loaded/25748 "2019-06-28T19:09:08Z")

</div>

When running this Base.instances exemple code with Julia 1.2 julia\> @enum Color red blue green julia\> instances(Color) (red::Color = 0, blue::Color = 1, green::Color = 2) I got the following error : julia\> @enum …

---

## [TagBot release missing](https://discourse.julialang.org/t/tagbot-release-missing/25773)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 4\
**Last updated:** [June 28, 2019, 3:40pm UTC](https://discourse.julialang.org/t/tagbot-release-missing/25773 "2019-06-28T15:40:48Z")

</div>

A new release was merged: https://github.com/JuliaRegistries/General/pull/1607 but i do see the release automatically generated even though the TagBot is activated: https://github.com/madsjulia/GeostatInversion.jl/rel…

---

## [Why is Base.return\_types disables for builtin functions](https://discourse.julialang.org/t/why-is-base-return-types-disables-for-builtin-functions/25807)

<div class="topic-metadata">

**Author:** [@Christian\_Rorvik](https://discourse.julialang.org/u/Christian_Rorvik)\
**Replies:** 6\
**Last updated:** [June 28, 2019, 3:34pm UTC](https://discourse.julialang.org/t/why-is-base-return-types-disables-for-builtin-functions/25807 "2019-06-28T15:34:34Z")

</div>

Base.return\_types() doesn’t work for builtin functions (https://github.com/JuliaLang/julia/blob/master/base/reflection.jl#L1077). What’s the underlying reason for this? Wrapping the builtin is a workaround, but I’m wonde…

---

## [TypeError: non-boolean (BitArray{1}) used in boolean context](https://discourse.julialang.org/t/typeerror-non-boolean-bitarray-1-used-in-boolean-context/25810)

<div class="topic-metadata">

**Author:** [@aaron](https://discourse.julialang.org/u/aaron)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 2:33pm UTC](https://discourse.julialang.org/t/typeerror-non-boolean-bitarray-1-used-in-boolean-context/25810 "2019-06-28T14:33:15Z")

</div>

Hi, I am a newbie in Julia, using version 1.1.1. TypeError: non-boolean (BitArray{1}) used in boolean context What’s wrong with the following code? x1 = collect(0:0.1:2) x2a = 1 .-0.5.\* x1 x2b = ifelse(2 .-2\* x1 .\>=…

---

## [MethodError: no method matching -(::Int64, ::Array{Float64,1})](https://discourse.julialang.org/t/methoderror-no-method-matching-int64-array-float64-1/25806)

<div class="topic-metadata">

**Author:** [@aaron](https://discourse.julialang.org/u/aaron)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 1:57pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-int64-array-float64-1/25806 "2019-06-28T13:57:08Z")

</div>

Hi, I am a newbie in Julia, using version 1.1.1. MethodError: no method matching -(::Int64, ::Array{Float64,1}) What is wrong with the following code? x1 = collect(0:0.1:2) x2a = 1-0.5x1 x2b = ifelse(2-2x1.\>=0,2-2\*x…

---

## [Stream processing in Julia?](https://discourse.julialang.org/t/stream-processing-in-julia/25794)

<div class="topic-metadata">

**Author:** [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Replies:** 1\
**Last updated:** [June 28, 2019, 1:43pm UTC](https://discourse.julialang.org/t/stream-processing-in-julia/25794 "2019-06-28T13:43:49Z")

</div>

I want to do stream processing in a pipe-style in several steps or layers (similar to deep learning or “Pipes and Filters” pattern), like this: b = f1(a) c = f2(b) d = f3(c) # or simply d = a |\> f1 |\> f2 |\> f3 But this…

---

## [Out of memory using Flux CNN during back propagation phase](https://discourse.julialang.org/t/out-of-memory-using-flux-cnn-during-back-propagation-phase/24492)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 12:27pm UTC](https://discourse.julialang.org/t/out-of-memory-using-flux-cnn-during-back-propagation-phase/24492 "2019-06-28T12:27:14Z")

</div>

I want to train a CNN model on the German Traffic Sign Dataset by adapting one of the model\_zoo examples. First I tried training on a GTX1070 GPU with 8GB of RAM and failed with out of memory. After that I tried training…

---

## [Unpacking tuples in function call](https://discourse.julialang.org/t/unpacking-tuples-in-function-call/25771)

<div class="topic-metadata">

**Author:** [@dataDiver](https://discourse.julialang.org/u/dataDiver)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 12:12pm UTC](https://discourse.julialang.org/t/unpacking-tuples-in-function-call/25771 "2019-06-28T12:12:25Z")

</div>

This is not a help request more of a pleasant observation. I was working with tuples and needed to create a function where the tuples would be unpacked and used separately, something like: function myFun(x::Int64, y::F…

---

## [@threads is really working in parallel?](https://discourse.julialang.org/t/threads-is-really-working-in-parallel/25788)

<div class="topic-metadata">

**Author:** [@kwild](https://discourse.julialang.org/u/kwild)\
**Replies:** 4\
**Last updated:** [June 28, 2019, 12:06pm UTC](https://discourse.julialang.org/t/threads-is-really-working-in-parallel/25788 "2019-06-28T12:06:59Z")

</div>

Hi, on my system: julia\> versioninfo() Julia Version 1.1.1 Commit 55e36cc308 (2019-05-16 04:10 UTC) Platform Info: OS: Windows (x86\_64-w64-mingw32) CPU: Intel(R) Core(TM) i5-4210M CPU @ 2.60GHz WORD\_SIZE: 64 LI…

---

## [Howto correctly (hijack) fill an array with formula over indices?](https://discourse.julialang.org/t/howto-correctly-hijack-fill-an-array-with-formula-over-indices/25673)

<div class="topic-metadata">

**Author:** [@o314](https://discourse.julialang.org/u/o314)\
**Replies:** 10\
**Last updated:** [June 28, 2019, 12:01pm UTC](https://discourse.julialang.org/t/howto-correctly-hijack-fill-an-array-with-formula-over-indices/25673 "2019-06-28T12:01:31Z")

</div>

It seems fill is built to handle static init value only. I am trying to write something like this A = reshape(1:6,(2,3)) fill((i,j)-\>10i+j,A) # or, if you prefer fill(A) do i,j; 10i+j end For now, i have got this one…

---

## [Should \`dlopen\` not first search the libraries loaded already like \`dllist\` ones?](https://discourse.julialang.org/t/should-dlopen-not-first-search-the-libraries-loaded-already-like-dllist-ones/25719)

<div class="topic-metadata">

**Author:** [@sambitdash](https://discourse.julialang.org/u/sambitdash)\
**Replies:** 7\
**Last updated:** [June 28, 2019, 10:06am UTC](https://discourse.julialang.org/t/should-dlopen-not-first-search-the-libraries-loaded-already-like-dllist-ones/25719 "2019-06-28T10:06:32Z")

</div>

Hi All, I am trying to search for libc so that I can pass the malloc function to a library. julia\> dlopen("libc") ERROR: could not load library "libc" /usr/lib/x86\_64-linux-gnu/libc.so: invalid ELF header Stacktrace: …

---

## [Question about importing dependencies of package](https://discourse.julialang.org/t/question-about-importing-dependencies-of-package/25790)

<div class="topic-metadata">

**Author:** [@KDr2](https://discourse.julialang.org/u/KDr2)\
**Replies:** 2\
**Last updated:** [June 28, 2019, 8:09am UTC](https://discourse.julialang.org/t/question-about-importing-dependencies-of-package/25790 "2019-06-28T08:09:19Z")

</div>

I am developing a Julia package, say “PackA.jl”. It depends on many other packages, for example, “JSON.jl”. I put JOSN both to Project.toml and REQUIRE. In the main source file, “PackA.jl”, there’s a line to use JSON: …

---

## [Performance: Building directed graph of game scores (0,0) -\> (0,1) etc](https://discourse.julialang.org/t/performance-building-directed-graph-of-game-scores-0-0-0-1-etc/25736)

<div class="topic-metadata">

**Author:** [@gabiteodoru](https://discourse.julialang.org/u/gabiteodoru)\
**Replies:** 9\
**Last updated:** [June 28, 2019, 6:17am UTC](https://discourse.julialang.org/t/performance-building-directed-graph-of-game-scores-0-0-0-1-etc/25736 "2019-06-28T06:17:55Z")

</div>

I’m building a directed graph of possible game scores from (0,0) up to a score of N, together with a dictionary pointing from the score to the corresponding node. I’d like to make it as efficient as possible. Currently …

---

## [Even though it is in Project.toml, travis-ci does not recognize package](https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782)

<div class="topic-metadata">

**Author:** [@holger](https://discourse.julialang.org/u/holger)\
**Replies:** 4\
**Last updated:** [June 28, 2019, 3:52am UTC](https://discourse.julialang.org/t/even-though-it-is-in-project-toml-travis-ci-does-not-recognize-package/25782 "2019-06-28T03:52:17Z")

</div>

I have updated my Project.toml file and would appreciate your help: When I try to run my tests on travis-ci, I get an error that the package JLD2 is not installed even though I have it in my Project.toml file \[extras\] a…

---

## [Division of Powers of Ten is wrong. Why?](https://discourse.julialang.org/t/division-of-powers-of-ten-is-wrong-why/25744)

<div class="topic-metadata">

**Author:** [@freemint](https://discourse.julialang.org/u/freemint)\
**Replies:** 4\
**Last updated:** [June 28, 2019, 12:27am UTC](https://discourse.julialang.org/t/division-of-powers-of-ten-is-wrong-why/25744 "2019-06-28T00:27:01Z")

</div>

I’ve encountered an error that caused me a lot of grief, can somebody explain why: julia\> (10^18)/(10^22) 0.5362758289192254 The fix was: julia\> (10.0^18)/(10.0^22) 0.0001 but i do not see how it ended up with such a…

---

## [Efficient Implementation of Loop for Bootstrapping Statistics](https://discourse.julialang.org/t/efficient-implementation-of-loop-for-bootstrapping-statistics/25675)

<div class="topic-metadata">

**Author:** [@slakeon](https://discourse.julialang.org/u/slakeon)\
**Replies:** 5\
**Last updated:** [June 27, 2019, 11:39pm UTC](https://discourse.julialang.org/t/efficient-implementation-of-loop-for-bootstrapping-statistics/25675 "2019-06-27T23:39:19Z")

</div>

I am trying to build a loop for a standard recursive-design residual-based nonparametric bootstrap algorithm for a Vector Autoregression (VAR). However, so far, I’m struggling to find an efficient way of writing the algo…

---

## [\[ANN\] PrettyTables v0.5.0 - Added helpers to improve experience!](https://discourse.julialang.org/t/ann-prettytables-v0-5-0-added-helpers-to-improve-experience/25731)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 3\
**Last updated:** [June 27, 2019, 10:41pm UTC](https://discourse.julialang.org/t/ann-prettytables-v0-5-0-added-helpers-to-improve-experience/25731 "2019-06-27T22:41:30Z")

</div>

Hi guys! I have just tagged a new version of PrettyTables.jl (v0.5.0). Helpers It turns out that the number of options we have now is huge and the commands to print the formatted tables as we want is sometimes very, ve…

---

## [Sparse Array Solver on GPU](https://discourse.julialang.org/t/sparse-array-solver-on-gpu/25780)

<div class="topic-metadata">

**Author:** [@cholt](https://discourse.julialang.org/u/cholt)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 9:16pm UTC](https://discourse.julialang.org/t/sparse-array-solver-on-gpu/25780 "2019-06-27T21:16:44Z")

</div>

So I’m trying to invert a sparse array, A, using a GPU. I would either like to find the true inverse, or find the solution, x, to A\*x = ones(length(x)). Here’s the code I’ve been using: I don’t know why x gives me n…

---

## [Solving linear equations efficiency problem](https://discourse.julialang.org/t/solving-linear-equations-efficiency-problem/25718)

<div class="topic-metadata">

**Author:** [@FujiwaraTakumiEH](https://discourse.julialang.org/u/FujiwaraTakumiEH)\
**Replies:** 4\
**Last updated:** [June 27, 2019, 8:59pm UTC](https://discourse.julialang.org/t/solving-linear-equations-efficiency-problem/25718 "2019-06-27T20:59:09Z")

</div>

Background: In the finite element numerical simulation, the last step is to calculate the linear equations of the overall stiffness matrix: K×d=F . In julia, the method of solving linear equations can be directly “\\”: d…

---

## [Best practices for test-driven development with channels](https://discourse.julialang.org/t/best-practices-for-test-driven-development-with-channels/25775)

<div class="topic-metadata">

**Author:** [@Jasha10](https://discourse.julialang.org/u/Jasha10)\
**Replies:** 2\
**Last updated:** [June 27, 2019, 7:09pm UTC](https://discourse.julialang.org/t/best-practices-for-test-driven-development-with-channels/25775 "2019-06-27T19:09:32Z")

</div>

I’ve run into trouble with testing code that uses Channels. In particular, when using channels together with a producer / consumer function, I’ve found that it is difficult to pinpoint the part of the code that is incorr…

---

## [Genie not starting in windows: "localhost refused to connect"](https://discourse.julialang.org/t/genie-not-starting-in-windows-localhost-refused-to-connect/25778)

<div class="topic-metadata">

**Author:** [@andremillet](https://discourse.julialang.org/u/andremillet)\
**Replies:** 0\
**Last updated:** [June 27, 2019, 7:05pm UTC](https://discourse.julialang.org/t/genie-not-starting-in-windows-localhost-refused-to-connect/25778 "2019-06-27T19:05:44Z")

</div>

Hi all. I am new to both programming and Julia and I would like to try Genie Framework but, after following the tutorial in https://github.com/GenieFramework, although it says that Info: Ready! └ @ Genie.AppServer C:\\Us…

---

## [AnyBoost.jl](https://discourse.julialang.org/t/anyboost-jl/25769)

<div class="topic-metadata">

**Author:** [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 5:29pm UTC](https://discourse.julialang.org/t/anyboost-jl/25769 "2019-06-27T17:29:15Z")

</div>

I released the package that I developed as a part of my PhD in Machine Learning at Stanford. The idea is to be able to boost beyond trees, with more algorithms than the usual Gradient Boosting. It works in v0.6. Has no…

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

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