# General Usage

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

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

**Page:** 956

---

## [Parse in julia 1.0](https://discourse.julialang.org/t/parse-in-julia-1-0/13273)

<div class="topic-metadata">

**Author:** [@atteson](https://discourse.julialang.org/u/atteson)\
**Replies:** 1\
**Last updated:** [August 12, 2018, 4:15am UTC](https://discourse.julialang.org/t/parse-in-julia-1-0/13273 "2018-08-12T04:15:04Z")

</div>

In julia 0.7, parse( "1+1" ) gives result of the julia parser for that string. On, 1.0, it gives an error. Does this functionality now exist by another name?

---

## [GR requires libQtGui.so.4?](https://discourse.julialang.org/t/gr-requires-libqtgui-so-4/13233)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 2\
**Last updated:** [August 12, 2018, 12:12am UTC](https://discourse.julialang.org/t/gr-requires-libqtgui-so-4/13233 "2018-08-12T00:12:06Z")

</div>

Just trying 0.7 on Manjaro, which has Qt5 installed but not Qt4. After GR compiles, it apparently requires Qt4. I had to get Qt4 installed to use it. Could it be possible to set it to use Qt5 instead?

---

## [Is there an easy way to find out if a package supports certain Julia version?](https://discourse.julialang.org/t/is-there-an-easy-way-to-find-out-if-a-package-supports-certain-julia-version/13110)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 3\
**Last updated:** [August 11, 2018, 10:35pm UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-find-out-if-a-package-supports-certain-julia-version/13110 "2018-08-11T22:35:47Z")

</div>

Let’s say I need Conda and I am on 1.0.0. Can I use some Pkg incantation to tell me if Pkg.build(“Conda”) will be successful (i. e. if Conda supports 1.0.0)?

---

## [@cfunction and generated functions](https://discourse.julialang.org/t/cfunction-and-generated-functions/13265)

<div class="topic-metadata">

**Author:** [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Replies:** 4\
**Last updated:** [August 11, 2018, 9:14pm UTC](https://discourse.julialang.org/t/cfunction-and-generated-functions/13265 "2018-08-11T21:14:42Z")

</div>

With the new @cfunction macro, there is now the option to use $ syntax to create a runtime closure over a callable, which (I think, please correct me if this is wrong) can be safely used as follows: cfun = @cfunction $i…

---

## [Eval symbol on LHS for assignment](https://discourse.julialang.org/t/eval-symbol-on-lhs-for-assignment/13223)

<div class="topic-metadata">

**Author:** [@iwelch](https://discourse.julialang.org/u/iwelch)\
**Replies:** 5\
**Last updated:** [August 11, 2018, 5:22pm UTC](https://discourse.julialang.org/t/eval-symbol-on-lhs-for-assignment/13223 "2018-08-11T17:22:47Z")

</div>

the following code does not work, but can julia allow me to do this? julia\> names = \[ :x, :y \]; julia\> eval(names\[1\])= 42 ## should be the same as x=42 julia\> x 42

---

## [Plots / Julia 0.7.0](https://discourse.julialang.org/t/plots-julia-0-7-0/13174)

<div class="topic-metadata">

**Author:** [@j2b2](https://discourse.julialang.org/u/j2b2)\
**Replies:** 2\
**Last updated:** [August 11, 2018, 4:10pm UTC](https://discourse.julialang.org/t/plots-julia-0-7-0/13174 "2018-08-11T16:10:49Z")

</div>

The (very nice) package Plots is working well with Julia 0.7.0, except these surprising deprecation warnings: \> Warning: \`Array{T}(d::NTuple{N, Int}) where {T, N}\` is deprecated, use \`Array{T}(undef, d)\` instead. \> │ …

---

## [Suppress printing in Unit test](https://discourse.julialang.org/t/suppress-printing-in-unit-test/13245)

<div class="topic-metadata">

**Author:** [@migarstka](https://discourse.julialang.org/u/migarstka)\
**Replies:** 4\
**Last updated:** [August 11, 2018, 3:39pm UTC](https://discourse.julialang.org/t/suppress-printing-in-unit-test/13245 "2018-08-11T15:39:44Z")

</div>

Let’s say I have a function that is just used to print some information on the screen, like: function printStuff(x) print("Round(x=$(x)) = $(round(x,digits=2)) ") nothing end As this function is used in a larger co…

---

## [Precompiling CSV failes on 0.6](https://discourse.julialang.org/t/precompiling-csv-failes-on-0-6/13248)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [August 11, 2018, 2:58pm UTC](https://discourse.julialang.org/t/precompiling-csv-failes-on-0-6/13248 "2018-08-11T14:58:59Z")

</div>

I have the following problem: julia\> using CSV INFO: Precompiling module CSV. ERROR: LoadError: UndefVarError: require not defined Stacktrace: \[1\] include\_from\_node1(::String) at ./loading.jl:576 \[2\] include(::String)…

---

## [When is the version of julia of JuliaPro distribution from JuliaComputing expected to be at 1.0?](https://discourse.julialang.org/t/when-is-the-version-of-julia-of-juliapro-distribution-from-juliacomputing-expected-to-be-at-1-0/13236)

<div class="topic-metadata">

**Author:** [@dnk8n](https://discourse.julialang.org/u/dnk8n)\
**Replies:** 0\
**Last updated:** [August 11, 2018, 10:25am UTC](https://discourse.julialang.org/t/when-is-the-version-of-julia-of-juliapro-distribution-from-juliacomputing-expected-to-be-at-1-0/13236 "2018-08-11T10:25:34Z")

</div>

There is very little documentation on the JuliaComputing web-page. I am unable to establish which versions of each package are included in the bundle.

---

## [Isfile and strings with "?" in 0.7.0 ... workarounds, other than try/catch?](https://discourse.julialang.org/t/isfile-and-strings-with-in-0-7-0-workarounds-other-than-try-catch/13203)

<div class="topic-metadata">

**Author:** [@joshua\_jones](https://discourse.julialang.org/u/joshua_jones)\
**Replies:** 9\
**Last updated:** [August 11, 2018, 6:15am UTC](https://discourse.julialang.org/t/isfile-and-strings-with-in-0-7-0-workarounds-other-than-try-catch/13203 "2018-08-11T06:15:25Z")

</div>

I need to test isfile on a string. However, if the string is not a filename, it will almost always include question marks. This breaks in Julia 0.7 using Windows 10 Home but not previous versions. MWE below. v0.6.X: ju…

---

## [SymEngine not working in parallel](https://discourse.julialang.org/t/symengine-not-working-in-parallel/9603)

<div class="topic-metadata">

**Author:** [@jman87](https://discourse.julialang.org/u/jman87)\
**Replies:** 3\
**Last updated:** [August 11, 2018, 2:43am UTC](https://discourse.julialang.org/t/symengine-not-working-in-parallel/9603 "2018-08-11T02:43:44Z")

</div>

I am attempting to run a code I wrote using the SymEngine package in parallel using the @parallel for-loop, but am getting errors I don’t understand. I have written a simple test script that reproduces a similar error wh…

---

## [Image boundary after rotation](https://discourse.julialang.org/t/image-boundary-after-rotation/13225)

<div class="topic-metadata">

**Author:** [@microlifecc](https://discourse.julialang.org/u/microlifecc)\
**Replies:** 0\
**Last updated:** [August 11, 2018, 4:11am UTC](https://discourse.julialang.org/t/image-boundary-after-rotation/13225 "2018-08-11T04:11:43Z")

</div>

Hi Guys! I am trying to find keypoints in a rotated and then subsampled image using fastcorners. My code: tfm = Translation((r/2)-1,(c/2)-1) ∘ LinearMap(RotMatrix(-theta)) ∘ Translation(-((r/2)-1),-((c/2)-1)) uR = warp…

---

## [f(x){T, N} where N may not exist](https://discourse.julialang.org/t/f-x-t-n-where-n-may-not-exist/13204)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 2\
**Last updated:** [August 11, 2018, 12:05am UTC](https://discourse.julialang.org/t/f-x-t-n-where-n-may-not-exist/13204 "2018-08-11T00:05:13Z")

</div>

best to show the example. I see how to refactor it and work with two functions, multidispatchly. My use case is a preference for write-once algorithmics … and experimented seeking a flexible, easy-peasy union of Vector…

---

## [Julia1.0 how to add the package?](https://discourse.julialang.org/t/julia1-0-how-to-add-the-package/13090)

<div class="topic-metadata">

**Author:** [@chdlkl](https://discourse.julialang.org/u/chdlkl)\
**Replies:** 8\
**Last updated:** [August 10, 2018, 10:46pm UTC](https://discourse.julialang.org/t/julia1-0-how-to-add-the-package/13090 "2018-08-10T22:46:23Z")

</div>

Julia1.0 how to add the package ?

---

## [What is the current (and future) status of \`begin\` keyword in indexing?](https://discourse.julialang.org/t/what-is-the-current-and-future-status-of-begin-keyword-in-indexing/13145)

<div class="topic-metadata">

**Author:** [@geoalchimista](https://discourse.julialang.org/u/geoalchimista)\
**Replies:** 4\
**Last updated:** [August 10, 2018, 5:14pm UTC](https://discourse.julialang.org/t/what-is-the-current-and-future-status-of-begin-keyword-in-indexing/13145 "2018-08-10T17:14:06Z")

</div>

I’ve started moving my projects to Julia 1.0. I find that the begin keyword in array index has been removed. I get an error trying to use it julia\> x = \[1,2,3,4\] 4-element Array{Int64,1}: 1 2 3 4 x\[begin:end\] ┌ Warn…

---

## [How is(are) the version(s) of Julia that are compatible with my package recorded?](https://discourse.julialang.org/t/how-is-are-the-version-s-of-julia-that-are-compatible-with-my-package-recorded/13188)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 4:39pm UTC](https://discourse.julialang.org/t/how-is-are-the-version-s-of-julia-that-are-compatible-with-my-package-recorded/13188 "2018-08-10T16:39:41Z")

</div>

How is(are) the version(s) of Julia that are compatible with my package recorded? Where? In Project.toml? Or elsewhere? Let us say my package requires to run with v"0.7-". How do I specify that in the configuration file…

---

## [Travis and Julia 1.0](https://discourse.julialang.org/t/travis-and-julia-1-0/13166)

<div class="topic-metadata">

**Author:** [@traktofon](https://discourse.julialang.org/u/traktofon)\
**Replies:** 11\
**Last updated:** [August 10, 2018, 3:54pm UTC](https://discourse.julialang.org/t/travis-and-julia-1-0/13166 "2018-08-10T15:54:31Z")

</div>

I noticed that testing of my package on Travis is broken with Julia 1.0/nightly (using the travis.yml that was recommended in the past): $ julia -e ‘Pkg.clone(pwd()); Pkg.build(“FortranFiles”); Pkg.test(“FortranFiles”;…

---

## [Performance on different Operating Systems](https://discourse.julialang.org/t/performance-on-different-operating-systems/13131)

<div class="topic-metadata">

**Author:** [@CiaranOMara](https://discourse.julialang.org/u/CiaranOMara)\
**Replies:** 1\
**Last updated:** [August 10, 2018, 3:24pm UTC](https://discourse.julialang.org/t/performance-on-different-operating-systems/13131 "2018-08-10T15:24:20Z")

</div>

Has Julia been benchmarked on different Operating Systems?

---

## [IJulia + Julia 0.7: Not able to use additional Packages](https://discourse.julialang.org/t/ijulia-julia-0-7-not-able-to-use-additional-packages/13077)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 6\
**Last updated:** [August 10, 2018, 3:04pm UTC](https://discourse.julialang.org/t/ijulia-julia-0-7-not-able-to-use-additional-packages/13077 "2018-08-10T15:04:46Z")

</div>

Hi. I’m trying to use IJulia with Julia - 0.7.0. I’m able to install IJulia through pkg \> add IJulia and use with builtin Libraries. If I try to using PyPlot (I have already added PyPlot for 0.7.0 and is able to use fro…

---

## [List of images of varying sizes](https://discourse.julialang.org/t/list-of-images-of-varying-sizes/13167)

<div class="topic-metadata">

**Author:** [@mprat](https://discourse.julialang.org/u/mprat)\
**Replies:** 3\
**Last updated:** [August 10, 2018, 2:44pm UTC](https://discourse.julialang.org/t/list-of-images-of-varying-sizes/13167 "2018-08-10T14:44:18Z")

</div>

I am pretty new to Julia (learning as I go!) and have a computer vision / ML / image processing background. If I have a set of bounding box annotations for a given image, and generate a bunch of sub-images corresponding…

---

## [Does 0.7 support REQUIRE?](https://discourse.julialang.org/t/does-0-7-support-require/13078)

<div class="topic-metadata">

**Author:** [@Federico\_Calboli](https://discourse.julialang.org/u/Federico_Calboli)\
**Replies:** 29\
**Last updated:** [August 10, 2018, 10:58am UTC](https://discourse.julialang.org/t/does-0-7-support-require/13078 "2018-08-10T10:58:52Z")

</div>

Hi All, until 0.6 I had a file in ~/.julia/v0.6 named REQUIRE with a list of packages I want. Pkg.update would automagically look up the list and keep stuff up to date, or, actually install stuff I had added to the lis…

---

## [Getting latest version of Pkg?](https://discourse.julialang.org/t/getting-latest-version-of-pkg/13138)

<div class="topic-metadata">

**Author:** [@YongHee-Kim](https://discourse.julialang.org/u/YongHee-Kim)\
**Replies:** 4\
**Last updated:** [August 10, 2018, 10:26am UTC](https://discourse.julialang.org/t/getting-latest-version-of-pkg/13138 "2018-08-10T10:26:58Z")

</div>

I am trying to migrate to Julia 0.7 and since 0.7 is releases just yesterday, some packages latest release didn’t support 0.7 but already fixed on master. So I’ve tried to use Pkg.checkout("XLSX") but Checkout seems dep…

---

## [How do people handle no-button bug with Interact?](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 7\
**Last updated:** [August 10, 2018, 7:51am UTC](https://discourse.julialang.org/t/how-do-people-handle-no-button-bug-with-interact/12834 "2018-08-10T07:51:32Z")

</div>

Sometimes if you’re using: Jupyter Interact.jl Plots.jl The GUI buttons will fall off after the plot gets made. This bug is especially annoying if you’re hosting a dash app like: fusion.codes I was wondering if peo…

---

## [Type stability with chained parametric types](https://discourse.julialang.org/t/type-stability-with-chained-parametric-types/13076)

<div class="topic-metadata">

**Author:** [@bennedich](https://discourse.julialang.org/u/bennedich)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 6:56am UTC](https://discourse.julialang.org/t/type-stability-with-chained-parametric-types/13076 "2018-08-10T06:56:37Z")

</div>

Hi there! I have defined a custom type which includes both a vector of matrices, and a vector of matrix pairs, and am trying to achieve type stability. Here is a simplified version of my code: using LinearAlgebra, Inter…

---

## [Julia 1.0 building system image on Mac](https://discourse.julialang.org/t/julia-1-0-building-system-image-on-mac/13144)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 6:43am UTC](https://discourse.julialang.org/t/julia-1-0-building-system-image-on-mac/13144 "2018-08-10T06:43:18Z")

</div>

Any idea? $ /Applications/Julia-1.0.app/Contents/Resources/julia/bin/julia \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?…

---

## [Trouble with sparse matrix transpose in 0.7 (and now 1.0 !?)](https://discourse.julialang.org/t/trouble-with-sparse-matrix-transpose-in-0-7-and-now-1-0/13087)

<div class="topic-metadata">

**Author:** [@danspielman](https://discourse.julialang.org/u/danspielman)\
**Replies:** 13\
**Last updated:** [August 10, 2018, 6:32am UTC](https://discourse.julialang.org/t/trouble-with-sparse-matrix-transpose-in-0-7-and-now-1-0/13087 "2018-08-10T06:32:47Z")

</div>

In 0.7, it seems that the transpose of a sparse matrix has not only been made lazy, but it is providing a view of a matrix rather than a new matrix. This is going to cause a lot of confusion, and I think the measures ne…

---

## [Vector of vectors access to undefined reference](https://discourse.julialang.org/t/vector-of-vectors-access-to-undefined-reference/13057)

<div class="topic-metadata">

**Author:** [@microlifecc](https://discourse.julialang.org/u/microlifecc)\
**Replies:** 8\
**Last updated:** [August 10, 2018, 5:27am UTC](https://discourse.julialang.org/t/vector-of-vectors-access-to-undefined-reference/13057 "2018-08-10T05:27:24Z")

</div>

Hi Guys!!! I am trying to create a vector of vectors since I need the data structure to have a fixed number of rows(6) but variable number of columns. And in each of the units of the data structure I want to store an in…

---

## [How to remove \`ENV\` variable or how to \`Pkg.add\` by setting http(s) proxy to nothing?](https://discourse.julialang.org/t/how-to-remove-env-variable-or-how-to-pkg-add-by-setting-http-s-proxy-to-nothing/13140)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [August 10, 2018, 3:59am UTC](https://discourse.julialang.org/t/how-to-remove-env-variable-or-how-to-pkg-add-by-setting-http-s-proxy-to-nothing/13140 "2018-08-10T03:59:12Z")

</div>

On my laptop ENV\["HTTP\_PROXY"\] is usually set to some value. However to install some package I need to not use the HTTP\_PROXY temporarily. In R I can just set the HTTP\_PROXY to "" then it will work fine, but in Julia 0.7…

---

## [0.7: how to call linreg?](https://discourse.julialang.org/t/0-7-how-to-call-linreg/13105)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 3:33am UTC](https://discourse.julialang.org/t/0-7-how-to-call-linreg/13105 "2018-08-10T03:33:49Z")

</div>

I did add StatsBase as instructed, but still fail: $ julia \_ \_ \_ \_(\_)\_ | A fresh approach to technical computing (\_) | (\_) (\_) | Documentation: https://docs.julialang.org \_ \_ …

---

## [Has anyone got InspectDR or GLVisualize packages working with 0.7?](https://discourse.julialang.org/t/has-anyone-got-inspectdr-or-glvisualize-packages-working-with-0-7/13143)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 0\
**Last updated:** [August 10, 2018, 3:24am UTC](https://discourse.julialang.org/t/has-anyone-got-inspectdr-or-glvisualize-packages-working-with-0-7/13143 "2018-08-10T03:24:45Z")

</div>

Both of them (or their dependencies) don’t compile for me.

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

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