# Latest

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

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

**Page:** 1937

---

## [How to make arrays of array?](https://discourse.julialang.org/t/how-to-make-arrays-of-array/27863)

<div class="topic-metadata">

**Author:** [@maxiumburn](https://discourse.julialang.org/u/maxiumburn)\
**Replies:** 2\
**Last updated:** [August 22, 2019, 8:43pm UTC](https://discourse.julialang.org/t/how-to-make-arrays-of-array/27863 "2019-08-22T20:43:25Z")

</div>

I would like to store an Array (Tic Tac Toe Game (initialized) position 3 X 3 array of string(A = fill(“”,3,3)) in a list array. The game A gets filled with moves of X and O, so my list of game positions would have a l…

---

## [What is T in : function pca(data::Array{T,2}) where T?](https://discourse.julialang.org/t/what-is-t-in-function-pca-data-array-t-2-where-t/27811)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 8\
**Last updated:** [August 22, 2019, 8:42pm UTC](https://discourse.julialang.org/t/what-is-t-in-function-pca-data-array-t-2-where-t/27811 "2019-08-22T20:42:09Z")

</div>

Is function: function pca(data::Array{T,2}) where T X = data .- mean(data, dims=2) Y = X' ./ sqrt(T(size(X,2)-1)) U,S,PC = svd(Y) S = diagm(0=\>S) V = S .\* S # find the least variance vector …

---

## [Subplots with Plots/pyplot()/Juno](https://discourse.julialang.org/t/subplots-with-plots-pyplot-juno/22425)

<div class="topic-metadata">

**Author:** [@tanhevg](https://discourse.julialang.org/u/tanhevg)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 8:26pm UTC](https://discourse.julialang.org/t/subplots-with-plots-pyplot-juno/22425 "2019-08-22T20:26:05Z")

</div>

Hello, I am trying to get subplots to work with Plots.jl and pyplot backend. My workflow is as follows: function my\_plot() ... scatter(...) end using Plots pyplot() p1 = my\_plot(args1); p2 = my\_plot(args2); plo…

---

## [Multivariate Rootfinding: problem with NLsolve (dual numbers not applicable for a function I am using)](https://discourse.julialang.org/t/multivariate-rootfinding-problem-with-nlsolve-dual-numbers-not-applicable-for-a-function-i-am-using/27844)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 2\
**Last updated:** [August 22, 2019, 8:25pm UTC](https://discourse.julialang.org/t/multivariate-rootfinding-problem-with-nlsolve-dual-numbers-not-applicable-for-a-function-i-am-using/27844 "2019-08-22T20:25:09Z")

</div>

Hi there, I have a multivariate rootfinding problem, where one of the functions utilizes QuantEcon.jl’s qnwnorm which generates the nodes for the Gauss-Hermite quadrature. However, using NLsolve on one of the parameters…

---

## [PyError, RuntimeError('Error in qhull Delaunay triangulation calculation: singular input](https://discourse.julialang.org/t/pyerror-runtimeerror-error-in-qhull-delaunay-triangulation-calculation-singular-input/19088)

<div class="topic-metadata">

**Author:** [@yasirhassan](https://discourse.julialang.org/u/yasirhassan)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 6:16pm UTC](https://discourse.julialang.org/t/pyerror-runtimeerror-error-in-qhull-delaunay-triangulation-calculation-singular-input/19088 "2019-08-22T18:16:29Z")

</div>

trying to run code: using Plots pyplot() x=y= range( 10, stop = 81, length = 12) r= sqrt.(x.^2 + y.^2) z = sin.(r) ./r ; Plots.plot(x,y,z, st= :surface, camera = (-30,30)) throws following error: Error showing va…

---

## [Probabilistic Programming with Turing.jl - Question about example](https://discourse.julialang.org/t/probabilistic-programming-with-turing-jl-question-about-example/27823)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 4\
**Last updated:** [August 22, 2019, 5:27pm UTC](https://discourse.julialang.org/t/probabilistic-programming-with-turing-jl-question-about-example/27823 "2019-08-22T17:27:36Z")

</div>

I’m a beginner with Turing.jl/probabilistic programming/Bayesian stats and I’m not understanding a key piece of the introductory coin-flip example in the docs and I’m hoping someone can explain it to me. I understand th…

---

## [How to plot different series from an array](https://discourse.julialang.org/t/how-to-plot-different-series-from-an-array/27843)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 4:59pm UTC](https://discourse.julialang.org/t/how-to-plot-different-series-from-an-array/27843 "2019-08-22T16:59:05Z")

</div>

Hello, I am using Atom on a Windows 10 and I have an array named final\_output\_array with three columns which looks like (but without column titles in Atom and blue added for ease of reading) And I want to make it look…

---

## [Speeding up DifferentialEquations solver by using different time steps for an ODE](https://discourse.julialang.org/t/speeding-up-differentialequations-solver-by-using-different-time-steps-for-an-ode/27724)

<div class="topic-metadata">

**Author:** [@rgalarcia](https://discourse.julialang.org/u/rgalarcia)\
**Replies:** 3\
**Last updated:** [August 22, 2019, 2:58pm UTC](https://discourse.julialang.org/t/speeding-up-differentialequations-solver-by-using-different-time-steps-for-an-ode/27724 "2019-08-22T14:58:23Z")

</div>

Dear developers, We are facing a project with the necessity of solving an ODE in Python. In order to do so we opted for a wrapper of Julia as it was the best option we found when a research on which ODE solver was a bet…

---

## [Best practice: modules and scripts for publishing](https://discourse.julialang.org/t/best-practice-modules-and-scripts-for-publishing/25375)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 6\
**Last updated:** [August 22, 2019, 11:54am UTC](https://discourse.julialang.org/t/best-practice-modules-and-scripts-for-publishing/25375 "2019-08-22T11:54:36Z")

</div>

I’m getting ready to publish an article using Julia-based code. I’m curious if anyone has thoughts about how such code should be arranged. Right now, I have a bunch of modules to separate functions, and a top-level scri…

---

## [Julia v1.2.0 has been released](https://discourse.julialang.org/t/julia-v1-2-0-has-been-released/27742)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 6\
**Last updated:** [August 22, 2019, 11:13am UTC](https://discourse.julialang.org/t/julia-v1-2-0-has-been-released/27742 "2019-08-22T11:13:16Z")

</div>

The Julia developers are pleased to announce the release of Julia v1.2.0, the second minor release in the 1.x series. Binaries are available for Linux, Windows, macOS, and FreeBSD at Download Julia. As a minor release, …

---

## [Running out of memory saving files with HDF5](https://discourse.julialang.org/t/running-out-of-memory-saving-files-with-hdf5/27802)

<div class="topic-metadata">

**Author:** [@PhillipBC](https://discourse.julialang.org/u/PhillipBC)\
**Replies:** 7\
**Last updated:** [August 22, 2019, 8:56am UTC](https://discourse.julialang.org/t/running-out-of-memory-saving-files-with-hdf5/27802 "2019-08-22T08:56:40Z")

</div>

Hey, I am trying to run something quite large in Julia, and I need to store a large number of Arrays (for constructing sparse matrices). Below is a simplified version of what I need to do, where it creates a random array…

---

## [Curve fitting with LsqFit](https://discourse.julialang.org/t/curve-fitting-with-lsqfit/27685)

<div class="topic-metadata">

**Author:** [@KirillGerke](https://discourse.julialang.org/u/KirillGerke)\
**Replies:** 5\
**Last updated:** [August 22, 2019, 8:28am UTC](https://discourse.julialang.org/t/curve-fitting-with-lsqfit/27685 "2019-08-22T08:28:07Z")

</div>

Dear All, My aim is to fit some real data with a pretty complex curve representing a superposition of dumping, oscillating and other simple ‘sub-curves’. I use LsqFit. Here is the code example: using LsqFit model(t,…

---

## [Does pmap() return in order?](https://discourse.julialang.org/t/does-pmap-return-in-order/27829)

<div class="topic-metadata">

**Author:** [@jchen975](https://discourse.julialang.org/u/jchen975)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 2:51am UTC](https://discourse.julialang.org/t/does-pmap-return-in-order/27829 "2019-08-22T02:51:33Z")

</div>

Let’s say I have a function f where I do something with the ith column of a matrix available to all workers (~40). I then return an array of Any and length 4: @everywhere function f(i:Int) //do something with the i-…

---

## [Constant propagation of kwargs possible?](https://discourse.julialang.org/t/constant-propagation-of-kwargs-possible/27810)

<div class="topic-metadata">

**Author:** [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Replies:** 3\
**Last updated:** [August 22, 2019, 2:41am UTC](https://discourse.julialang.org/t/constant-propagation-of-kwargs-possible/27810 "2019-08-22T02:41:46Z")

</div>

I suspect the answer is ‘no’, but is current Julia able to constant-propagate kwargs? In other words, is it possible to make the following infer in some way while preserving the kwarg? Julia 1.2 julia\> h(; n) = ntuple(…

---

## [Determine whether any one-argument method exists](https://discourse.julialang.org/t/determine-whether-any-one-argument-method-exists/19917)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 7\
**Last updated:** [August 21, 2019, 11:29pm UTC](https://discourse.julialang.org/t/determine-whether-any-one-argument-method-exists/19917 "2019-08-21T23:29:55Z")

</div>

I would like to check whether a function f has any one-argument methods. Since Union{} \<: \[any type\], I would argue that the following should work: hasmethod(f, Tuple{Union{}}) It seems to only work if f has a one-argu…

---

## [Fgpa + Julia?](https://discourse.julialang.org/t/fgpa-julia/27780)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [August 21, 2019, 9:32pm UTC](https://discourse.julialang.org/t/fgpa-julia/27780 "2019-08-21T21:32:23Z")

</div>

I was pretty excited when I saw this tweet by Keno https://twitter.com/KenoFischer/status/1154865907472183296?s=19 which is showing Julia on Fgpa. And I also see papers like this where FGPA are used to do data work eg …

---

## [$ interpolation into :()](https://discourse.julialang.org/t/interpolation-into/27806)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 4\
**Last updated:** [August 21, 2019, 8:48pm UTC](https://discourse.julialang.org/t/interpolation-into/27806 "2019-08-21T20:48:22Z")

</div>

Consider the following code: julia\> nt = (x=1, y=2) (x = 1, y = 2) julia\> k1 = keys(nt)\[1\] :x julia\> :($k1) :x julia\> :($(keys(nt)\[1\])) :x julia\> nt.:($k1) 1 julia\> nt.:($(keys(nt)\[1\])) ERROR: syntax: invalid synta…

---

## [\[Cincinnati, USA\] Julia workshop, Aug 19-21, 2019](https://discourse.julialang.org/t/cincinnati-usa-julia-workshop-aug-19-21-2019/27249)

<div class="topic-metadata">

**Author:** [@jeffm](https://discourse.julialang.org/u/jeffm)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 8:04pm UTC](https://discourse.julialang.org/t/cincinnati-usa-julia-workshop-aug-19-21-2019/27249 "2019-08-21T20:04:55Z")

</div>

We are holding a Julia workshop in Cincinnati for the second year, and David P. Sanders has graciously agreed to come again to lead the workshop. For more details and to register, please visit: http://www.business.uc.e…

---

## [Package Manager Documentation](https://discourse.julialang.org/t/package-manager-documentation/27351)

<div class="topic-metadata">

**Author:** [@wbhart](https://discourse.julialang.org/u/wbhart)\
**Replies:** 13\
**Last updated:** [August 21, 2019, 7:42pm UTC](https://discourse.julialang.org/t/package-manager-documentation/27351 "2019-08-21T19:42:14Z")

</div>

Improving package documentation Today I decided to try and do something constructive to improve the documentation for the Julia Package Manager. As I am very confused by it and a total noob when it comes to package syst…

---

## [Add incoming data to a DataFrame](https://discourse.julialang.org/t/add-incoming-data-to-a-dataframe/27543)

<div class="topic-metadata">

**Author:** [@uwbanjoman](https://discourse.julialang.org/u/uwbanjoman)\
**Replies:** 5\
**Last updated:** [August 21, 2019, 7:38pm UTC](https://discourse.julialang.org/t/add-incoming-data-to-a-dataframe/27543 "2019-08-21T19:38:51Z")

</div>

Hi, I made a DataFrame ab and i want to fill it with incoming data from aa\[13\]. aa\[13\] is incoming data which is refreshed every some time period. if I want to push! the current row I’d do this: julia\> push!(ab,aa\[13…

---

## [How to get the principal components and variances from MultivariateStats?](https://discourse.julialang.org/t/how-to-get-the-principal-components-and-variances-from-multivariatestats/15843)

<div class="topic-metadata">

**Author:** [@jwu](https://discourse.julialang.org/u/jwu)\
**Replies:** 4\
**Last updated:** [August 21, 2019, 6:08pm UTC](https://discourse.julialang.org/t/how-to-get-the-principal-components-and-variances-from-multivariatestats/15843 "2019-08-21T18:08:40Z")

</div>

Hi all, I have run PCA and got the model, but I have not find any function to get the principal components and variances. https://multivariatestatsjl.readthedocs.io/en/latest/pca.html any hints would be appreciated. …

---

## [Extra allocation in @thread loop in v1.2](https://discourse.julialang.org/t/extra-allocation-in-thread-loop-in-v1-2/27775)

<div class="topic-metadata">

**Author:** [@shipengcheng1230](https://discourse.julialang.org/u/shipengcheng1230)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 5:39pm UTC](https://discourse.julialang.org/t/extra-allocation-in-thread-loop-in-v1-2/27775 "2019-08-21T17:39:19Z")

</div>

Consider the following MWE of threaded element-wise computation: using Base.Threads using LinearAlgebra using BenchmarkTools const N = 100000 a = rand(N) b = rand(N) function foo(a, b) @threads for i ∈ eachindex(a…

---

## [Unregistered depency not being downloaded despite being listed in Manifest.toml](https://discourse.julialang.org/t/unregistered-depency-not-being-downloaded-despite-being-listed-in-manifest-toml/27232)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 6\
**Last updated:** [August 21, 2019, 3:29pm UTC](https://discourse.julialang.org/t/unregistered-depency-not-being-downloaded-despite-being-listed-in-manifest-toml/27232 "2019-08-21T15:29:26Z")

</div>

Hello, I develop a package that depends on another unregistered package. I built the Manifest.toml file to include my unregistered package (link here, the unlisted dependcy is BlockDiagonal.jl), which even shows the URL…

---

## [StructJuMP](https://discourse.julialang.org/t/structjump/27797)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 3:17pm UTC](https://discourse.julialang.org/t/structjump/27797 "2019-08-21T15:17:45Z")

</div>

Any advice on how to get the extensive form from a StructuredModel?

---

## [Pkg.installed("PackageName") for Julia v1.0?](https://discourse.julialang.org/t/pkg-installed-packagename-for-julia-v1-0/16341)

<div class="topic-metadata">

**Author:** [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Replies:** 4\
**Last updated:** [August 21, 2019, 3:11pm UTC](https://discourse.julialang.org/t/pkg-installed-packagename-for-julia-v1-0/16341 "2019-08-21T15:11:38Z")

</div>

I was wondering if there is an equivalent code for Pkg.installed("PackageName") or Pkg.status("PackageName") in Julia v1.0. I want to check the version of a package installed.

---

## [Why do Tasks scheduled not print in the order they are called or not update the global variables in successive prints when called?](https://discourse.julialang.org/t/why-do-tasks-scheduled-not-print-in-the-order-they-are-called-or-not-update-the-global-variables-in-successive-prints-when-called/27799)

<div class="topic-metadata">

**Author:** [@mantzaris](https://discourse.julialang.org/u/mantzaris)\
**Replies:** 3\
**Last updated:** [August 21, 2019, 2:15pm UTC](https://discourse.julialang.org/t/why-do-tasks-scheduled-not-print-in-the-order-they-are-called-or-not-update-the-global-variables-in-successive-prints-when-called/27799 "2019-08-21T14:15:22Z")

</div>

I am confused as to why one versions of my MWE is not able to alter a global variable value within subsequent calls to a function which is scheduled as a Task but the other version is, when the original Task calls for s…

---

## [Biostar Handbook, computational genomics, and Julia - to be or not to be?](https://discourse.julialang.org/t/biostar-handbook-computational-genomics-and-julia-to-be-or-not-to-be/25732)

<div class="topic-metadata">

**Author:** [@XVilka](https://discourse.julialang.org/u/XVilka)\
**Replies:** 23\
**Last updated:** [August 21, 2019, 2:03pm UTC](https://discourse.julialang.org/t/biostar-handbook-computational-genomics-and-julia-to-be-or-not-to-be/25732 "2019-08-21T14:03:56Z")

</div>

How many people started to learn bioinformatics with Julia, not Python? I guess not many. There is a unique opportunity to change that - one of the most recommended books for the beginners in this area is Biostar Handboo…

---

## [Developing a standalone application in Julia](https://discourse.julialang.org/t/developing-a-standalone-application-in-julia/27795)

<div class="topic-metadata">

**Author:** [@blaiseli](https://discourse.julialang.org/u/blaiseli)\
**Replies:** 2\
**Last updated:** [August 21, 2019, 10:26am UTC](https://discourse.julialang.org/t/developing-a-standalone-application-in-julia/27795 "2019-08-21T10:26:42Z")

</div>

Hello, I’m new to Julia (my experience being mostly in Python), I work in the field of bioinformatics, and I work on Linux systems. I would like to develop a Julia version of a standalone application for which I alread…

---

## [Plot limit at next tick label](https://discourse.julialang.org/t/plot-limit-at-next-tick-label/27704)

<div class="topic-metadata">

**Author:** [@aahaselgrove](https://discourse.julialang.org/u/aahaselgrove)\
**Replies:** 4\
**Last updated:** [August 21, 2019, 10:19am UTC](https://discourse.julialang.org/t/plot-limit-at-next-tick-label/27704 "2019-08-21T10:19:52Z")

</div>

I would like my plot axes to end at a tick label. How best may this be accomplished? Nice-looking plot: using Plots using Random Random.seed!(0) time = 0:20 spend = 0.8 \* rand(21) bar(time, spend, title="Spend over…

---

## [Encode a plot to base64?](https://discourse.julialang.org/t/encode-a-plot-to-base64/27765)

<div class="topic-metadata">

**Author:** [@Losses](https://discourse.julialang.org/u/Losses)\
**Replies:** 5\
**Last updated:** [August 21, 2019, 10:13am UTC](https://discourse.julialang.org/t/encode-a-plot-to-base64/27765 "2019-08-21T10:13:20Z")

</div>

Hello everyone, I’m trying to encode a plot to base64 string, but facing some trouble. That’s what I’m trying to do: using Plotly a = plot(x,y,title="Two Lines",label=\["Line 1" "Line 2"\],lw=3); io = IOBuffer(); iob64\_…

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

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