# Latest

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

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

**Page:** 1978

---

## [Retrieving the filename from a GtkFileChooserDialog](https://discourse.julialang.org/t/retrieving-the-filename-from-a-gtkfilechooserdialog/25337)

<div class="topic-metadata">

**Author:** [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Replies:** 1\
**Last updated:** [June 16, 2019, 11:08pm UTC](https://discourse.julialang.org/t/retrieving-the-filename-from-a-gtkfilechooserdialog/25337 "2019-06-16T23:08:55Z")

</div>

I’m looking to get the filename from a GtkFileChooserDialog and I feel like I’m close but I can’t figure out what I’m missing. I’ve read over: And that helped, but I’m getting: ERROR: LoadError: MethodError: no meth…

---

## [Very strange performance issue of a simple code](https://discourse.julialang.org/t/very-strange-performance-issue-of-a-simple-code/25347)

<div class="topic-metadata">

**Author:** [@Dandan](https://discourse.julialang.org/u/Dandan)\
**Replies:** 4\
**Last updated:** [June 16, 2019, 8:55pm UTC](https://discourse.julialang.org/t/very-strange-performance-issue-of-a-simple-code/25347 "2019-06-16T20:55:08Z")

</div>

I’ve just spot a very strange behavior of this simple Julia code function solve\_inner(N) invs = ones(Int32, N) for q=1:N invs\[q\] = 0 end function inner(n) return 0 end function wrapper(n) …

---

## [Benchmark and develop at the same time](https://discourse.julialang.org/t/benchmark-and-develop-at-the-same-time/25339)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 2\
**Last updated:** [June 16, 2019, 4:56pm UTC](https://discourse.julialang.org/t/benchmark-and-develop-at-the-same-time/25339 "2019-06-16T16:56:08Z")

</div>

I’d like to run a benchmark suite on two branches of a repo of a module to check for regressions, and work on the module at the same time. It seems like this requires two copies of the repo. (Or copies of the branches). …

---

## [From zero to package submission, best up to date guide? v 1.0 or later?](https://discourse.julialang.org/t/from-zero-to-package-submission-best-up-to-date-guide-v-1-0-or-later/25344)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 2\
**Last updated:** [June 16, 2019, 4:48pm UTC](https://discourse.julialang.org/t/from-zero-to-package-submission-best-up-to-date-guide-v-1-0-or-later/25344 "2019-06-16T16:48:59Z")

</div>

what’s the best guide to take someone who has an idea for a package from idea through submission to official repo?

---

## [Question about methods defined for supertypes](https://discourse.julialang.org/t/question-about-methods-defined-for-supertypes/25343)

<div class="topic-metadata">

**Author:** [@phrmoy](https://discourse.julialang.org/u/phrmoy)\
**Replies:** 19\
**Last updated:** [June 16, 2019, 4:43pm UTC](https://discourse.julialang.org/t/question-about-methods-defined-for-supertypes/25343 "2019-06-16T16:43:28Z")

</div>

I am still new to Julia (about a year in and I am only starting to get it), so please bear with me. So I was wondering what I could do with the type Base.KeySet which has supertype AbstractSet{K} where K. Currently, met…

---

## [An assert statement makes my code run faster](https://discourse.julialang.org/t/an-assert-statement-makes-my-code-run-faster/25334)

<div class="topic-metadata">

**Author:** [@s-baumann](https://discourse.julialang.org/u/s-baumann)\
**Replies:** 5\
**Last updated:** [June 16, 2019, 1:09pm UTC](https://discourse.julialang.org/t/an-assert-statement-makes-my-code-run-faster/25334 "2019-06-16T13:09:07Z")

</div>

For a case below I get a faster result when I include an assert statement in my code. I include the functions with 5 runs of each case (not including the timing for the first compilation run) function with\_assert(f::Int…

---

## [Easiest way to turn a substring into a string?](https://discourse.julialang.org/t/easiest-way-to-turn-a-substring-into-a-string/25336)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 4\
**Last updated:** [June 16, 2019, 8:26am UTC](https://discourse.julialang.org/t/easiest-way-to-turn-a-substring-into-a-string/25336 "2019-06-16T08:26:28Z")

</div>

Sometimes I’m dealing with a function that only wants a String and not an AbstractString. // this usually occurs if you use someone else’s code and you have a SubString Is there a surefire way to convert a SubString t…

---

## [How to solve DDE with different constant lags](https://discourse.julialang.org/t/how-to-solve-dde-with-different-constant-lags/25330)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 2\
**Last updated:** [June 15, 2019, 10:01pm UTC](https://discourse.julialang.org/t/how-to-solve-dde-with-different-constant-lags/25330 "2019-06-15T22:01:57Z")

</div>

I am trying to solve the following delay differential equation using DifferentialEquations.jl. \\dot{y\_1}(t) = y\_1(t - 1)\\\\ \\dot{y\_2}(t) = y\_1(t - 1) + y\_2(t - 0.2)\\\\ \\dot{y\_3}(t) = y\_2(t) The history function for t \\…

---

## [Examples for Debugger](https://discourse.julialang.org/t/examples-for-debugger/23648)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 14\
**Last updated:** [June 15, 2019, 7:59pm UTC](https://discourse.julialang.org/t/examples-for-debugger/23648 "2019-06-15T19:59:37Z")

</div>

Hello, I am a beginner Julia user (and programmer) and am trying to learn how to use the debugger in Atom. From the link, I understand that I need to install Debugger, Rebugger, Revise, JuliaInterpreter, LoweredCodeUtil…

---

## [Request: What visual aids do you use to teach Julia?](https://discourse.julialang.org/t/request-what-visual-aids-do-you-use-to-teach-julia/25324)

<div class="topic-metadata">

**Author:** [@miguelraz](https://discourse.julialang.org/u/miguelraz)\
**Replies:** 11\
**Last updated:** [June 15, 2019, 6:32pm UTC](https://discourse.julialang.org/t/request-what-visual-aids-do-you-use-to-teach-julia/25324 "2019-06-15T18:32:46Z")

</div>

Hello all! I’m working on my poster for JuliaCon, and there’s a part of it that uses a visual guide to teach software practices and principles, Julia style. I’ve just about read every intro tutorial and the Julia manua…

---

## [Problem porting SFML.jl to Julia 1.1](https://discourse.julialang.org/t/problem-porting-sfml-jl-to-julia-1-1/20029)

<div class="topic-metadata">

**Author:** [@dmolina](https://discourse.julialang.org/u/dmolina)\
**Replies:** 16\
**Last updated:** [June 15, 2019, 6:11pm UTC](https://discourse.julialang.org/t/problem-porting-sfml-jl-to-julia-1-1/20029 "2019-06-15T18:11:42Z")

</div>

I was very interested in porting SFML.jl (from nice work of zyedidia, https://github.com/zyedidia/SFML.jl) to current Julia, because it is not working for Julia 0.7 (and I like to use SFML in my programming introductor…

---

## [Planning to launch an annual Julia developers survey](https://discourse.julialang.org/t/planning-to-launch-an-annual-julia-developers-survey/24217)

<div class="topic-metadata">

**Author:** [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Replies:** 23\
**Last updated:** [June 15, 2019, 5:36pm UTC](https://discourse.julialang.org/t/planning-to-launch-an-annual-julia-developers-survey/24217 "2019-06-15T17:36:07Z")

</div>

Folks, We (at Julia Computing) are planning to put out a survey of Julia developers. We hope to put it out annually roughly at this time of the year, so that the results can be presented at JuliaCon. Here’s the survey …

---

## [Static type checking article](https://discourse.julialang.org/t/static-type-checking-article/25329)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [June 15, 2019, 4:58pm UTC](https://discourse.julialang.org/t/static-type-checking-article/25329 "2019-06-15T16:58:21Z")

</div>

---

## [\[ANN\] NamedTupleTools.jl](https://discourse.julialang.org/t/ann-namedtupletools-jl/15374)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 9\
**Last updated:** [June 15, 2019, 11:51am UTC](https://discourse.julialang.org/t/ann-namedtupletools-jl/15374 "2019-06-15T11:51:47Z")

</div>

NamedTupleTools is a small package that makes doing a few things with NamedTuples a bit easier. (Julia v1.0) using NamedTupleTools julia\> namedtuple(:a, :b, :c)(1, 2.0, "three") (a = 1, b = 2.0, c = "three") #= n…

---

## [Usage of local keyword in global scope](https://discourse.julialang.org/t/usage-of-local-keyword-in-global-scope/25325)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 1\
**Last updated:** [June 15, 2019, 10:04am UTC](https://discourse.julialang.org/t/usage-of-local-keyword-in-global-scope/25325 "2019-06-15T10:04:08Z")

</div>

Currently local keyword is allowed in global scope. You can write things like: local x = 1 or local f() = 1 However, bindings to x nor f are not introduced in global scope and defining f effectively is equivalent to …

---

## [AbstractPlotting documentation?](https://discourse.julialang.org/t/abstractplotting-documentation/25296)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 2\
**Last updated:** [June 15, 2019, 9:51am UTC](https://discourse.julialang.org/t/abstractplotting-documentation/25296 "2019-06-15T09:51:14Z")

</div>

Is there a documentation for AbstractPlotting? I would like to know how to couple the height of two scenes(heatmap, colorbar) and how to detect that the window of an interactive scene is closed.

---

## [Maximum BLAS threads number](https://discourse.julialang.org/t/maximum-blas-threads-number/25320)

<div class="topic-metadata">

**Author:** [@shipengcheng1230](https://discourse.julialang.org/u/shipengcheng1230)\
**Replies:** 2\
**Last updated:** [June 15, 2019, 1:03am UTC](https://discourse.julialang.org/t/maximum-blas-threads-number/25320 "2019-06-15T01:03:53Z")

</div>

Hi, consider the following example: julia\> versioninfo() Julia Version 1.1.1 Commit 55e36cc308 (2019-05-16 04:10 UTC) Platform Info: OS: Linux (x86\_64-pc-linux-gnu) CPU: Intel(R) Xeon(R) Gold 6136 CPU @ 3.00GHz WO…

---

## [Makie.jl: How to plot a 3D sphere?](https://discourse.julialang.org/t/makie-jl-how-to-plot-a-3d-sphere/25302)

<div class="topic-metadata">

**Author:** [@machakann](https://discourse.julialang.org/u/machakann)\
**Replies:** 6\
**Last updated:** [June 15, 2019, 12:57am UTC](https://discourse.julialang.org/t/makie-jl-how-to-plot-a-3d-sphere/25302 "2019-06-15T00:57:56Z")

</div>

Hi, I just started to learn Makie.jl package and am facing a problem. I would like to make a 3D plot with scatter() function. When I tried to plot two spheres, I got what I expected. using Makie x = \[0, 1\] y = \[0, 1\] z…

---

## [Dependency Hell](https://discourse.julialang.org/t/dependency-hell/25172)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 10\
**Last updated:** [June 15, 2019, 12:03am UTC](https://discourse.julialang.org/t/dependency-hell/25172 "2019-06-15T00:03:11Z")

</div>

I’ll start with the problem(s): (v1.1) pkg\> status Status \`C:\\Users\\rdboylan\\.julia\\environments\\v1.1\\Project.toml\` \[c52e3926\] Atom v0.8.7 \[38e38edf\] GLM v1.1.2 \[\`dev\\GLM\`\] \[54eb57ff\] InteractiveCodeSearch v0.…

---

## [Trying to understand memory usage](https://discourse.julialang.org/t/trying-to-understand-memory-usage/25316)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [June 14, 2019, 9:52pm UTC](https://discourse.julialang.org/t/trying-to-understand-memory-usage/25316 "2019-06-14T21:52:22Z")

</div>

I’m trying to understand memory usage and efficient coding of functions in Julia. Based on: using LinearAlgebra using BenchmarkTools consider the following 3 illustrative functions \[illustrating ideas; not the ones I w…

---

## [Improving performance of tensor contractions](https://discourse.julialang.org/t/improving-performance-of-tensor-contractions/25180)

<div class="topic-metadata">

**Author:** [@alvrg](https://discourse.julialang.org/u/alvrg)\
**Replies:** 7\
**Last updated:** [June 14, 2019, 9:18pm UTC](https://discourse.julialang.org/t/improving-performance-of-tensor-contractions/25180 "2019-06-14T21:18:40Z")

</div>

Hi all, I want to build a function that takes several tensors, contracts them, and outputs a tensor as a final result. I was using TensorOperations.jl as a draft, but I felt I could improve the performance making the co…

---

## [Functions copyto! and splat don't work with arrays with #undef 'values'](https://discourse.julialang.org/t/functions-copyto-and-splat-dont-work-with-arrays-with-undef-values/25322)

<div class="topic-metadata">

**Author:** [@Codyk12](https://discourse.julialang.org/u/Codyk12)\
**Replies:** 4\
**Last updated:** [June 14, 2019, 8:46pm UTC](https://discourse.julialang.org/t/functions-copyto-and-splat-dont-work-with-arrays-with-undef-values/25322 "2019-06-14T20:46:43Z")

</div>

The copyto!() function and splat(…) are unable to handle arrays with uninitialized values. Is this supposed to not work or reasons I’m not seeing, or should this be fixable? Here is an example: julia\> a = Array{String…

---

## [What do people use to make widgets?](https://discourse.julialang.org/t/what-do-people-use-to-make-widgets/25321)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 0\
**Last updated:** [June 14, 2019, 8:10pm UTC](https://discourse.julialang.org/t/what-do-people-use-to-make-widgets/25321 "2019-06-14T20:10:28Z")

</div>

Hi all, I made tetris last year and was interested in making a new video game widget. Does anyone know the current state of the widget ecosystem? What packages would be conducive to developing a javascript/css/html bas…

---

## [Flux save and load models, BSON file](https://discourse.julialang.org/t/flux-save-and-load-models-bson-file/25310)

<div class="topic-metadata">

**Author:** [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Replies:** 2\
**Last updated:** [June 14, 2019, 8:04pm UTC](https://discourse.julialang.org/t/flux-save-and-load-models-bson-file/25310 "2019-06-14T20:04:10Z")

</div>

The question is: How to save and load more than one model into a single \*.BSON file? It’s even possible? @MikeInnes Cheers!

---

## [Error when using PyPlot for the first time](https://discourse.julialang.org/t/error-when-using-pyplot-for-the-first-time/25319)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 0\
**Last updated:** [June 14, 2019, 7:37pm UTC](https://discourse.julialang.org/t/error-when-using-pyplot-for-the-first-time/25319 "2019-06-14T19:37:21Z")

</div>

I was trying to get acquainted with julia’s PyPlot library. I tried using PyPlot; imshow(rand(30, 30)); but I get the following error message error in background error handler: out of stack space (infinite loop?) …

---

## [Outer constructor in testset](https://discourse.julialang.org/t/outer-constructor-in-testset/25318)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 1\
**Last updated:** [June 14, 2019, 6:42pm UTC](https://discourse.julialang.org/t/outer-constructor-in-testset/25318 "2019-06-14T18:42:03Z")

</div>

Hi, I’m having some trouble using structs inside @testsets: julia\> @testset "teststruct" begin struct a end a(b) = a() end teststruct: Error During Test at none:1 Got exception outside of a @test…

---

## [DAE with measurement type](https://discourse.julialang.org/t/dae-with-measurement-type/25281)

<div class="topic-metadata">

**Author:** [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Replies:** 5\
**Last updated:** [June 14, 2019, 5:40pm UTC](https://discourse.julialang.org/t/dae-with-measurement-type/25281 "2019-06-14T17:40:29Z")

</div>

Hi there I am running a complex set of differential equations and at some point it fails because of gemm!. The short story is that gemm! does not work with the meassurememnt type, and because the solver is calling gemm!…

---

## [Rounding when reading in decimals from CSV](https://discourse.julialang.org/t/rounding-when-reading-in-decimals-from-csv/25308)

<div class="topic-metadata">

**Author:** [@stu](https://discourse.julialang.org/u/stu)\
**Replies:** 4\
**Last updated:** [June 14, 2019, 4:25pm UTC](https://discourse.julialang.org/t/rounding-when-reading-in-decimals-from-csv/25308 "2019-06-14T16:25:23Z")

</div>

Is there a way to prevent the data from being rounded after a certain number of decimal points when reading it in from a CSV?

---

## [Function does not run correctly (Linear and Cartesian Indices)](https://discourse.julialang.org/t/function-does-not-run-correctly-linear-and-cartesian-indices/25294)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 3\
**Last updated:** [June 14, 2019, 4:11pm UTC](https://discourse.julialang.org/t/function-does-not-run-correctly-linear-and-cartesian-indices/25294 "2019-06-14T16:11:13Z")

</div>

Basically, I have a test function which I call from a main script in Atom. However, the function returns NaN array as mA. Whereas, if I copy paste and run parts of the code inside REPL it runs without any issue. Where i…

---

## [Reinterpret as a complex struct](https://discourse.julialang.org/t/reinterpret-as-a-complex-struct/24784)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 11\
**Last updated:** [June 14, 2019, 3:41pm UTC](https://discourse.julialang.org/t/reinterpret-as-a-complex-struct/24784 "2019-06-14T15:41:50Z")

</div>

Hi! There is a dataset loaded by a 3rd-party library in the form of a raw float array. I want to view this data as a vector of structs A, each having layout like this: \<F32\>\<F32\>\<F32\>(B\*8\*60\*3\*4)\<F32\>, i.e. three floats,…

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

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