# General Usage

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

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

**Page:** 1000

---

## [Looking for solvers like Matlab's fsolve for Julia](https://discourse.julialang.org/t/looking-for-solvers-like-matlabs-fsolve-for-julia/4101)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 9\
**Last updated:** [February 1, 2018, 4:49pm UTC](https://discourse.julialang.org/t/looking-for-solvers-like-matlabs-fsolve-for-julia/4101 "2018-02-01T16:49:35Z")

</div>

I am looking for a tutorial/package for a solver in Julia that is similar to fsolve in Matlab. My problem is mostly that I have a system of equations that I want to find a solution for. My system of equation however take…

---

## [Documenter.jl how to: equations with label/ref?](https://discourse.julialang.org/t/documenter-jl-how-to-equations-with-label-ref/8742)

<div class="topic-metadata">

**Author:** [@Vincent\_Picaud](https://discourse.julialang.org/u/Vincent_Picaud)\
**Replies:** 0\
**Last updated:** [February 1, 2018, 3:34pm UTC](https://discourse.julialang.org/t/documenter-jl-how-to-equations-with-label-ref/8742 "2018-02-01T15:34:13Z")

</div>

Is it possible to label LaTeX equations for future reference (link) in Documenter.jl doc? I am thinking of something like: \> \`\`\`math #yourmathlabel \> \> a + b = c \> \`\`\` \> \> Can be referenced with \[#yourmathlabel\] …

---

## [Can't build from source, macOS, archive\_write\_pax\_header?](https://discourse.julialang.org/t/cant-build-from-source-macos-archive-write-pax-header/8739)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 2\
**Last updated:** [February 1, 2018, 2:22pm UTC](https://discourse.julialang.org/t/cant-build-from-source-macos-archive-write-pax-header/8739 "2018-02-01T14:22:45Z")

</div>

i’m hitting this error on my mac (OS High Sierra) when trying to build from source. any ideas? # it seems openBLAS completes fine. # changed nothing in Make.inc OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE) …

---

## [REPL line editing: C-u not expected behaviour](https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732)

<div class="topic-metadata">

**Author:** [@mvhulten](https://discourse.julialang.org/u/mvhulten)\
**Replies:** 4\
**Last updated:** [February 1, 2018, 12:14pm UTC](https://discourse.julialang.org/t/repl-line-editing-c-u-not-expected-behaviour/8732 "2018-02-01T12:14:03Z")

</div>

In Julia 0.6.2, when I am in REPL (interactive) mode, and I’ve typed something and put the cursor halfway or so, and then press C-u, the whole line disappears. I expected that only what’s left disappears, which is what …

---

## [Benchmarks: Julia vs Python+Numba](https://discourse.julialang.org/t/benchmarks-julia-vs-python-numba/8709)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 4\
**Last updated:** [January 31, 2018, 2:45pm UTC](https://discourse.julialang.org/t/benchmarks-julia-vs-python-numba/8709 "2018-01-31T14:45:29Z")

</div>

Just sharing - I started running some reality checks. I hope experiments like this would re-enforce our assessment about Julia’s greatness in performance, as compared to the Python+Numba ecosystem. Only one notebook i…

---

## [Prevent crowding of subplots in Plots.jl](https://discourse.julialang.org/t/prevent-crowding-of-subplots-in-plots-jl/8716)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 2:40pm UTC](https://discourse.julialang.org/t/prevent-crowding-of-subplots-in-plots-jl/8716 "2018-01-31T14:40:49Z")

</div>

I have a 2x2 grid of subplots in Plots.jl. The button row of plots are plotted on top of x-axis label of the plots on the top row. Is there a simple way to prevent this from happening? Here is a MWE: using Plots plotlyj…

---

## [(side to side) translation of R code into Julia](https://discourse.julialang.org/t/side-to-side-translation-of-r-code-into-julia/8711)

<div class="topic-metadata">

**Author:** [@Federico\_Calboli](https://discourse.julialang.org/u/Federico_Calboli)\
**Replies:** 2\
**Last updated:** [January 31, 2018, 9:52am UTC](https://discourse.julialang.org/t/side-to-side-translation-of-r-code-into-julia/8711 "2018-01-31T09:52:24Z")

</div>

Hi All, on a whim I googled ‘translate Matlab code in Julia’, and I got this page: which provides a side to side translation. I code in R a lot, so I was wondering whether there is a similar thing for R to Julia (if …

---

## [Argument suggestions in REPL](https://discourse.julialang.org/t/argument-suggestions-in-repl/8705)

<div class="topic-metadata">

**Author:** [@abshej](https://discourse.julialang.org/u/abshej)\
**Replies:** 0\
**Last updated:** [January 31, 2018, 3:57am UTC](https://discourse.julialang.org/t/argument-suggestions-in-repl/8705 "2018-01-31T03:57:13Z")

</div>

In REPL, the suggestions for the arguments to a function are usually the argument definitions(helpful) if partial arguments haven’t been typed or a list of functions or variables that are not really what you are looking …

---

## [Error reading in English pound symbol from csv file](https://discourse.julialang.org/t/error-reading-in-english-pound-symbol-from-csv-file/8665)

<div class="topic-metadata">

**Author:** [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Replies:** 4\
**Last updated:** [January 30, 2018, 9:12pm UTC](https://discourse.julialang.org/t/error-reading-in-english-pound-symbol-from-csv-file/8665 "2018-01-30T21:12:30Z")

</div>

Hi all, I’m attempting to read in a text file (.csv) using readdlm(file\_path\_here, ',', String), and I’m getting the following error: at row 275, column 3 : UnicodeError: invalid character index 27265 (0xa3 is a contin…

---

## [fusing not faster](https://discourse.julialang.org/t/fusing-not-faster/8696)

<div class="topic-metadata">

**Author:** [@mvhulten](https://discourse.julialang.org/u/mvhulten)\
**Replies:** 7\
**Last updated:** [January 30, 2018, 5:20pm UTC](https://discourse.julialang.org/t/fusing-not-faster/8696 "2018-01-30T17:20:52Z")

</div>

I just read about fusing and broadcasting. I understood that fusing is faster than other approaches. But I have this code: julia\> a = rand(1, 10000) 1×10000 Array{Float64,2}: 0.975847 0.427092 0.480224 … 0.469955…

---

## [Conversion and type stability](https://discourse.julialang.org/t/conversion-and-type-stability/8692)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon](https://discourse.julialang.org/u/Philippe_Maincon)\
**Replies:** 4\
**Last updated:** [January 30, 2018, 2:04pm UTC](https://discourse.julialang.org/t/conversion-and-type-stability/8692 "2018-01-30T14:04:02Z")

</div>

I am writing a code in which the input file is a Julia script, and the user may provide some input in the form of functions (of one or several variables). The code may use these functions by calling them with Float64, o…

---

## [Keeping track of simple vs high-performance versions](https://discourse.julialang.org/t/keeping-track-of-simple-vs-high-performance-versions/8651)

<div class="topic-metadata">

**Author:** [@improbable22](https://discourse.julialang.org/u/improbable22)\
**Replies:** 2\
**Last updated:** [January 30, 2018, 7:57am UTC](https://discourse.julialang.org/t/keeping-track-of-simple-vs-high-performance-versions/8651 "2018-01-30T07:57:56Z")

</div>

Prompted by this Dot function thread, in which I learned about SugarBLAS and InplaceOps and Yeppp… Often it seems that the first implementation of a function is very simple, and then the fast version is quite a bit more …

---

## [Floats or Integers or Vectors with specific ranges?](https://discourse.julialang.org/t/floats-or-integers-or-vectors-with-specific-ranges/8682)

<div class="topic-metadata">

**Author:** [@ivo\_welch](https://discourse.julialang.org/u/ivo_welch)\
**Replies:** 6\
**Last updated:** [January 30, 2018, 5:51am UTC](https://discourse.julialang.org/t/floats-or-integers-or-vectors-with-specific-ranges/8682 "2018-01-30T05:51:38Z")

</div>

Very basic questions: can I define an Int8 Type that can only range from 5 to 20, but throws an error if I try to assign 21 ? can I define a Float64 Type that can only range from 1.0 to Infinity, if I try to assign 0.5…

---

## [Tanslate code from PooledDataArray to CategoricalArray](https://discourse.julialang.org/t/tanslate-code-from-pooleddataarray-to-categoricalarray/8646)

<div class="topic-metadata">

**Author:** [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Replies:** 3\
**Last updated:** [January 29, 2018, 4:21pm UTC](https://discourse.julialang.org/t/tanslate-code-from-pooleddataarray-to-categoricalarray/8646 "2018-01-29T16:21:54Z")

</div>

I have this code in FixedEffectModels where a function takes a Dataframe as argument and returns a PooledDataArray. The goal of this function is to create a vector that indexes groups defined by different combination of …

---

## [How to change imputs in PyPlot for Plots or GR](https://discourse.julialang.org/t/how-to-change-imputs-in-pyplot-for-plots-or-gr/6543)

<div class="topic-metadata">

**Author:** [@leaoshark](https://discourse.julialang.org/u/leaoshark)\
**Replies:** 16\
**Last updated:** [January 29, 2018, 1:44pm UTC](https://discourse.julialang.org/t/how-to-change-imputs-in-pyplot-for-plots-or-gr/6543 "2018-01-29T13:44:44Z")

</div>

In windows, PyPlot does not work and i do not know how to fix it … so, i want to use Plots or GR to plot some data. i have 2 examples working in PyPlot … can someone help me to translate into GR or Plots ? I use plot …

---

## [Sparsevector .+=](https://discourse.julialang.org/t/sparsevector/8661)

<div class="topic-metadata">

**Author:** [@augustinyiptong](https://discourse.julialang.org/u/augustinyiptong)\
**Replies:** 3\
**Last updated:** [January 29, 2018, 9:04am UTC](https://discourse.julialang.org/t/sparsevector/8661 "2018-01-29T09:04:23Z")

</div>

A = sparsevec(\[0, 0, 1, 1\]) B = sparsevec(\[1, 1, 0, 0\]) A .+= B full(A) gives 4-element Array{Int64,1}: 1 1 1 0 which doesnt look right?

---

## [More than one threaded loop in a function breaks threading?](https://discourse.julialang.org/t/more-than-one-threaded-loop-in-a-function-breaks-threading/8663)

<div class="topic-metadata">

**Author:** [@samtkaplan](https://discourse.julialang.org/u/samtkaplan)\
**Replies:** 1\
**Last updated:** [January 29, 2018, 2:09am UTC](https://discourse.julialang.org/t/more-than-one-threaded-loop-in-a-function-breaks-threading/8663 "2018-01-29T02:09:06Z")

</div>

Hello, I know that multi-threading is still an experimental feature, but I want to ask about the following observation. It appears that the Threads.@threads macro works quite well when there is one threaded loop in a f…

---

## [Travis CI fails to import PyPlot](https://discourse.julialang.org/t/travis-ci-fails-to-import-pyplot/8662)

<div class="topic-metadata">

**Author:** [@charlesll](https://discourse.julialang.org/u/charlesll)\
**Replies:** 0\
**Last updated:** [January 29, 2018, 1:27am UTC](https://discourse.julialang.org/t/travis-ci-fails-to-import-pyplot/8662 "2018-01-29T01:27:35Z")

</div>

Hi all, I am trying to prepare the 0.4 release of my package, Spectra.jl. I try to run the tests in Travis CI (Linux and OSX), but I get a weird error regarding PyPlot. It seems that, when Travis CI try running the tes…

---

## [Julia project file?](https://discourse.julialang.org/t/julia-project-file/8653)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 3\
**Last updated:** [January 28, 2018, 9:55pm UTC](https://discourse.julialang.org/t/julia-project-file/8653 "2018-01-28T21:55:03Z")

</div>

I was wondering if any of Julia editor can generate project file. I need to switch among Linux and Windows machines on a daily basis, and the cd(joinpath(homedir()),"....")) approach is not efficient (portable) enough fo…

---

## [Benchmarking tests to ensure PRs don't introduce regressions](https://discourse.julialang.org/t/benchmarking-tests-to-ensure-prs-dont-introduce-regressions/8630)

<div class="topic-metadata">

**Author:** [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Replies:** 5\
**Last updated:** [January 28, 2018, 6:44pm UTC](https://discourse.julialang.org/t/benchmarking-tests-to-ensure-prs-dont-introduce-regressions/8630 "2018-01-28T18:44:32Z")

</div>

Has anyone come up with a clever way to perform benchmarking of specific functions as part of the testing or CI process so that PRs can be checked to make sure no performance regressions are introduced?

---

## [Naming: Remove all underscores to matter what?](https://discourse.julialang.org/t/naming-remove-all-underscores-to-matter-what/8549)

<div class="topic-metadata">

**Author:** [@gabrielgellner](https://discourse.julialang.org/u/gabrielgellner)\
**Replies:** 123\
**Last updated:** [January 28, 2018, 6:10pm UTC](https://discourse.julialang.org/t/naming-remove-all-underscores-to-matter-what/8549 "2018-01-28T18:10:42Z")

</div>

Looking over the latest 1.0 milestone I see that the underscore apocalypse in Base is beginning to build steam. Am I correct in thinking that julia now wants everything to just be mashed together? Length doesn’t seem to …

---

## [Backprop error: Complex numbers in neuron weights?](https://discourse.julialang.org/t/backprop-error-complex-numbers-in-neuron-weights/8650)

<div class="topic-metadata">

**Author:** [@y4lu](https://discourse.julialang.org/u/y4lu)\
**Replies:** 2\
**Last updated:** [January 28, 2018, 3:12am UTC](https://discourse.julialang.org/t/backprop-error-complex-numbers-in-neuron-weights/8650 "2018-01-28T03:12:44Z")

</div>

Any thoughts on how I may have introduced complex numbers into the algorithm by accident? Ah it seems to have disappearred now =/ but it was an error like minimum(matrixX) ^ 0.2 Domain Error: Complex result requires …

---

## [View and Slices: comparison of speed](https://discourse.julialang.org/t/view-and-slices-comparison-of-speed/8647)

<div class="topic-metadata">

**Author:** [@SepandMeenu](https://discourse.julialang.org/u/SepandMeenu)\
**Replies:** 4\
**Last updated:** [January 27, 2018, 11:44pm UTC](https://discourse.julialang.org/t/view-and-slices-comparison-of-speed/8647 "2018-01-27T23:44:00Z")

</div>

I measured the speed for mapping a function of several variables on slices and views of arrays. The speed of slicing seems to be higher than views! And using the macro form, @view, increases the speed compared to the e…

---

## [What is the difference between switch --compile=yes & --compile=all for AOT?](https://discourse.julialang.org/t/what-is-the-difference-between-switch-compile-yes-compile-all-for-aot/8608)

<div class="topic-metadata">

**Author:** [@Martin\_Florek](https://discourse.julialang.org/u/Martin_Florek)\
**Replies:** 9\
**Last updated:** [January 27, 2018, 7:45pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-switch-compile-yes-compile-all-for-aot/8608 "2018-01-27T19:45:04Z")

</div>

I using the perfect repository Julia AOT compiler, but I have questions about switch –compile={yes|no|all|min} Enable or disable JIT compiler, or request exhaustive compilation I have no idea what this does. I suspe…

---

## [Julia kernel (Windows) quits after some time - where can I find logs to locate problem?](https://discourse.julialang.org/t/julia-kernel-windows-quits-after-some-time-where-can-i-find-logs-to-locate-problem/8582)

<div class="topic-metadata">

**Author:** [@egcjm](https://discourse.julialang.org/u/egcjm)\
**Replies:** 2\
**Last updated:** [January 27, 2018, 12:40pm UTC](https://discourse.julialang.org/t/julia-kernel-windows-quits-after-some-time-where-can-i-find-logs-to-locate-problem/8582 "2018-01-27T12:40:14Z")

</div>

The Julia Pro 6.2 kernel installed in Windows keeps on dying . The “DOS” window abruptly closes – the Jupyter notebook is disconnected and data is lost. Where can I find logs to start pinpointing the problem?

---

## [Cannot find zlib when building libxml2 on Windows using BinaryBuilder.jl](https://discourse.julialang.org/t/cannot-find-zlib-when-building-libxml2-on-windows-using-binarybuilder-jl/8519)

<div class="topic-metadata">

**Author:** [@bicycle1885](https://discourse.julialang.org/u/bicycle1885)\
**Replies:** 8\
**Last updated:** [January 27, 2018, 3:53pm UTC](https://discourse.julialang.org/t/cannot-find-zlib-when-building-libxml2-on-windows-using-binarybuilder-jl/8519 "2018-01-27T15:53:47Z")

</div>

Hi, I’m trying to build libxml2 for various platforms using BinaryBuilder.jl. This works very well on Ubuntu 16.04, which is on VirtualBox or on TravisCI. However, when building libxml2, I found Windows failed to find l…

---

## [BinaryProvider.jl: powershell download blocked by antivirus/anti-malware software](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634)

<div class="topic-metadata">

**Author:** [@antoine-soubret](https://discourse.julialang.org/u/antoine-soubret)\
**Replies:** 8\
**Last updated:** [January 27, 2018, 1:22pm UTC](https://discourse.julialang.org/t/binaryprovider-jl-powershell-download-blocked-by-antivirus-anti-malware-software/8634 "2018-01-27T13:22:23Z")

</div>

Hi, I am working on a corporate computer with Windows 7 Enterprise and Powershell version 2.0. When I am trying to install packages such as Sundials.jl or CxxWrap.jl, I get an error when the powershell command invoked …

---

## [Using variables from call space in macro return execution](https://discourse.julialang.org/t/using-variables-from-call-space-in-macro-return-execution/8616)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 18\
**Last updated:** [January 27, 2018, 8:47am UTC](https://discourse.julialang.org/t/using-variables-from-call-space-in-macro-return-execution/8616 "2018-01-27T08:47:23Z")

</div>

TL DR: I have a macro in an external module, how do I enable the expression it executes after “return” to see variables declared in the scope in which the macro is called? Background at the end if you are interested. I …

---

## [Use QR factorization efficiently](https://discourse.julialang.org/t/use-qr-factorization-efficiently/8615)

<div class="topic-metadata">

**Author:** [@saschatimme](https://discourse.julialang.org/u/saschatimme)\
**Replies:** 12\
**Last updated:** [January 27, 2018, 7:17am UTC](https://discourse.julialang.org/t/use-qr-factorization-efficiently/8615 "2018-01-27T07:17:33Z")

</div>

Hey there, I wanted to solve an overdetermined system Ax=b where A \\in \\mathbb{R}^{m \\times n} and b \\in \\mathbb{R}^{m} with m \< n using the QR decomposition. Since this in a very performance critical part I wanted to …

---

## [Help building julia](https://discourse.julialang.org/t/help-building-julia/8620)

<div class="topic-metadata">

**Author:** [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Replies:** 3\
**Last updated:** [January 27, 2018, 12:15am UTC](https://discourse.julialang.org/t/help-building-julia/8620 "2018-01-27T00:15:09Z")

</div>

So despite using julia for a while I’ve never built it from scatch, only used the binaries. I figure it’s about time. I tried running following the windows instructions a few weeks ago, but I realized that I ran it make…

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

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