# Latest

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

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

**Page:** 1920

---

## [Storing Graphs](https://discourse.julialang.org/t/storing-graphs/28838)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 2:20pm UTC](https://discourse.julialang.org/t/storing-graphs/28838 "2019-09-17T14:20:44Z")

</div>

I use the following commands to generate small-world networks; using LightGraphs g = SimpleDiGraph{Int64} ; g = watts\_strogatz(100,24,0.5,is\_directed=true) ; I would like to generate 100 different small-world n…

---

## [Packages for Variational Bayes inference? Turing?](https://discourse.julialang.org/t/packages-for-variational-bayes-inference-turing/17904)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 12\
**Last updated:** [September 17, 2019, 2:01pm UTC](https://discourse.julialang.org/t/packages-for-variational-bayes-inference-turing/17904 "2019-09-17T14:01:16Z")

</div>

What is the most versatile and/or fasest Julia package for doing “Variational Bayes inference”? I’ve only found two packages: VarBayes.jl and TopicModelsVB.jl, the former seems deprecated. How can I do Variational Baye…

---

## [Error using plot](https://discourse.julialang.org/t/error-using-plot/28847)

<div class="topic-metadata">

**Author:** [@zikri\_alhamdi](https://discourse.julialang.org/u/zikri_alhamdi)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 1:32pm UTC](https://discourse.julialang.org/t/error-using-plot/28847 "2019-09-17T13:32:09Z")

</div>

julia\> using Plots \[ Info: Precompiling Plots \[91a5bcdd-55d7-5caf-9e0b-520d859cae80\] ERROR: LoadError: UndefVarError: ffmpeg not defined Stacktrace: \[1\] top-level scope at C:\\Users\\Lenovo.julia\\packages\\FFMPEG\\9JQpZ\\…

---

## [Julia 0.7: Package BinDeps not found in current path](https://discourse.julialang.org/t/julia-0-7-package-bindeps-not-found-in-current-path/13400)

<div class="topic-metadata">

**Author:** [@dpo](https://discourse.julialang.org/u/dpo)\
**Replies:** 5\
**Last updated:** [September 17, 2019, 12:16pm UTC](https://discourse.julialang.org/t/julia-0-7-package-bindeps-not-found-in-current-path/13400 "2019-09-17T12:16:57Z")

</div>

I’m trying to use BinDeps in AMD.jl with Julia 0.7 stable. The package looks for libamd, which ships with Julia but isn’t versioned. I wrote the simplest build.jl: using BinDeps @BinDeps.setup libamd = library\_dependenc…

---

## [Set file properties to readonly (Windows)](https://discourse.julialang.org/t/set-file-properties-to-readonly-windows/28839)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 1\
**Last updated:** [September 17, 2019, 12:09pm UTC](https://discourse.julialang.org/t/set-file-properties-to-readonly-windows/28839 "2019-09-17T12:09:44Z")

</div>

Is it possible to set a file to readonly with a julia command/script? I am using Windows.

---

## [Higher derivatives using ForwardDiff](https://discourse.julialang.org/t/higher-derivatives-using-forwarddiff/28814)

<div class="topic-metadata">

**Author:** [@RJDennis](https://discourse.julialang.org/u/RJDennis)\
**Replies:** 8\
**Last updated:** [September 17, 2019, 10:46am UTC](https://discourse.julialang.org/t/higher-derivatives-using-forwarddiff/28814 "2019-09-17T10:46:30Z")

</div>

Hi All, If I have a function, say, test(x) = x\[1\]^3\*log(x\[2\])\*sqrt(x\[3\]) then what is the best way to use ForwardDiff to compute higher-order partial derivatives of this function? I tried the following first\_d(x) = …

---

## [Digamma not defined in JuMP nonlinear optimization](https://discourse.julialang.org/t/digamma-not-defined-in-jump-nonlinear-optimization/28824)

<div class="topic-metadata">

**Author:** [@brwst](https://discourse.julialang.org/u/brwst)\
**Replies:** 2\
**Last updated:** [September 17, 2019, 2:00am UTC](https://discourse.julialang.org/t/digamma-not-defined-in-jump-nonlinear-optimization/28824 "2019-09-17T02:00:11Z")

</div>

Hello all, I’m trying to familiarize myself with JuMP, especially in the context of using SpecialFunctions. I’m struggling with gamma() and lgamma() specifically, so I’ve tried to implement the simple example from JuMP…

---

## [Implementation for matrix multiplication with \`adjoint\`](https://discourse.julialang.org/t/implementation-for-matrix-multiplication-with-adjoint/28828)

<div class="topic-metadata">

**Author:** [@tomohiro\_soejima](https://discourse.julialang.org/u/tomohiro_soejima)\
**Replies:** 4\
**Last updated:** [September 17, 2019, 1:54am UTC](https://discourse.julialang.org/t/implementation-for-matrix-multiplication-with-adjoint/28828 "2019-09-17T01:54:11Z")

</div>

Hi, As I understand it, adjoint creates a lazy wrapper for an adjoint of an array, and therefore does not create a copy. I’m wondering how multiplication is implemented in this case i.e. what kind of LAPACK functionalit…

---

## [When to use sizehint! for Dict?](https://discourse.julialang.org/t/when-to-use-sizehint-for-dict/28833)

<div class="topic-metadata">

**Author:** [@milesf](https://discourse.julialang.org/u/milesf)\
**Replies:** 0\
**Last updated:** [September 16, 2019, 11:17pm UTC](https://discourse.julialang.org/t/when-to-use-sizehint-for-dict/28833 "2019-09-16T23:17:01Z")

</div>

Benchmarking shows that using sizehint! to match the expected number of Dict elements is best in almost all cases, except when the number of elements is at or near 10^5. Both 10^4 and 10^6 prefer sizehint!, but 10^5 stra…

---

## [How to modify nprocs with DistributedArrays inside a function](https://discourse.julialang.org/t/how-to-modify-nprocs-with-distributedarrays-inside-a-function/28796)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 2\
**Last updated:** [September 16, 2019, 7:44pm UTC](https://discourse.julialang.org/t/how-to-modify-nprocs-with-distributedarrays-inside-a-function/28796 "2019-09-16T19:44:16Z")

</div>

Hi, I want to draw speed-up plots with Distributed and DistributedArrays. I use Distributed.addprocs inside my benchmark function but I should also use @everywhere using DistributedArrays that cannot (true ?) be calle…

---

## [How to make Julia slow?](https://discourse.julialang.org/t/how-to-make-julia-slow/28742)

<div class="topic-metadata">

**Author:** [@Carol](https://discourse.julialang.org/u/Carol)\
**Replies:** 11\
**Last updated:** [September 16, 2019, 6:55pm UTC](https://discourse.julialang.org/t/how-to-make-julia-slow/28742 "2019-09-16T18:55:09Z")

</div>

Hi, I want to test the speed of dot product dot()(speeded up by Julia) V.S. dot product without any parallel. I want to see how fast does Julia speed up the dot product. For non-parallel dot product, I write a for-loop…

---

## [Missing matrix-by-sparse-matrix multiplication specializations?](https://discourse.julialang.org/t/missing-matrix-by-sparse-matrix-multiplication-specializations/28816)

<div class="topic-metadata">

**Author:** [@dgleich](https://discourse.julialang.org/u/dgleich)\
**Replies:** 2\
**Last updated:** [September 16, 2019, 5:26pm UTC](https://discourse.julialang.org/t/missing-matrix-by-sparse-matrix-multiplication-specializations/28816 "2019-09-16T17:26:48Z")

</div>

It looks like the sparse matrix \* array specializations are missing a simple-to-add case: A = sparse (n-by-n, say) X = wide (k-by-n) Y = wide (k-by-n) Y = X\*A or mul!(Y,X,A) seems to fall back to the generic case. I…

---

## [Flux.jl, treat rows independently](https://discourse.julialang.org/t/flux-jl-treat-rows-independently/28822)

<div class="topic-metadata">

**Author:** [@modedec](https://discourse.julialang.org/u/modedec)\
**Replies:** 0\
**Last updated:** [September 16, 2019, 5:08pm UTC](https://discourse.julialang.org/t/flux-jl-treat-rows-independently/28822 "2019-09-16T17:08:01Z")

</div>

I would like to train on the rows feature independently. Therefore, I would like to have a dense layer for row 1, row 2 …, row n and at the end combine the 12 row outputs. Is it possible in Flux.jl. At the end I would li…

---

## [macOS homebrew SHA-256 checksum error](https://discourse.julialang.org/t/macos-homebrew-sha-256-checksum-error/28785)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 3\
**Last updated:** [September 16, 2019, 3:34pm UTC](https://discourse.julialang.org/t/macos-homebrew-sha-256-checksum-error/28785 "2019-09-16T15:34:14Z")

</div>

According to https://github.com/JuliaLang/julia/issues/31465 I should report such issues on discourse, so here we are… I am not able to install Julia 1.2.0 on a freshly installed latest macOS Mojave (10.14.6) with a shi…

---

## [Draw polygon around scatterplot data?](https://discourse.julialang.org/t/draw-polygon-around-scatterplot-data/28729)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 6\
**Last updated:** [September 16, 2019, 3:29pm UTC](https://discourse.julialang.org/t/draw-polygon-around-scatterplot-data/28729 "2019-09-16T15:29:22Z")

</div>

Is there any package or combination of packages that would let me draw a polygon around a region in scatterplot data? Even just pieces I could cobble something together from. The end goal is to use it to filter my point…

---

## [Coverage of semantic versioning for package APIs?](https://discourse.julialang.org/t/coverage-of-semantic-versioning-for-package-apis/28808)

<div class="topic-metadata">

**Author:** [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Replies:** 4\
**Last updated:** [September 16, 2019, 1:58pm UTC](https://discourse.julialang.org/t/coverage-of-semantic-versioning-for-package-apis/28808 "2019-09-16T13:58:40Z")

</div>

Sorry in case this has been asked before: What part of a Julia package API is supposed to by covered by semantic versioning conventions? Everything exported? Everything documented, whether exported or not (unless labeled…

---

## [Where does Julia provide the biggest benefits over other ML frameworks for research?](https://discourse.julialang.org/t/where-does-julia-provide-the-biggest-benefits-over-other-ml-frameworks-for-research/28481)

<div class="topic-metadata">

**Author:** [@Chillee](https://discourse.julialang.org/u/Chillee)\
**Replies:** 34\
**Last updated:** [September 16, 2019, 11:55am UTC](https://discourse.julialang.org/t/where-does-julia-provide-the-biggest-benefits-over-other-ml-frameworks-for-research/28481 "2019-09-16T11:55:30Z")

</div>

I’ve read a bunch of the blogs on the Julia website (e.g. on machine learning and programming languages), but I remain unconvinced about what large benefits Julia provides over PyTorch. For example, one section in the b…

---

## [Extracting local sensitivities when using save\_idxs](https://discourse.julialang.org/t/extracting-local-sensitivities-when-using-save-idxs/28714)

<div class="topic-metadata">

**Author:** [@moesphere](https://discourse.julialang.org/u/moesphere)\
**Replies:** 5\
**Last updated:** [September 16, 2019, 8:05am UTC](https://discourse.julialang.org/t/extracting-local-sensitivities-when-using-save-idxs/28714 "2019-09-16T08:05:40Z")

</div>

When specifying the saveat keyword, the extraction of local sensitivites seems to fail. The example is from the official documentation: using DifferentialEquations using DiffEqSensitivity function f(du,u,p,t) du\[1\] =…

---

## [Pkg problem with Julia 1.1](https://discourse.julialang.org/t/pkg-problem-with-julia-1-1/28787)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 9\
**Last updated:** [September 16, 2019, 7:56am UTC](https://discourse.julialang.org/t/pkg-problem-with-julia-1-1/28787 "2019-09-16T07:56:20Z")

</div>

I’m testing an updated package developed by a collaborator. The updated package doesn’t install; instead, the old package (which I have renamed on my computer) gets installed. I use Julia v. 1.1 on Windows 10, 64 bit, la…

---

## [Specify type when calling parametric function](https://discourse.julialang.org/t/specify-type-when-calling-parametric-function/28805)

<div class="topic-metadata">

**Author:** [@aahaselgrove](https://discourse.julialang.org/u/aahaselgrove)\
**Replies:** 6\
**Last updated:** [September 16, 2019, 7:33am UTC](https://discourse.julialang.org/t/specify-type-when-calling-parametric-function/28805 "2019-09-16T07:33:33Z")

</div>

Say I have a parametric function: foo(a::Union{T, Vector{T}}) where {T} = T Calling foo(ones(1)) returns Float64, implying that Julia has decided that a was of type Vector{T}. Is it possible to call this function expli…

---

## [How can I preview the weave code?](https://discourse.julialang.org/t/how-can-i-preview-the-weave-code/28765)

<div class="topic-metadata">

**Author:** [@alexandre47](https://discourse.julialang.org/u/alexandre47)\
**Replies:** 7\
**Last updated:** [September 16, 2019, 7:26am UTC](https://discourse.julialang.org/t/how-can-i-preview-the-weave-code/28765 "2019-09-16T07:26:34Z")

</div>

Hi! I started learning weave, for create Documentation using Julia. I can not see the preview in the Atom editor (I have the language-weave installed, and Julia too). Is there another way to see the preview, maybe ano…

---

## [Split 2d array into array of 1d arrays](https://discourse.julialang.org/t/split-2d-array-into-array-of-1d-arrays/28803)

<div class="topic-metadata">

**Author:** [@aahaselgrove](https://discourse.julialang.org/u/aahaselgrove)\
**Replies:** 5\
**Last updated:** [September 16, 2019, 6:51am UTC](https://discourse.julialang.org/t/split-2d-array-into-array-of-1d-arrays/28803 "2019-09-16T06:51:33Z")

</div>

If you have an array of arrays, you can join them into a 2d array as follows: a = fill(ones(10), 10) A = hcat(a...) How can you do the reverse?

---

## [Eval a CodeInfo object?](https://discourse.julialang.org/t/eval-a-codeinfo-object/18076)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 5\
**Last updated:** [September 16, 2019, 3:18am UTC](https://discourse.julialang.org/t/eval-a-codeinfo-object/18076 "2019-09-16T03:18:59Z")

</div>

Digging through the Julia AST docs I’ve got curious how far we can go with the lowered code representation. In particular: Can we evaluate CodeInfo object as a whole? Can we evaluate each its expression (in .code field…

---

## [GPU computing with Intel UHD Graphics 620](https://discourse.julialang.org/t/gpu-computing-with-intel-uhd-graphics-620/28790)

<div class="topic-metadata">

**Author:** [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Replies:** 3\
**Last updated:** [September 16, 2019, 12:24am UTC](https://discourse.julialang.org/t/gpu-computing-with-intel-uhd-graphics-620/28790 "2019-09-16T00:24:38Z")

</div>

I recently noticed that my laptop has got an Intel UHD graphics card with 4gb memory. I would like to know if this is of any use as regards Julia. I installed OpenCL and executed the performance script given as part of…

---

## [JDF - an experimental DataFrame serialization format is ready for beta testing](https://discourse.julialang.org/t/jdf-an-experimental-dataframe-serialization-format-is-ready-for-beta-testing/28722)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 8\
**Last updated:** [September 15, 2019, 11:01pm UTC](https://discourse.julialang.org/t/jdf-an-experimental-dataframe-serialization-format-is-ready-for-beta-testing/28722 "2019-09-15T23:01:56Z")

</div>

https://github.com/xiaodaigh/JDF.jl I wanted to contribute to Parquet.jl and Arrow.jl but don’t feel confident that I know enough about serialization and disk formats. And reading the Parquet and Arrow docs still leaves…

---

## [Efficient Initialization of huge sparse arrays](https://discourse.julialang.org/t/efficient-initialization-of-huge-sparse-arrays/28691)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 6\
**Last updated:** [September 15, 2019, 9:19pm UTC](https://discourse.julialang.org/t/efficient-initialization-of-huge-sparse-arrays/28691 "2019-09-15T21:19:53Z")

</div>

There are two ways one can initialize a NXN sparse matrix, whose entries are to be read from one/multiple text files. Which one is faster ? I need the more efficient one, as N is large, typically 10^6. I could store th…

---

## [How to update an array efficiently](https://discourse.julialang.org/t/how-to-update-an-array-efficiently/28727)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 14\
**Last updated:** [September 15, 2019, 8:30pm UTC](https://discourse.julialang.org/t/how-to-update-an-array-efficiently/28727 "2019-09-15T20:30:53Z")

</div>

Hello, I found I use statements like this a lot: A = func(A) with func a function returning a array of the same size. Is this efficient? Or there is a better way to write this kind of things? Thanks.

---

## [Modules, macros and global variables](https://discourse.julialang.org/t/modules-macros-and-global-variables/28754)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 9\
**Last updated:** [September 15, 2019, 7:59pm UTC](https://discourse.julialang.org/t/modules-macros-and-global-variables/28754 "2019-09-15T19:59:55Z")

</div>

Let’s say, I have: Module A with global variable RULES, macro @add\_rule and function apply\_all\_rules(). Module B which defines some rules using A.@add\_rule thus pushing them to A.RULES. Module C in which we simply impo…

---

## [Registrator not picking up package](https://discourse.julialang.org/t/registrator-not-picking-up-package/28702)

<div class="topic-metadata">

**Author:** [@Smaug123](https://discourse.julialang.org/u/Smaug123)\
**Replies:** 3\
**Last updated:** [September 15, 2019, 4:55pm UTC](https://discourse.julialang.org/t/registrator-not-picking-up-package/28702 "2019-09-15T16:55:06Z")

</div>

I’m struggling to get my package recognised by the registrator bot after I recently updated the package to Julia 1.0. Could someone please cast an eye over it and see what thing (probably something very small) I’ve misse…

---

## [Animation error Makie](https://discourse.julialang.org/t/animation-error-makie/18405)

<div class="topic-metadata">

**Author:** [@OlivierHnt](https://discourse.julialang.org/u/OlivierHnt)\
**Replies:** 15\
**Last updated:** [September 15, 2019, 4:04pm UTC](https://discourse.julialang.org/t/animation-error-makie/18405 "2019-09-15T16:04:51Z")

</div>

I downloaded Makie and I tried to run one of the given example: using Makie xyvec = rand(Point2f0, (2)) .\* 5 .+ 1 velvec = rand(Point2f0, (2)) .\* 10 # define some other parameters t = 0 ts = 0.03 balldiameter = 1…

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

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