# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=779

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

**Page:** 780

---

## [AWS avoid loading to memory when putting](https://discourse.julialang.org/t/aws-avoid-loading-to-memory-when-putting/35637)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 0\
**Last updated:** [March 6, 2020, 12:44pm UTC](https://discourse.julialang.org/t/aws-avoid-loading-to-memory-when-putting/35637 "2020-03-06T12:44:40Z")

</div>

I’m recording videos from a raspberry pi and want to put those on an S3 bucket using AWSS3.jl. The thing is, these videos can be large approaching the RAM of the RPI (in my case 2GB). So I’s like to avoid loading them to…

---

## [MKL.jl + Python](https://discourse.julialang.org/t/mkl-jl-python/35631)

<div class="topic-metadata">

**Author:** [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 10:37am UTC](https://discourse.julialang.org/t/mkl-jl-python/35631 "2020-03-06T10:37:25Z")

</div>

Hi, is there a way of building MKL.jl such that it uses the MKL library of the (anaconda) Python that PyCall.jl is linked to? The reason is the issue arising when two different builds of MKL are combined: PyPlot conflict…

---

## [Running simulations over range of parameters](https://discourse.julialang.org/t/running-simulations-over-range-of-parameters/35573)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 12\
**Last updated:** [March 6, 2020, 10:12am UTC](https://discourse.julialang.org/t/running-simulations-over-range-of-parameters/35573 "2020-03-06T10:12:31Z")

</div>

Hi, I am running a two differential equations over a range of parameters, and it works fine. I loop over two parameters (double loop). I would like to know the Julia way of doing this. Here is my code. Run all α, β pa…

---

## [Julia doesn't start in Atom after updating julia-client to 0.12.3](https://discourse.julialang.org/t/julia-doesnt-start-in-atom-after-updating-julia-client-to-0-12-3/35627)

<div class="topic-metadata">

**Author:** [@leejm516](https://discourse.julialang.org/u/leejm516)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 8:59am UTC](https://discourse.julialang.org/t/julia-doesnt-start-in-atom-after-updating-julia-client-to-0-12-3/35627 "2020-03-06T08:59:25Z")

</div>

Hi, Today I had the packages in Atom (v1.44.0) updated, and julia-client has been updated to 0.12.3. Also, I performed package update in Julia, seeing that the package Atom has been updated to 0.12.8. However, after u…

---

## [Systems of differential equations](https://discourse.julialang.org/t/systems-of-differential-equations/35618)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 5\
**Last updated:** [March 6, 2020, 8:02am UTC](https://discourse.julialang.org/t/systems-of-differential-equations/35618 "2020-03-06T08:02:37Z")

</div>

Consider the set of equations and its solution. There are two variables: c and ce. using DifferentialEquations function diffusion!(du, u, p, t) α, β = p c, ce = u dc = -α\*c dce = -β\*ce du .= \[dc, d…

---

## [@. Operator](https://discourse.julialang.org/t/operator/35622)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 3:37am UTC](https://discourse.julialang.org/t/operator/35622 "2020-03-06T03:37:40Z")

</div>

Hi, Consider the following code: a = 10 b = 1:10 Obviously, c = a .= b works just fine. But I have more complex expressions and do not wish to spend my time adding dots everywhere. So I tried: @. D = a + b Howev…

---

## [Why is Julia's generated assembly more complicated than Swift's for a simple function?](https://discourse.julialang.org/t/why-is-julias-generated-assembly-more-complicated-than-swifts-for-a-simple-function/35549)

<div class="topic-metadata">

**Author:** [@Aremk](https://discourse.julialang.org/u/Aremk)\
**Replies:** 16\
**Last updated:** [March 6, 2020, 3:10am UTC](https://discourse.julialang.org/t/why-is-julias-generated-assembly-more-complicated-than-swifts-for-a-simple-function/35549 "2020-03-06T03:10:47Z")

</div>

Consider the following example in swift, from: Redirecting to Google Groups func f() -\> \[Int\] { return \[0, 1\] } func testMe() -\> Int { var r = 0 for x in f() { r += x } return r } Accordi…

---

## [Circular dependency?](https://discourse.julialang.org/t/circular-dependency/35571)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 4\
**Last updated:** [March 6, 2020, 1:37am UTC](https://discourse.julialang.org/t/circular-dependency/35571 "2020-03-06T01:37:35Z")

</div>

if I have two modules A and B, where A needs using B and B needs using A. would it cause problem? if there is, how could I solve it? thanks. :pray:

---

## [Interact + StatsPlots](https://discourse.julialang.org/t/interact-statsplots/35599)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 6:16pm UTC](https://discourse.julialang.org/t/interact-statsplots/35599 "2020-03-05T18:16:17Z")

</div>

I was having trouble getting Interact.jl to work, you know, interactively in a Jupyter notebook. I finally found that the problem is that I was using StatsPlots.jl and not Plots.jl. I was not actually using any of the fu…

---

## [In.(\[string\], Set)) not work , why?](https://discourse.julialang.org/t/in-string-set-not-work-why/35579)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 3\
**Last updated:** [March 5, 2020, 5:56pm UTC](https://discourse.julialang.org/t/in-string-set-not-work-why/35579 "2020-03-05T17:56:20Z")

</div>

I need to keep sorting the vector \[zawartosc\] and can’t use intersect () Why in.(\[string\], Set)) not works julia\> in(zawartosc\[1\],Sunikalne) true julia\> in.(zawartosc,Sunikalne) ERROR: DimensionMismatch("arrays cou…

---

## [Plot inside a function](https://discourse.julialang.org/t/plot-inside-a-function/35582)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 3:49pm UTC](https://discourse.julialang.org/t/plot-inside-a-function/35582 "2020-03-05T15:49:46Z")

</div>

Consider the function using Plots function test\_plot() a = Any\[\] t = \[1,2,3\] push!(a, \[2,3,4\]) push!(a, \[3,4,5\]) plot(t, a\[1\]) return a end data = test\_plot() When it is executed, the plot doe…

---

## [How to change box plot code to Area Plot?](https://discourse.julialang.org/t/how-to-change-box-plot-code-to-area-plot/35588)

<div class="topic-metadata">

**Author:** [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 3:36pm UTC](https://discourse.julialang.org/t/how-to-change-box-plot-code-to-area-plot/35588 "2020-03-05T15:36:41Z")

</div>

Below is my code for boxplot and it works. But I want to change it to area plot and couldn’t work. Could anyone can help me how to put the date to fit for area Plot? Thank " rc("font", family="serif",size=12) x\_ticks=\[…

---

## [Error in importing LDL.jl](https://discourse.julialang.org/t/error-in-importing-ldl-jl/35563)

<div class="topic-metadata">

**Author:** [@Darione](https://discourse.julialang.org/u/Darione)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 2:57pm UTC](https://discourse.julialang.org/t/error-in-importing-ldl-jl/35563 "2020-03-05T14:57:41Z")

</div>

I was trying to store my arry to a file, and i have found in web the JLD package to to that. But in adding/importing it, i get this errors. What i can try to solve? type or paste code herejulia\> Pkg.add("JLD") Resolvi…

---

## [Guidance on profiling / benchmarking I/O opperations on sparse dataset](https://discourse.julialang.org/t/guidance-on-profiling-benchmarking-i-o-opperations-on-sparse-dataset/35483)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 11\
**Last updated:** [March 5, 2020, 2:12pm UTC](https://discourse.julialang.org/t/guidance-on-profiling-benchmarking-i-o-opperations-on-sparse-dataset/35483 "2020-03-05T14:12:20Z")

</div>

I have a specific data reading problem that I’m trying to improve. I’m not sure if the details are important or not, but here’s the gist: I have some number (high hundreds to low thousands) of indiviudual CSV files. Ea…

---

## [Calling type-unstable functions within a type-stable function (and usage of Val)](https://discourse.julialang.org/t/calling-type-unstable-functions-within-a-type-stable-function-and-usage-of-val/35572)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 12:22pm UTC](https://discourse.julialang.org/t/calling-type-unstable-functions-within-a-type-stable-function-and-usage-of-val/35572 "2020-03-05T12:22:07Z")

</div>

I have a function f that is potentially type-unstable. I also have a function g that in the end is type-stable, but inside it calls f. Here is an (artificial) example, implemented in different ways: f1(t::Tuple, i::Int…

---

## [Broadcast macro "breaks" norm](https://discourse.julialang.org/t/broadcast-macro-breaks-norm/35570)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 11:51am UTC](https://discourse.julialang.org/t/broadcast-macro-breaks-norm/35570 "2020-03-05T11:51:02Z")

</div>

Hello, I found this rather interesting behaviour julia\> using LinearAlgebra julia\> a = \[0, 0, 1\] 3-element Array{Int64,1}: 0 0 1 julia\> @. a/norm(a) 3-element Array{Float64,1}: NaN NaN 1.0 julia\> a./norm(…

---

## [Subs for Matrices in SymEngine](https://discourse.julialang.org/t/subs-for-matrices-in-symengine/35566)

<div class="topic-metadata">

**Author:** [@rajesh](https://discourse.julialang.org/u/rajesh)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 11:47am UTC](https://discourse.julialang.org/t/subs-for-matrices-in-symengine/35566 "2020-03-05T11:47:27Z")

</div>

Hi, I am using SymEngine but unable to substitute values when the symbols are in a matrix. My code is as follows: a,b,c = symbols(“a b c”) e1 = Array{Symbol,1} e1 = \[a^2, b^2, c^2\] e2 = subs(e1, a=\>2, b=\>1, c=\>3) T…

---

## [Bug in CSV.read?](https://discourse.julialang.org/t/bug-in-csv-read/35562)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [March 5, 2020, 9:53am UTC](https://discourse.julialang.org/t/bug-in-csv-read/35562 "2020-03-05T09:53:45Z")

</div>

I’m trying to represent infinity in Excel, and have tried with 1e18 and 1e19 (since I haven’t found an Inf symbol). I then export this to a CSV file, and upon checking the resulting file in Notepad++, the numbers are rep…

---

## [What is the difference between \`Threads.@spawn\` and \`Distributed.@spawnnat\`](https://discourse.julialang.org/t/what-is-the-difference-between-threads-spawn-and-distributed-spawnnat/35560)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [March 5, 2020, 9:37am UTC](https://discourse.julialang.org/t/what-is-the-difference-between-threads-spawn-and-distributed-spawnnat/35560 "2020-03-05T09:37:40Z")

</div>

trying to get a better understanding on Julia’s parallelization possibilities I heard about the awesome @spawn macro which is new in Julia 1.3 Looking more into the available tools I am confused about the difference bet…

---

## [Difference between @time in Julia 1.3.1 and Julia 1.4.0-rc2](https://discourse.julialang.org/t/difference-between-time-in-julia-1-3-1-and-julia-1-4-0-rc2/35422)

<div class="topic-metadata">

**Author:** [@f-fathurrahman](https://discourse.julialang.org/u/f-fathurrahman)\
**Replies:** 10\
**Last updated:** [March 5, 2020, 9:26am UTC](https://discourse.julialang.org/t/difference-between-time-in-julia-1-3-1-and-julia-1-4-0-rc2/35422 "2020-03-05T09:26:51Z")

</div>

Dear all, While I was testing Julia 1.4.0-rc2 for my package I notice very different results of @time compared with Julia 1.3.0. (I am sorry that I cannot provide an MWE for this.) The code basically trying to run a “…

---

## [Conda cannot be added on Julia 1.3.1 Win10, local user install](https://discourse.julialang.org/t/conda-cannot-be-added-on-julia-1-3-1-win10-local-user-install/35561)

<div class="topic-metadata">

**Author:** [@vinnief](https://discourse.julialang.org/u/vinnief)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 8:40am UTC](https://discourse.julialang.org/t/conda-cannot-be-added-on-julia-1-3-1-win10-local-user-install/35561 "2020-03-05T08:40:14Z")

</div>

After Installing Julia 1.3.1 on Win10, (as local user), Conda won’t build, it throws the error Error building Conda : │ ERROR: LoadError: SystemError (with C:\\Users\\julia): mkdir: Permission denied if I try import Co…

---

## [Why can't I put a anonymous function inside a type parameter of a struct?](https://discourse.julialang.org/t/why-cant-i-put-a-anonymous-function-inside-a-type-parameter-of-a-struct/35555)

<div class="topic-metadata">

**Author:** [@Qiyamah](https://discourse.julialang.org/u/Qiyamah)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 7:40am UTC](https://discourse.julialang.org/t/why-cant-i-put-a-anonymous-function-inside-a-type-parameter-of-a-struct/35555 "2020-03-05T07:40:16Z")

</div>

abstract type FieldName{A} end abstract type FieldType{A} end abstract type FieldValue{A} end abstract type FieldMutability{A} end abstract type Field{A\<:FieldName, B\<:FieldType, C\<:FieldValue, D\<:…

---

## [How do I configure .travis.yml to run julia with depwarn=no (and another question)](https://discourse.julialang.org/t/how-do-i-configure-travis-yml-to-run-julia-with-depwarn-no-and-another-question/35558)

<div class="topic-metadata">

**Author:** [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 7:31am UTC](https://discourse.julialang.org/t/how-do-i-configure-travis-yml-to-run-julia-with-depwarn-no-and-another-question/35558 "2020-03-05T07:31:01Z")

</div>

my current .travis.yml: language: julia os: - linux # - osx julia: - 1.3 - nightly notifications: email: false jobs: allow\_failures: - julia: nightly include: - stage: "Documentation" julia: …

---

## [Transform \`Tuple{Union, NonUnion, Union, ...}\` to \`Union{Tuple{NonUnion, NonUnion, NonUnion, ...}, ...}\`](https://discourse.julialang.org/t/transform-tuple-union-nonunion-union-to-union-tuple-nonunion-nonunion-nonunion/35452)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 4\
**Last updated:** [March 5, 2020, 6:53am UTC](https://discourse.julialang.org/t/transform-tuple-union-nonunion-union-to-union-tuple-nonunion-nonunion-nonunion/35452 "2020-03-05T06:53:18Z")

</div>

Hi all, does there exist a function which can transform a tuple type of the schema Tuple{Union, NonUnion, Union, ...}, i.e. with Union types on the first level, such that the Union goes out and we have Union{Tuple{NonUn…

---

## [How can I solve stack over flow error while using Turing?](https://discourse.julialang.org/t/how-can-i-solve-stack-over-flow-error-while-using-turing/35552)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 4:24am UTC](https://discourse.julialang.org/t/how-can-i-solve-stack-over-flow-error-while-using-turing/35552 "2020-03-05T04:24:42Z")

</div>

Hi, I am trying to use Turing package with :reverse\_diff as AD background. In my program, the variable size is very high and the program looks similar as follows: @model test\_prob(y, M, N, K, ::Type{T}=Float64) where {…

---

## [Weight files from python called in Julia](https://discourse.julialang.org/t/weight-files-from-python-called-in-julia/35554)

<div class="topic-metadata">

**Author:** [@Atheesh\_M\_J](https://discourse.julialang.org/u/Atheesh_M_J)\
**Replies:** 0\
**Last updated:** [March 5, 2020, 4:11am UTC](https://discourse.julialang.org/t/weight-files-from-python-called-in-julia/35554 "2020-03-05T04:11:02Z")

</div>

I am new to Julia programing language. I had trained a binary classifier in python using tensorflow. I would like to know whether this weight file which was obtained by training in python can be used as it is(i.e., witho…

---

## [System of Two Differential equations](https://discourse.julialang.org/t/system-of-two-differential-equations/35535)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 4\
**Last updated:** [March 5, 2020, 1:07am UTC](https://discourse.julialang.org/t/system-of-two-differential-equations/35535 "2020-03-05T01:07:33Z")

</div>

I am trying to implement a system of two ODEs. The following works: function diffusion!(du, u, p, t) α, β = p c, ce = u du\[1\] = -αc du\[2\] = -βce du = \[dc, dce\] end u0 = \[3.0, 7.0\] tspan = (0., 2.) p = \[1.0, 1…

---

## [Zoomable and pannable plots (in a separate window)? (Atom/MacOS)](https://discourse.julialang.org/t/zoomable-and-pannable-plots-in-a-separate-window-atom-macos/34352)

<div class="topic-metadata">

**Author:** [@Jandyman](https://discourse.julialang.org/u/Jandyman)\
**Replies:** 20\
**Last updated:** [March 5, 2020, 12:17am UTC](https://discourse.julialang.org/t/zoomable-and-pannable-plots-in-a-separate-window-atom-macos/34352 "2020-03-05T00:17:05Z")

</div>

I’m new to Julia / Atom / Juno. I’m excited about the possibilities, being an ex LISPer. Although something is a bit slow (Atom, JIT compilation?), it’s a pretty good user experience. The Juno debugger seems very well de…

---

## [Symbols in Gadfly Plots](https://discourse.julialang.org/t/symbols-in-gadfly-plots/35430)

<div class="topic-metadata">

**Author:** [@alphasig329](https://discourse.julialang.org/u/alphasig329)\
**Replies:** 2\
**Last updated:** [March 4, 2020, 11:19pm UTC](https://discourse.julialang.org/t/symbols-in-gadfly-plots/35430 "2020-03-04T23:19:39Z")

</div>

I am trying to incorporate some symbols in my xtick labels, but I have failed in using LaTeXStrings and unicode characters. I keep getting the following error: MethodError: Cannot \`convert\` an object of type Char to an …

---

## [Bug, adding Traceur? In a package or Julia? "undefined symbol: mbedtls\_x509\_crt ..."](https://discourse.julialang.org/t/bug-adding-traceur-in-a-package-or-julia-undefined-symbol-mbedtls-x509-crt/35536)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [March 4, 2020, 8:36pm UTC](https://discourse.julialang.org/t/bug-adding-traceur-in-a-package-or-julia-undefined-symbol-mbedtls-x509-crt/35536 "2020-03-04T20:36:16Z")

</div>

(v1.3) pkg\> add Traceur Updating registry at \`~/.julia/registries/General\` Updating git-repo \`https://github.com/JuliaRegistries/General.git\` /home/pharaldsson\_sym/julia-1.3.1/bin/julia: symbol lookup error: /home/ph…

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=778)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=780)
