# General Usage

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

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

**Page:** 724

---

## [HTTP.jl how to paralelise HTTP.request](https://discourse.julialang.org/t/http-jl-how-to-paralelise-http-request/43569)

<div class="topic-metadata">

**Author:** [@sz1992](https://discourse.julialang.org/u/sz1992)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 5:18pm UTC](https://discourse.julialang.org/t/http-jl-how-to-paralelise-http-request/43569 "2020-07-23T17:18:48Z")

</div>

I have multiple RESTAPI workers (aprox 50). I am using HTTP POST to send data and wait for results. I would like to send all 50 request in paralell. I tried using @async and @spawn. With both approaches I came to limit i…

---

## [Make\_pair equivalent in Julia?](https://discourse.julialang.org/t/make-pair-equivalent-in-julia/43562)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 3\
**Last updated:** [July 23, 2020, 4:04pm UTC](https://discourse.julialang.org/t/make-pair-equivalent-in-julia/43562 "2020-07-23T16:04:45Z")

</div>

Is there anything equivalent in Julia to do make\_pair on vectors, like in c++? Example: vec\[r\].insert(std::make\_pair(i,j)); Best regards

---

## [Pyimport works from repl defined module but not in my package](https://discourse.julialang.org/t/pyimport-works-from-repl-defined-module-but-not-in-my-package/43539)

<div class="topic-metadata">

**Author:** [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Replies:** 3\
**Last updated:** [July 23, 2020, 4:03pm UTC](https://discourse.julialang.org/t/pyimport-works-from-repl-defined-module-but-not-in-my-package/43539 "2020-07-23T16:03:54Z")

</div>

Hi, I’m trying to use PyCall to call the hnswlib python bindings from julia. The following MWE with a module defined at the repl works as expected. And also a slightly expanded version of that module where the find\_ann …

---

## [How to group data from multiple files?](https://discourse.julialang.org/t/how-to-group-data-from-multiple-files/43547)

<div class="topic-metadata">

**Author:** [@Valentine\_GRAND](https://discourse.julialang.org/u/Valentine_GRAND)\
**Replies:** 2\
**Last updated:** [July 23, 2020, 2:42pm UTC](https://discourse.julialang.org/t/how-to-group-data-from-multiple-files/43547 "2020-07-23T14:42:15Z")

</div>

Hello everyone, Here’s my code : function TypeFrame(objet) findFrame = findall(x-\>occursin("frame =",x),objet) sframe = \[\] for i in findFrame lframe = objet\[i\] sframe = \[sframe;split(lframe,r"frame…

---

## [Partition EnsembleSolution before using EnsembleSummary](https://discourse.julialang.org/t/partition-ensemblesolution-before-using-ensemblesummary/43541)

<div class="topic-metadata">

**Author:** [@jedforrest](https://discourse.julialang.org/u/jedforrest)\
**Replies:** 1\
**Last updated:** [July 23, 2020, 11:21am UTC](https://discourse.julialang.org/t/partition-ensemblesolution-before-using-ensemblesummary/43541 "2020-07-23T11:21:43Z")

</div>

I’ve started using EnsembleProblem in DifferentialEquations.jl and I like how simple it is to use with EnsembleSummary to create nice summary statistics and plots. However, I would like to partition EnsembleSolution int…

---

## [How to link the elements of array into a string](https://discourse.julialang.org/t/how-to-link-the-elements-of-array-into-a-string/30735)

<div class="topic-metadata">

**Author:** [@Yan](https://discourse.julialang.org/u/Yan)\
**Replies:** 8\
**Last updated:** [July 23, 2020, 4:18am UTC](https://discourse.julialang.org/t/how-to-link-the-elements-of-array-into-a-string/30735 "2020-07-23T04:18:02Z")

</div>

x=\[“j”,“u”,“l”,“i”,“a”\] such as: string?(x) into “julia”

---

## [Memory sizing and GC behavior](https://discourse.julialang.org/t/memory-sizing-and-gc-behavior/10121)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 6\
**Last updated:** [July 23, 2020, 2:01am UTC](https://discourse.julialang.org/t/memory-sizing-and-gc-behavior/10121 "2020-07-23T02:01:01Z")

</div>

I have a function that allocates a lot and hence every trial requires some time for GC. I’m just wondering if there’s any way to tune the system such that it has more heap memory and avoid having to GC so often? Benchm…

---

## [Distributed Computing Shared Arrays](https://discourse.julialang.org/t/distributed-computing-shared-arrays/43522)

<div class="topic-metadata">

**Author:** [@smickus](https://discourse.julialang.org/u/smickus)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 10:48pm UTC](https://discourse.julialang.org/t/distributed-computing-shared-arrays/43522 "2020-07-22T22:48:54Z")

</div>

I am trying to use a shared array and use that array inside of a function of a function. The issue is that the function that I am using the shared array in cannot have any additional parameters passed to it due to the f…

---

## [Shown all the element of vector in Juno](https://discourse.julialang.org/t/shown-all-the-element-of-vector-in-juno/43516)

<div class="topic-metadata">

**Author:** [@linlinlin](https://discourse.julialang.org/u/linlinlin)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 8:43pm UTC](https://discourse.julialang.org/t/shown-all-the-element-of-vector-in-juno/43516 "2020-07-22T20:43:03Z")

</div>

Hi, I use Atom/Juno to develop julia I want to see the value of a vector or an array, but in the workspace, only part (like, 10) of the elements are displayed. The elements can not be all displayed like matlab, C++ ho…

---

## [\`HTTP.get()\` crashes Julia completely](https://discourse.julialang.org/t/http-get-crashes-julia-completely/43506)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 19\
**Last updated:** [July 22, 2020, 8:15pm UTC](https://discourse.julialang.org/t/http-get-crashes-julia-completely/43506 "2020-07-22T20:15:40Z")

</div>

It should be reproducible. using CSV using HTTP f = CSV.File(HTTP.get("https://covidtracking.com/api/v1/states/daily.csv").body) julia: symbol lookup error: /home/affans/.julia/artifacts/746f3085962108a6a143ae685781…

---

## [Attaching workers to cores](https://discourse.julialang.org/t/attaching-workers-to-cores/43499)

<div class="topic-metadata">

**Author:** [@nishaChandramoorthy](https://discourse.julialang.org/u/nishaChandramoorthy)\
**Replies:** 10\
**Last updated:** [July 22, 2020, 8:09pm UTC](https://discourse.julialang.org/t/attaching-workers-to-cores/43499 "2020-07-22T20:09:29Z")

</div>

Hi, I am trying to run a program using Distributed. The workflow is to have each remote worker execute the same function (with different arguments) that is called using remotecall. The problem is that initially all w…

---

## [3D modelling in Julia](https://discourse.julialang.org/t/3d-modelling-in-julia/43502)

<div class="topic-metadata">

**Author:** [@adeil](https://discourse.julialang.org/u/adeil)\
**Replies:** 4\
**Last updated:** [July 22, 2020, 7:35pm UTC](https://discourse.julialang.org/t/3d-modelling-in-julia/43502 "2020-07-22T19:35:51Z")

</div>

Is there a package like VPython in Julia? I would like to create simulations with this one below in Julia.

---

## [Regime estimation for parameter space of small system](https://discourse.julialang.org/t/regime-estimation-for-parameter-space-of-small-system/41588)

<div class="topic-metadata">

**Author:** [@SidxA](https://discourse.julialang.org/u/SidxA)\
**Replies:** 7\
**Last updated:** [July 22, 2020, 4:14pm UTC](https://discourse.julialang.org/t/regime-estimation-for-parameter-space-of-small-system/41588 "2020-07-22T16:14:02Z")

</div>

Hello julia community, I’m relatively new to julia and have a few questions regarding a dynamical system representing a simple ecological model of five coupled equations. The goal is to let the system integrate for so…

---

## [Bug involving permutedims function](https://discourse.julialang.org/t/bug-involving-permutedims-function/43492)

<div class="topic-metadata">

**Author:** [@jhgoulart](https://discourse.julialang.org/u/jhgoulart)\
**Replies:** 3\
**Last updated:** [July 22, 2020, 2:20pm UTC](https://discourse.julialang.org/t/bug-involving-permutedims-function/43492 "2020-07-22T14:20:22Z")

</div>

I’m having a problem when trying to use the permutedims function on a quite fresh install of julia 1.4.1 on Ubuntu. Here is the error message I get: julia\> permutedims(randn(2,2,2),(1,3,2)) Illegal inttoptr %33 =…

---

## [Common x-/y-label in Plots.jl](https://discourse.julialang.org/t/common-x-y-label-in-plots-jl/43445)

<div class="topic-metadata">

**Author:** [@Antomek](https://discourse.julialang.org/u/Antomek)\
**Replies:** 4\
**Last updated:** [July 22, 2020, 1:53pm UTC](https://discourse.julialang.org/t/common-x-y-label-in-plots-jl/43445 "2020-07-22T13:53:21Z")

</div>

Hello everyone, I was wondering if there is a way to specify a common x- or y-label easily in Plots.jl when plotting one figure with multiple subplots. The following creates subplots with the same axes labels for both …

---

## [How to print function name and source file/line number](https://discourse.julialang.org/t/how-to-print-function-name-and-source-file-line-number/43486)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [July 22, 2020, 1:21pm UTC](https://discourse.julialang.org/t/how-to-print-function-name-and-source-file-line-number/43486 "2020-07-22T13:21:21Z")

</div>

Hello, is it possible to print the current function name and the REPL/Juno/VSCode clickable file name/function name, e.g. function foo() @codeLocation ... end Resulting in: Running function foo on /path/to/myf…

---

## [Branch elimination in Julia](https://discourse.julialang.org/t/branch-elimination-in-julia/43471)

<div class="topic-metadata">

**Author:** [@ettersi](https://discourse.julialang.org/u/ettersi)\
**Replies:** 7\
**Last updated:** [July 22, 2020, 12:18pm UTC](https://discourse.julialang.org/t/branch-elimination-in-julia/43471 "2020-07-22T12:18:43Z")

</div>

I have always been fascinated by the effect of branch prediction demonstrated in this StackOverflow question, and I wanted to include this example in my course to illustrate how hard it is to predict the performance of m…

---

## [Element-wise exponentiation](https://discourse.julialang.org/t/element-wise-exponentiation/43480)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 9\
**Last updated:** [July 22, 2020, 11:09am UTC](https://discourse.julialang.org/t/element-wise-exponentiation/43480 "2020-07-22T11:09:31Z")

</div>

Hi, I have this code: N = 100; n = 1:N; 2.^(-n) and the final line returns the error: ERROR: syntax: invalid syntax "2.^"; add space(s) to clarify I’ve tried adding a space before ^ and after it, and neither of thos…

---

## [3D object picker for Makie or other visualization package](https://discourse.julialang.org/t/3d-object-picker-for-makie-or-other-visualization-package/43458)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 3\
**Last updated:** [July 22, 2020, 5:04am UTC](https://discourse.julialang.org/t/3d-object-picker-for-makie-or-other-visualization-package/43458 "2020-07-22T05:04:08Z")

</div>

I noticed that Makie has 2D picking and mouse click screen to world coordinates transform: on(scene.events.mousebuttons) do buttons if ispressed(scene, Mouse.left) pos = to\_world(scene, Point2f0(scene.events…

---

## [Convert project code to a package (and maintain git commit history)](https://discourse.julialang.org/t/convert-project-code-to-a-package-and-maintain-git-commit-history/43438)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [July 21, 2020, 5:25pm UTC](https://discourse.julialang.org/t/convert-project-code-to-a-package-and-maintain-git-commit-history/43438 "2020-07-21T17:25:20Z")

</div>

I have some code in a project directory that is being tracked by git. The project directory looks like this: MyProj/ ├── .gitignore ├── .git │ └── # .git folder ├── Manifest.toml ├── Project.toml ├── examples │ ├── …

---

## [Help using @btime correctly](https://discourse.julialang.org/t/help-using-btime-correctly/43433)

<div class="topic-metadata">

**Author:** [@jackf](https://discourse.julialang.org/u/jackf)\
**Replies:** 5\
**Last updated:** [July 21, 2020, 3:44pm UTC](https://discourse.julialang.org/t/help-using-btime-correctly/43433 "2020-07-21T15:44:40Z")

</div>

https://github.com/JuliaLang/julia/issues/36751#issuecomment-661883249 I’ve been told I’m not using @btime correctly. Can someone please explain how to profile the allocations of this function without allocating the out…

---

## [ML feature importance in julia](https://discourse.julialang.org/t/ml-feature-importance-in-julia/17196)

<div class="topic-metadata">

**Author:** [@Ajaychat3](https://discourse.julialang.org/u/Ajaychat3)\
**Replies:** 15\
**Last updated:** [July 21, 2020, 2:41pm UTC](https://discourse.julialang.org/t/ml-feature-importance-in-julia/17196 "2020-07-21T14:41:43Z")

</div>

I am trying to fit decision tree and random forest classsifers in julia. Wanted to know what is the python equivalent of classifier.feature\_importance\_ in Julia.

---

## [Search for functions whose first argument can be a specific type](https://discourse.julialang.org/t/search-for-functions-whose-first-argument-can-be-a-specific-type/38318)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 4\
**Last updated:** [July 21, 2020, 1:06pm UTC](https://discourse.julialang.org/t/search-for-functions-whose-first-argument-can-be-a-specific-type/38318 "2020-07-21T13:06:38Z")

</div>

In object-oriented languages, it is easy to see what methods a type has. For example, to find a replace command for strings, I just need to search in the methods that a string object exposes (using, e.g., \_\_dict\_\_ in pyt…

---

## [Flux master is incompatible with GeometricFlux](https://discourse.julialang.org/t/flux-master-is-incompatible-with-geometricflux/43404)

<div class="topic-metadata">

**Author:** [@Naba7](https://discourse.julialang.org/u/Naba7)\
**Replies:** 6\
**Last updated:** [July 21, 2020, 12:14pm UTC](https://discourse.julialang.org/t/flux-master-is-incompatible-with-geometricflux/43404 "2020-07-21T12:14:33Z")

</div>

Since I need the Flux#master version for my testing of package FluxModels.jl, I am facing trouble in updating/adding it. I updated GeometricFlux.jl but still there is some error I can’t resolve. ERROR: Unsatisfiable req…

---

## [Export of SymPy symbol from module gives ReadOnlyMemoryError](https://discourse.julialang.org/t/export-of-sympy-symbol-from-module-gives-readonlymemoryerror/43426)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 10:36am UTC](https://discourse.julialang.org/t/export-of-sympy-symbol-from-module-gives-readonlymemoryerror/43426 "2020-07-21T10:36:53Z")

</div>

When I import the following module module MyMod using SymPy: symbols export b b = symbols("b") end and I try to access b from the REPL, I get: julia\> using MyMod; b Error showing value of type SymPy.Sym: ERROR: ReadOn…

---

## [Type problem](https://discourse.julialang.org/t/type-problem/43421)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 1\
**Last updated:** [July 21, 2020, 10:25am UTC](https://discourse.julialang.org/t/type-problem/43421 "2020-07-21T10:25:44Z")

</div>

I have the method plotCDFComparison(p::Union{Type{Gumbel}, Type{Laplace}, Type{Logistic}, Type{Normal}}) ... end but when I run it as plotCDFComparison(Normal(μ,σ)); I get an error MethodError: no method matchin…

---

## [Test Reports with JUnit XML or Cucumber JSON](https://discourse.julialang.org/t/test-reports-with-junit-xml-or-cucumber-json/34194)

<div class="topic-metadata">

**Author:** [@mopg](https://discourse.julialang.org/u/mopg)\
**Replies:** 1\
**Last updated:** [July 21, 2020, 5:13am UTC](https://discourse.julialang.org/t/test-reports-with-junit-xml-or-cucumber-json/34194 "2020-07-21T05:13:41Z")

</div>

Is anyone aware of a package that allows for creating JUnit XML or Cucumber JSON code test reports to be used in Jenkins and the like? I found TestReports.jl, but that doesn’t seem to be maintained. I believe it is als…

---

## [Looking for elegant cartesian grid array assignment](https://discourse.julialang.org/t/looking-for-elegant-cartesian-grid-array-assignment/43360)

<div class="topic-metadata">

**Author:** [@purplishrock](https://discourse.julialang.org/u/purplishrock)\
**Replies:** 7\
**Last updated:** [July 21, 2020, 4:15am UTC](https://discourse.julialang.org/t/looking-for-elegant-cartesian-grid-array-assignment/43360 "2020-07-21T04:15:40Z")

</div>

I’m building an array of cube centers for a 3-D cartesion grid, something like (ignore for the moment, for simplicity, that the cube centers are actually located at an offset of dx/2, dy/2, dz/2). for i=1:nx for j=1:n…

---

## [Debugging workflows](https://discourse.julialang.org/t/debugging-workflows/39487)

<div class="topic-metadata">

**Author:** [@ElectronicTeaCup](https://discourse.julialang.org/u/ElectronicTeaCup)\
**Replies:** 6\
**Last updated:** [July 20, 2020, 11:48pm UTC](https://discourse.julialang.org/t/debugging-workflows/39487 "2020-07-20T23:48:11Z")

</div>

I am unsure how to ask this but here goes: I am having difficulty debugging my code. Coming from a MATLAB background, I am used to a very smooth debugging experience. But with Julia, I’ve tried using the Juno debugger an…

---

## [Cholesky Factorization of Transpose Matrix using LinearAlgebra raises Error](https://discourse.julialang.org/t/cholesky-factorization-of-transpose-matrix-using-linearalgebra-raises-error/43392)

<div class="topic-metadata">

**Author:** [@nil](https://discourse.julialang.org/u/nil)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 9:49pm UTC](https://discourse.julialang.org/t/cholesky-factorization-of-transpose-matrix-using-linearalgebra-raises-error/43392 "2020-07-20T21:49:16Z")

</div>

\>versioninfo() Julia Version 1.4.2 Commit 44fa15b150\* (2020-05-23 18:35 UTC) Platform Info: OS: Linux (x86\_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz WORD\_SIZE: 64 LIBM: libopenlibm LLVM: li…

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

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