# Latest

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

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

**Page:** 1980

---

## [Read/write compressed files in julia 0.7](https://discourse.julialang.org/t/read-write-compressed-files-in-julia-0-7/24791)

<div class="topic-metadata">

**Author:** [@Herb](https://discourse.julialang.org/u/Herb)\
**Replies:** 3\
**Last updated:** [June 13, 2019, 4:51am UTC](https://discourse.julialang.org/t/read-write-compressed-files-in-julia-0-7/24791 "2019-06-13T04:51:37Z")

</div>

I’ve written extensive code in julia 0.6.3 using GZip to read and write compressed files. julia 0.7 doesn’t understand GZip. What am I doing wrong?

---

## [An array of empty arrays](https://discourse.julialang.org/t/an-array-of-empty-arrays/5476)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 15\
**Last updated:** [June 13, 2019, 4:00am UTC](https://discourse.julialang.org/t/an-array-of-empty-arrays/5476 "2019-06-13T04:00:34Z")

</div>

Is this the best, or only, way to do this ? julia\> a=Array{Any,1}(5) 5-element Array{Any,1}: #undef #undef #undef #undef #undef julia\> fill!(a,\[\]) 5-element Array{Any,1}: Any\[\] Any\[\] Any\[\] Any\[\] Any\[\] just c…

---

## [Explicit Jacobian on DAEs?](https://discourse.julialang.org/t/explicit-jacobian-on-daes/21477)

<div class="topic-metadata">

**Author:** [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Replies:** 72\
**Last updated:** [June 13, 2019, 2:40am UTC](https://discourse.julialang.org/t/explicit-jacobian-on-daes/21477 "2019-06-13T02:40:38Z")

</div>

Hello all, I am new to this forum I am somewhat confused on how to solve DAEs using the DifferentialEquations package - I am trying to solve a large system, that I think requires explicit Jacobian definition. I defin…

---

## [DifferentialEquations.jl default options for a solver](https://discourse.julialang.org/t/differentialequations-jl-default-options-for-a-solver/19937)

<div class="topic-metadata">

**Author:** [@michaelkyu](https://discourse.julialang.org/u/michaelkyu)\
**Replies:** 2\
**Last updated:** [June 13, 2019, 1:45am UTC](https://discourse.julialang.org/t/differentialequations-jl-default-options-for-a-solver/19937 "2019-06-13T01:45:54Z")

</div>

In DifferentialEquations.jl, how can I find out the default options for a specific solver? In particular, I’d like to know the default options for the ODE solver DP5. I see a description of options in the docs, but I don…

---

## [@distributed computing](https://discourse.julialang.org/t/distributed-computing/25178)

<div class="topic-metadata">

**Author:** [@STHossain](https://discourse.julialang.org/u/STHossain)\
**Replies:** 13\
**Last updated:** [June 12, 2019, 10:52pm UTC](https://discourse.julialang.org/t/distributed-computing/25178 "2019-06-12T22:52:58Z")

</div>

I was trying to use @distributed in a for loop, where the end result is two arrays. Here is the code without @distributed function check\_par(M) take\_vec1 = Array{Float32}(undef,0) take\_vec2 = Array{Float32}(un…

---

## [Seaborn like countplot](https://discourse.julialang.org/t/seaborn-like-countplot/25133)

<div class="topic-metadata">

**Author:** [@GdMacmillan](https://discourse.julialang.org/u/GdMacmillan)\
**Replies:** 3\
**Last updated:** [June 12, 2019, 10:21pm UTC](https://discourse.julialang.org/t/seaborn-like-countplot/25133 "2019-06-12T22:21:15Z")

</div>

I was looking for a recipe for the type of plot used in Seaborn to group categorical data. The Countplot, shown below from python is what I want. Is this implemented in julia or easy to do so?

---

## [Getting Error to load dataset in Julia v1.1.1](https://discourse.julialang.org/t/getting-error-to-load-dataset-in-julia-v1-1-1/25202)

<div class="topic-metadata">

**Author:** [@shahriariit](https://discourse.julialang.org/u/shahriariit)\
**Replies:** 1\
**Last updated:** [June 12, 2019, 10:09pm UTC](https://discourse.julialang.org/t/getting-error-to-load-dataset-in-julia-v1-1-1/25202 "2019-06-12T22:09:34Z")

</div>

I try to load following code using DataFrames, Query, CSV, JLD2, StatsBase, MLLabelUtils, Random include("chp3\_functions.jl") Random.seed!(24908) ## Types for the files columns IntOrMiss = Union{Int64,Missing} FltOrMis…

---

## [Parsing Float32 literals](https://discourse.julialang.org/t/parsing-float32-literals/25204)

<div class="topic-metadata">

**Author:** [@DNF](https://discourse.julialang.org/u/DNF)\
**Replies:** 3\
**Last updated:** [June 12, 2019, 8:19pm UTC](https://discourse.julialang.org/t/parsing-float32-literals/25204 "2019-06-12T20:19:12Z")

</div>

This caught me by surprise: julia\> parse(Float32, "1.0f0") ERROR: ArgumentError: cannot parse "1.0f0" as Float32 Float32 seems special julia\> x = UInt8(1) 0x01 julia\> parse(typeof(x), repr(x)) 0x01 julia\> x = UInt16…

---

## [What show function is called in the REPL?](https://discourse.julialang.org/t/what-show-function-is-called-in-the-repl/3262)

<div class="topic-metadata">

**Author:** [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Replies:** 8\
**Last updated:** [June 12, 2019, 7:25pm UTC](https://discourse.julialang.org/t/what-show-function-is-called-in-the-repl/3262 "2019-06-12T19:25:01Z")

</div>

I assumed it was just show but at least for arrays something else is going on: julia\> rand(3,3) 3×3 Array{Float64,2}: 0.945084 0.86556 0.727404 0.128891 0.180756 0.228008 0.0498265 0.639407 0.20455 julia\> …

---

## [Is a .osm file of size 668.7 MB too big for the following operations?](https://discourse.julialang.org/t/is-a-osm-file-of-size-668-7-mb-too-big-for-the-following-operations/25146)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 23\
**Last updated:** [June 12, 2019, 7:20pm UTC](https://discourse.julialang.org/t/is-a-osm-file-of-size-668-7-mb-too-big-for-the-following-operations/25146 "2019-06-12T19:20:57Z")

</div>

Hi, I was trying the following code, but with no lucks. It seems like my computer has no responses. The code: \> using OpenStreetMapX \> mx = get\_map\_data("test/data/reno\_east3.osm",use\_cache=false); \> using Random \> Ran…

---

## [2019 Julia User and Developer Survey](https://discourse.julialang.org/t/2019-julia-user-and-developer-survey/25201)

<div class="topic-metadata">

**Author:** [@viralbshah](https://discourse.julialang.org/u/viralbshah)\
**Replies:** 0\
**Last updated:** [June 12, 2019, 6:26pm UTC](https://discourse.julialang.org/t/2019-julia-user-and-developer-survey/25201 "2019-06-12T18:26:41Z")

</div>

Dear all, The 2019 Julia User and Developer Survey is now live, and I request everyone to take it. Also ask your friends and colleagues to take it. I took it and it takes 5-10 mins to answer all the questions. The resul…

---

## [Static data in a package](https://discourse.julialang.org/t/static-data-in-a-package/25165)

<div class="topic-metadata">

**Author:** [@Pavel\_Kalouguine](https://discourse.julialang.org/u/Pavel_Kalouguine)\
**Replies:** 8\
**Last updated:** [June 12, 2019, 5:40pm UTC](https://discourse.julialang.org/t/static-data-in-a-package/25165 "2019-06-12T17:40:44Z")

</div>

What is the best place for static data in a package? The data in question is Waasmaier-Kirfel table of atomic X-ray formfactors. The current solution is to place the datafile in the subfolder “data” of the “src” folder, …

---

## [Why is applying formatting so slow?](https://discourse.julialang.org/t/why-is-applying-formatting-so-slow/25196)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 0\
**Last updated:** [June 12, 2019, 4:44pm UTC](https://discourse.julialang.org/t/why-is-applying-formatting-so-slow/25196 "2019-06-12T16:44:53Z")

</div>

Moments ago (c 9:30am Pacific 6/12) I entered the text of a reply (Dependency Hell - #4 by Ross\_Boylan) and then wanted to add code formatting around various words and phrases. So I highlighted the text and clicked the \<…

---

## [Streaming gzipped BCF files: issue with CHROM field](https://discourse.julialang.org/t/streaming-gzipped-bcf-files-issue-with-chrom-field/25194)

<div class="topic-metadata">

**Author:** [@kaskarn](https://discourse.julialang.org/u/kaskarn)\
**Replies:** 1\
**Last updated:** [June 12, 2019, 3:55pm UTC](https://discourse.julialang.org/t/streaming-gzipped-bcf-files-issue-with-chrom-field/25194 "2019-06-12T15:55:34Z")

</div>

Hello, I first posted this as an issue on the GeneticVariation github: github.com/BioJulia/GeneticVariation.jl/issues/25 However, I suspect this may be a better place for it, since the package may not be at fault here…

---

## [Flux RNN on a GPU - unnecessary copying](https://discourse.julialang.org/t/flux-rnn-on-a-gpu-unnecessary-copying/25190)

<div class="topic-metadata">

**Author:** [@tanhevg](https://discourse.julialang.org/u/tanhevg)\
**Replies:** 0\
**Last updated:** [June 12, 2019, 12:40pm UTC](https://discourse.julialang.org/t/flux-rnn-on-a-gpu-unnecessary-copying/25190 "2019-06-12T12:40:30Z")

</div>

Hello, A question for someone who has experience writing/debugging GPU code. Consider something like this: using CuArrays, Flux lstm = LSTM(5, 3) |\> gpu data = \[rand(5) for i=1:10\] data = gpu.(data) out = lstm.(data) …

---

## [Pmap use of processor cores](https://discourse.julialang.org/t/pmap-use-of-processor-cores/25121)

<div class="topic-metadata">

**Author:** [@abx](https://discourse.julialang.org/u/abx)\
**Replies:** 13\
**Last updated:** [June 12, 2019, 3:06pm UTC](https://discourse.julialang.org/t/pmap-use-of-processor-cores/25121 "2019-06-12T15:06:26Z")

</div>

I have a simple question about pmap and I can’t find a clear answer anywhere. When I have a series of pmap’d processes and let’s say, few of them are very heavy and require most of the resources, are the heavy tasks abl…

---

## [Dot overloading not supported in ScikitLearn.jl](https://discourse.julialang.org/t/dot-overloading-not-supported-in-scikitlearn-jl/25192)

<div class="topic-metadata">

**Author:** [@tosalonijain](https://discourse.julialang.org/u/tosalonijain)\
**Replies:** 1\
**Last updated:** [June 12, 2019, 2:20pm UTC](https://discourse.julialang.org/t/dot-overloading-not-supported-in-scikitlearn-jl/25192 "2019-06-12T14:20:24Z")

</div>

Hello, I am working on Julia and using ScikitLearn.jl as a package to access the ScikitLearn models of Machine Learning. As per the examples cited in the ScikitLearn.jl github repository documentation, I have used, for …

---

## [.= vs = speed difference](https://discourse.julialang.org/t/vs-speed-difference/25184)

<div class="topic-metadata">

**Author:** [@natemcintosh](https://discourse.julialang.org/u/natemcintosh)\
**Replies:** 2\
**Last updated:** [June 12, 2019, 12:40pm UTC](https://discourse.julialang.org/t/vs-speed-difference/25184 "2019-06-12T12:40:03Z")

</div>

Hi All, I have a question about what goes on “under the hood” for these two @benchmark calls julia\> A = rand(\[true, false\],100); B = rand(\[true, false\],100); julia\> @benchmark C = A .& B BenchmarkTools.Trial: memor…

---

## [HTTP 404 error on adding package by dependency DiffRules](https://discourse.julialang.org/t/http-404-error-on-adding-package-by-dependency-diffrules/25034)

<div class="topic-metadata">

**Author:** [@GeraldKaeferle](https://discourse.julialang.org/u/GeraldKaeferle)\
**Replies:** 6\
**Last updated:** [June 12, 2019, 11:02am UTC](https://discourse.julialang.org/t/http-404-error-on-adding-package-by-dependency-diffrules/25034 "2019-06-12T11:02:33Z")

</div>

Hello! I get this error messages when I try to install Gadfly or Flux. DiffRules.jl availability on GitHub seems not to be a problem and adding different packages e.g Wavelets.jl did work. \]update did’t help. I use Jul…

---

## [How does function named (::Type{T}) work in Julia?](https://discourse.julialang.org/t/how-does-function-named-type-t-work-in-julia/25175)

<div class="topic-metadata">

**Author:** [@HiroIshida](https://discourse.julialang.org/u/HiroIshida)\
**Replies:** 1\
**Last updated:** [June 12, 2019, 7:26am UTC](https://discourse.julialang.org/t/how-does-function-named-type-t-work-in-julia/25175 "2019-06-12T07:26:50Z")

</div>

I encountored syntax like funcion (::Type{T})(...)... and it seems that (::Type{T}) is a function name. Is it correct? Also, if so, could you explain how it works or tell me the corresponding documentation? I encountore…

---

## [Julia AWS.jl](https://discourse.julialang.org/t/julia-aws-jl/25137)

<div class="topic-metadata">

**Author:** [@Caesar\_KG](https://discourse.julialang.org/u/Caesar_KG)\
**Replies:** 4\
**Last updated:** [June 12, 2019, 7:33am UTC](https://discourse.julialang.org/t/julia-aws-jl/25137 "2019-06-12T07:33:37Z")

</div>

Is there anyone using AWS.jl on Julia 1.0 or 1.1? It seems that AWS.jl is no longer supported by these two versions. Can we fix this or do we have other alternatives? I’m using AWS to save user-uploaded files via a brows…

---

## [Constant propagation with Val and non-struct types](https://discourse.julialang.org/t/constant-propagation-with-val-and-non-struct-types/25100)

<div class="topic-metadata">

**Author:** [@bug-brain](https://discourse.julialang.org/u/bug-brain)\
**Replies:** 5\
**Last updated:** [June 12, 2019, 6:18am UTC](https://discourse.julialang.org/t/constant-propagation-with-val-and-non-struct-types/25100 "2019-06-12T06:18:05Z")

</div>

The type Val can be used to handily associate values with constants by writing a method of a function for each pair. It’s even handier to define a function that wraps the values in Val so you don’t have to type it. For …

---

## [Linear interpolation to find a GPS location (latitude, longitude) between two given GPS locations (latitudes, longitudes) using Julia](https://discourse.julialang.org/t/linear-interpolation-to-find-a-gps-location-latitude-longitude-between-two-given-gps-locations-latitudes-longitudes-using-julia/24858)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 8\
**Last updated:** [June 12, 2019, 12:48am UTC](https://discourse.julialang.org/t/linear-interpolation-to-find-a-gps-location-latitude-longitude-between-two-given-gps-locations-latitudes-longitudes-using-julia/24858 "2019-06-12T00:48:02Z")

</div>

I know how to do the following basic algebra calculation to find the y-value, say y\_0 of a intermediate point corresponding to a given t\_0 in a straight line from point (t\_1, y\_1) to (t\_2, y\_2). My question is, does it m…

---

## [Are there any obvious problems/code smells with this GPU code?](https://discourse.julialang.org/t/are-there-any-obvious-problems-code-smells-with-this-gpu-code/25160)

<div class="topic-metadata">

**Author:** [@currymj](https://discourse.julialang.org/u/currymj)\
**Replies:** 2\
**Last updated:** [June 12, 2019, 12:27am UTC](https://discourse.julialang.org/t/are-there-any-obvious-problems-code-smells-with-this-gpu-code/25160 "2019-06-12T00:27:43Z")

</div>

I am working on a small package to implement the Sinkhorn algorithm for optimal transport. Since this is frequently used as a loss function for generative models, my goal is to have an implementation that is generic eno…

---

## [Range vs. Array](https://discourse.julialang.org/t/range-vs-array/25171)

<div class="topic-metadata">

**Author:** [@mroavi](https://discourse.julialang.org/u/mroavi)\
**Replies:** 2\
**Last updated:** [June 12, 2019, 12:19am UTC](https://discourse.julialang.org/t/range-vs-array/25171 "2019-06-12T00:19:10Z")

</div>

I would like to understand why the two statements below generate different results. I was expecting both results to be the same (equal to the one produced by the second statement). I’m running Julia Version 1.1.0 (2019-0…

---

## [Use of std function in Statistics](https://discourse.julialang.org/t/use-of-std-function-in-statistics/25169)

<div class="topic-metadata">

**Author:** [@stu](https://discourse.julialang.org/u/stu)\
**Replies:** 2\
**Last updated:** [June 12, 2019, 12:02am UTC](https://discourse.julialang.org/t/use-of-std-function-in-statistics/25169 "2019-06-12T00:02:33Z")

</div>

I am trying to use this function result = Statistics.std(data\_data; corrected=true, mean=nothing, 2) But this is throwing an error and I do not understand why. Could anyone explain to properly format the parameters fo…

---

## [Json file with measurement values?](https://discourse.julialang.org/t/json-file-with-measurement-values/25170)

<div class="topic-metadata">

**Author:** [@alewolf](https://discourse.julialang.org/u/alewolf)\
**Replies:** 4\
**Last updated:** [June 11, 2019, 10:32pm UTC](https://discourse.julialang.org/t/json-file-with-measurement-values/25170 "2019-06-11T22:32:31Z")

</div>

I have a json file with measurement types- any idea how to read it back to julia? ie: file looks like S.json={ "D":4.0 ± 0.2, "tspan":{"t0":0,"tf":100}, "params":{ "p":20.0 ± 4.0…

---

## [3D Annotation Rotation](https://discourse.julialang.org/t/3d-annotation-rotation/25164)

<div class="topic-metadata">

**Author:** [@isamuelsson](https://discourse.julialang.org/u/isamuelsson)\
**Replies:** 0\
**Last updated:** [June 11, 2019, 7:18pm UTC](https://discourse.julialang.org/t/3d-annotation-rotation/25164 "2019-06-11T19:18:10Z")

</div>

Hi I am trying to find a way to annotate numbers that rotate/stay with the markers on my plot. Currently all the annotate functions I have found either do not rotate with the markers or do not allow for a 3rd dimension t…

---

## [Order matters when importing PyPlot and Plots, IJulia 1.18.1](https://discourse.julialang.org/t/order-matters-when-importing-pyplot-and-plots-ijulia-1-18-1/25147)

<div class="topic-metadata">

**Author:** [@maalaria](https://discourse.julialang.org/u/maalaria)\
**Replies:** 2\
**Last updated:** [June 11, 2019, 7:02pm UTC](https://discourse.julialang.org/t/order-matters-when-importing-pyplot-and-plots-ijulia-1-18-1/25147 "2019-06-11T19:02:08Z")

</div>

Dear all, I want to use PyPlot and Plots in parallel in order to enable interactivity for certain plots in jupyterlab (Julia 1.1.1; IJulia 1.18.1). It seems that import Plots, PyPlot pygui(true) leads to an error: Ar…

---

## [DifferentialEquations & inputs](https://discourse.julialang.org/t/differentialequations-inputs/25157)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [June 11, 2019, 6:18pm UTC](https://discourse.julialang.org/t/differentialequations-inputs/25157 "2019-06-11T18:18:01Z")

</div>

I’m trying to figure out the best way to pose a (control) system model of form: \\frac{dx}{dt} = f(x,u,t;\\theta) and use this model with DifferentialEquations. The “problem” is to merge two contradicting constraints: …

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

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