# Latest

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

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

**Page:** 1723

---

## [Numerical integration of cauchy principal value](https://discourse.julialang.org/t/numerical-integration-of-cauchy-principal-value/36059)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 6\
**Last updated:** [March 17, 2020, 4:46pm UTC](https://discourse.julialang.org/t/numerical-integration-of-cauchy-principal-value/36059 "2020-03-17T16:46:00Z")

</div>

I have an integral of the form: I = \\int\\limits\_{-1}^{1} f(x)\*w(x) dx, The function f(x) has a singularity of the form 1/(x-a) inside the interval \[-1, 1\], so that the integral I exists only as a cauchy principal value…

---

## [Makie scatter plot of vector of points](https://discourse.julialang.org/t/makie-scatter-plot-of-vector-of-points/41039)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 7\
**Last updated:** [June 10, 2020, 4:15pm UTC](https://discourse.julialang.org/t/makie-scatter-plot-of-vector-of-points/41039 "2020-06-10T16:15:21Z")

</div>

I would like to pass a vector of 3D points: v = Vector{Point3f0}(undef, 10) to scatter plot. Do I have to separate it into x, y and z columns first and call: scene = scatter(x, y, z, color = :red, markersize = 0.02) o…

---

## [Packages with different versions of a dependance](https://discourse.julialang.org/t/packages-with-different-versions-of-a-dependance/41109)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 7\
**Last updated:** [June 10, 2020, 3:17pm UTC](https://discourse.julialang.org/t/packages-with-different-versions-of-a-dependance/41109 "2020-06-10T15:17:07Z")

</div>

I have a piece of code using package A, and other piece using package B. Now I want to use them in the same project, but turns out packages A and B depend on a different version of a common dependence C - so Pkg cannot a…

---

## [Is anyone interested in creating a wrapped for \`blessed\` javascript (a ncurses alternative)](https://discourse.julialang.org/t/is-anyone-interested-in-creating-a-wrapped-for-blessed-javascript-a-ncurses-alternative/19766)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 8\
**Last updated:** [June 10, 2020, 2:52pm UTC](https://discourse.julialang.org/t/is-anyone-interested-in-creating-a-wrapped-for-blessed-javascript-a-ncurses-alternative/19766 "2020-06-10T14:52:03Z")

</div>

blessed is “a curses-like library with a high level terminal interface API for node.js”. blessed.contrib is an extension of the library that “build dashboards (or any other application) using ascii/ansi art and javascrip…

---

## [How to recover the parameters of a parametric type?](https://discourse.julialang.org/t/how-to-recover-the-parameters-of-a-parametric-type/41108)

<div class="topic-metadata">

**Author:** [@Lucas\_Queiroz](https://discourse.julialang.org/u/Lucas_Queiroz)\
**Replies:** 7\
**Last updated:** [June 10, 2020, 2:57pm UTC](https://discourse.julialang.org/t/how-to-recover-the-parameters-of-a-parametric-type/41108 "2020-06-10T14:57:45Z")

</div>

Is there any function that receives a parametric type as input and returns the parameters? For example, does the function below exist? julia\> get\_parameters(Array{Float64, 2}) (Float64, 2) In case get\_parameters doesn’…

---

## [Workflow tips for MPI-based code](https://discourse.julialang.org/t/workflow-tips-for-mpi-based-code/41131)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 2:39pm UTC](https://discourse.julialang.org/t/workflow-tips-for-mpi-based-code/41131 "2020-06-10T14:39:24Z")

</div>

Hi! I would be grateful if someone can help to speed-up my workflow when developing code based on MPI. The problem is that the code needs to be executed from the terminal: $ mpirun -np 5 julia my\_julia\_mpi\_code.jl w…

---

## [Multilayer Networks](https://discourse.julialang.org/t/multilayer-networks/40458)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 0\
**Last updated:** [May 30, 2020, 5:19am UTC](https://discourse.julialang.org/t/multilayer-networks/40458 "2020-05-30T05:19:02Z")

</div>

Has anybody heard of a Julia implementation of Multilayer networks? These are networks formed of multiple graphs over the same set of nodes, with different edges for the different graphs. Finally, edges link nodes in one…

---

## [Why \`mean\` with \`dims\` argument is so slow?](https://discourse.julialang.org/t/why-mean-with-dims-argument-is-so-slow/41105)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 4\
**Last updated:** [June 10, 2020, 12:15pm UTC](https://discourse.julialang.org/t/why-mean-with-dims-argument-is-so-slow/41105 "2020-06-10T12:15:16Z")

</div>

Consider: using BenchmarkTools, Statistics A = randn(4,3,2); @btime mean($A; dims=1); # 90.184 ns (1 allocation: 128 bytes) @btime mean($A); # 9.891 ns (0 allocations: 0 bytes) That’s a 10x factor difference! Is ther…

---

## [PyPlot: how to include a variable in a title](https://discourse.julialang.org/t/pyplot-how-to-include-a-variable-in-a-title/41121)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 12:12pm UTC](https://discourse.julialang.org/t/pyplot-how-to-include-a-variable-in-a-title/41121 "2020-06-10T12:12:29Z")

</div>

Hi, I have this loop in my code: for i=1:30 PyPlot.figure(i) if i \< 3 PyPlot.plot(y\[1:801\],eigenfunction\_approx\[1:801,i\]) PyPlot.title("Plot of the ${i}th eigenfunction") elseif i \< 10 …

---

## [Translating Matlab code using Ctrl + f in Atom](https://discourse.julialang.org/t/translating-matlab-code-using-ctrl-f-in-atom/41118)

<div class="topic-metadata">

**Author:** [@dadada\_dadada](https://discourse.julialang.org/u/dadada_dadada)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 11:14am UTC](https://discourse.julialang.org/t/translating-matlab-code-using-ctrl-f-in-atom/41118 "2020-06-10T11:14:38Z")

</div>

Hi, I am translating code from Matlab. My text editor is Atom. I would like to know if I can change text using find function (ctrl + f) ignoring parts of the text as follows size(param.sval, 1); being changed to size…

---

## [Calculating probability in normal distribution](https://discourse.julialang.org/t/calculating-probability-in-normal-distribution/40897)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 6\
**Last updated:** [June 10, 2020, 10:10am UTC](https://discourse.julialang.org/t/calculating-probability-in-normal-distribution/40897 "2020-06-10T10:10:58Z")

</div>

I want to calculate the probability of any particular value in a normal distribution. I suppose this is equivalent to calculating the percentile of a data point. Ideally some sort of function where I input a value and …

---

## [Something makes y-axis range too wide](https://discourse.julialang.org/t/something-makes-y-axis-range-too-wide/41092)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 9:56am UTC](https://discourse.julialang.org/t/something-makes-y-axis-range-too-wide/41092 "2020-06-10T09:56:04Z")

</div>

Something is odd.clearance max (0.9) and clearance min (0.522) are supposed to be constant throughout my simulation, so they should be straight lines, which they are. The strange thing is when plotting them, the y axis a…

---

## [Extracting Julia zip file doesn't create ~/juliax.x.x/lib/julia/sys.so automatically](https://discourse.julialang.org/t/extracting-julia-zip-file-doesnt-create-juliax-x-x-lib-julia-sys-so-automatically/41086)

<div class="topic-metadata">

**Author:** [@Hasan\_Em](https://discourse.julialang.org/u/Hasan_Em)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 8:08am UTC](https://discourse.julialang.org/t/extracting-julia-zip-file-doesnt-create-juliax-x-x-lib-julia-sys-so-automatically/41086 "2020-06-10T08:08:53Z")

</div>

Hello, I’m trying to install Julia locally in a 64-bit online IDE (MimirIDE) but after downloading and extracting Julia folder: sudo wget https://julialang-s3.julialang.org/bin/linux/x64/1.4/julia-1.4.2-linux-x86\_64.ta…

---

## [Color Pallete functions?](https://discourse.julialang.org/t/color-pallete-functions/40959)

<div class="topic-metadata">

**Author:** [@HaoLi111](https://discourse.julialang.org/u/HaoLi111)\
**Replies:** 5\
**Last updated:** [June 10, 2020, 7:28am UTC](https://discourse.julialang.org/t/color-pallete-functions/40959 "2020-06-10T07:28:15Z")

</div>

We can select color palletes in Plots.jl, but is there any function that can take an normalized vector ranging from 0-1 and give an output of an array of color vectors of RGB\[R,G,B\] For example, 0 gets mapped onto RGB\[0…

---

## [Can adding "Documentation" category to Julia Discourse be a good idea?](https://discourse.julialang.org/t/can-adding-documentation-category-to-julia-discourse-be-a-good-idea/41067)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 6:39am UTC](https://discourse.julialang.org/t/can-adding-documentation-category-to-julia-discourse-be-a-good-idea/41067 "2020-06-10T06:39:17Z")

</div>

My experience with learning Julia and various great packages for its ecosystem make me aware that documentation is in this case much more important than in the case of languages like C, C++, Python, Fortran (you can add …

---

## [GeoStats.jl tutorials](https://discourse.julialang.org/t/geostats-jl-tutorials/41103)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 5:53am UTC](https://discourse.julialang.org/t/geostats-jl-tutorials/41103 "2020-06-10T05:53:22Z")

</div>

If you are interested in learning more about geostatistics, I am creating some content on YouTube: Feel free to suggest topics for next videos, I’d be happy to adjust the material. If you want to be noti…

---

## [Looking for a simple surface plot with Makie](https://discourse.julialang.org/t/looking-for-a-simple-surface-plot-with-makie/41101)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 4:42am UTC](https://discourse.julialang.org/t/looking-for-a-simple-surface-plot-with-makie/41101 "2020-06-10T04:42:14Z")

</div>

This is what I tried: using Makie, GeometryBasics, Colors surface(\[0.0, 1.0, 2.0\], \[0.0, 1.0, 2.0\], rand(9)) and I’m getting: julia\> surface(\[0.0, 1.0, 2.0\], \[0.0, 1.0, 2.0\], rand(9)) ERROR: There was no \`AbstractPlo…

---

## [Use @\_\_LINE\_\_ etc in another macro definition](https://discourse.julialang.org/t/use-line-etc-in-another-macro-definition/41077)

<div class="topic-metadata">

**Author:** [@barfo](https://discourse.julialang.org/u/barfo)\
**Replies:** 2\
**Last updated:** [June 10, 2020, 3:51am UTC](https://discourse.julialang.org/t/use-line-etc-in-another-macro-definition/41077 "2020-06-10T03:51:46Z")

</div>

This has been up on First Steps for five days without eliciting a comment, hoping a wider audience can provide me some assistance… How do I do this… verbosity\_tags = \[....\] macro noise(tag, args...) return :(if $ta…

---

## [Use Logging to print a long list of variables in a single print block](https://discourse.julialang.org/t/use-logging-to-print-a-long-list-of-variables-in-a-single-print-block/40792)

<div class="topic-metadata">

**Author:** [@Salvatore\_Cosentino](https://discourse.julialang.org/u/Salvatore_Cosentino)\
**Replies:** 5\
**Last updated:** [June 10, 2020, 3:47am UTC](https://discourse.julialang.org/t/use-logging-to-print-a-long-list-of-variables-in-a-single-print-block/40792 "2020-06-10T03:47:21Z")

</div>

Hello everybody, It is the first time for me to write in this forum. I started using Julia recently, so I am sorry if my question might be very basic. I am using the Logging package to simplify debugging my code. In …

---

## [Does Plots.jl/StatsPlots.jl have an equivalent to GadFly's Geom.subplot\_grid?](https://discourse.julialang.org/t/does-plots-jl-statsplots-jl-have-an-equivalent-to-gadflys-geom-subplot-grid/40594)

<div class="topic-metadata">

**Author:** [@pjentsch0](https://discourse.julialang.org/u/pjentsch0)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 2:47am UTC](https://discourse.julialang.org/t/does-plots-jl-statsplots-jl-have-an-equivalent-to-gadflys-geom-subplot-grid/40594 "2020-06-10T02:47:56Z")

</div>

I’m looking for functionality similar to subplot\_grid in Gadfly.jl (Geom.subplot\_grid · Gadfly.jl), where grids of subplots can be given broader x/y labels. I would use Gadfly but all my other visualization is already u…

---

## [Check for letters-only string](https://discourse.julialang.org/t/check-for-letters-only-string/41091)

<div class="topic-metadata">

**Author:** [@Orr\_Orovan](https://discourse.julialang.org/u/Orr_Orovan)\
**Replies:** 9\
**Last updated:** [June 10, 2020, 2:04am UTC](https://discourse.julialang.org/t/check-for-letters-only-string/41091 "2020-06-10T02:04:38Z")

</div>

Python can check whether a string contain only letters with isalpha(): a\_few = “abcdefghijk” a\_few.isalpha() True mixed = “abc45defg” mixed.isalpha() False I have found Julia’s isletter() but it is limited t…

---

## [Reduce package registration waiting period](https://discourse.julialang.org/t/reduce-package-registration-waiting-period/40954)

<div class="topic-metadata">

**Author:** [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Replies:** 83\
**Last updated:** [June 10, 2020, 1:40am UTC](https://discourse.julialang.org/t/reduce-package-registration-waiting-period/40954 "2020-06-10T01:40:22Z")

</div>

Currently there’s a waiting period of 3 days before a new package is automatically merged into Julia general registry. I feel like the 3 day length was arbitrarily chosen and that it isn’t really required to be that long…

---

## [What is the Julia equivalent of "USE" in Fortran90?](https://discourse.julialang.org/t/what-is-the-julia-equivalent-of-use-in-fortran90/41035)

<div class="topic-metadata">

**Author:** [@Lian\_Yunlong](https://discourse.julialang.org/u/Lian_Yunlong)\
**Replies:** 10\
**Last updated:** [June 10, 2020, 12:59am UTC](https://discourse.julialang.org/t/what-is-the-julia-equivalent-of-use-in-fortran90/41035 "2020-06-10T00:59:25Z")

</div>

Hi everyone, recently I’ve been working on a project of rule-based translator from Fortran to Julia. The project is 60% completed, but now I encountered conceptual problems and I need to decide whether to include certai…

---

## [Break function on time limit](https://discourse.julialang.org/t/break-function-on-time-limit/7376)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 22\
**Last updated:** [June 9, 2020, 11:34pm UTC](https://discourse.julialang.org/t/break-function-on-time-limit/7376 "2020-06-09T23:34:45Z")

</div>

Is there a way to break a function after a time limit? I don’t have any access to the function. FYI (if it helps) I want to break a JuMP solve after some seconds without knowing which solver performs the task. (the so…

---

## [How to test an app at the REPL](https://discourse.julialang.org/t/how-to-test-an-app-at-the-repl/40510)

<div class="topic-metadata">

**Author:** [@German\_Salazar](https://discourse.julialang.org/u/German_Salazar)\
**Replies:** 3\
**Last updated:** [June 9, 2020, 9:15pm UTC](https://discourse.julialang.org/t/how-to-test-an-app-at-the-repl/40510 "2020-06-09T21:15:12Z")

</div>

Say, I want to develop a standalone, compiled application; after reading about various options, I settled on creating a project via Pkg.generate. Now, I have a project structure with Manifest.toml and Project.toml files…

---

## [How does setrounding work?](https://discourse.julialang.org/t/how-does-setrounding-work/40949)

<div class="topic-metadata">

**Author:** [@Lucas\_Queiroz](https://discourse.julialang.org/u/Lucas_Queiroz)\
**Replies:** 7\
**Last updated:** [June 9, 2020, 8:56pm UTC](https://discourse.julialang.org/t/how-does-setrounding-work/40949 "2020-06-09T20:56:47Z")

</div>

This is a session of my REPL julia\> setrounding(BigFloat, RoundDown) MPFRRoundDown::MPFRRoundingMode = 3 julia\> function f() println(big"0.3") end f (generic function with 1 method) julia\> setrounding(BigFlo…

---

## [Julia Packages and Julia Observer displays a black background](https://discourse.julialang.org/t/julia-packages-and-julia-observer-displays-a-black-background/41068)

<div class="topic-metadata">

**Author:** [@Amval](https://discourse.julialang.org/u/Amval)\
**Replies:** 4\
**Last updated:** [June 9, 2020, 8:32pm UTC](https://discourse.julialang.org/t/julia-packages-and-julia-observer-displays-a-black-background/41068 "2020-06-09T20:32:12Z")

</div>

I tried different browsers and devices. I just get a completely black page. Checking the HTML there is a div covering it all. \<div style="background-color: #000; width: 100vw; height: 100vh; position: absolute; left: 0;…

---

## [I can't find an example of accessing array element in "Arrays" chapter of Julia Manual](https://discourse.julialang.org/t/i-cant-find-an-example-of-accessing-array-element-in-arrays-chapter-of-julia-manual/41045)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 2\
**Last updated:** [June 9, 2020, 8:10am UTC](https://discourse.julialang.org/t/i-cant-find-an-example-of-accessing-array-element-in-arrays-chapter-of-julia-manual/41045 "2020-06-09T08:10:31Z")

</div>

I’m scanning “Arrays” chapter of Julia Manual and I don’t see syntax description and a simple example of accessing array element, e.g.: a = \[3 1; 4 1\] a\[1, 2\] a\[1\]\[2\] I’m pretty sure, I’m missing something.

---

## [Can't figure out why dynamic dispatch is occuring](https://discourse.julialang.org/t/cant-figure-out-why-dynamic-dispatch-is-occuring/41089)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 6\
**Last updated:** [June 9, 2020, 7:34pm UTC](https://discourse.julialang.org/t/cant-figure-out-why-dynamic-dispatch-is-occuring/41089 "2020-06-09T19:34:42Z")

</div>

I’m trying to figure out why the profiler and @code\_warntype are picking up dynamic dispatch in the following MWE. The basic function applies matrix multiplications to each column of a matrix array and accumulates the re…

---

## [Why does precompilation take so long for this no-op module?](https://discourse.julialang.org/t/why-does-precompilation-take-so-long-for-this-no-op-module/41026)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 2\
**Last updated:** [June 9, 2020, 7:19pm UTC](https://discourse.julialang.org/t/why-does-precompilation-take-so-long-for-this-no-op-module/41026 "2020-06-09T19:19:36Z")

</div>

Suppose I have a basically empty package which depends on a “heavy” (i.e. slow to precompile/load) package. E.g. module Foo using Zygote end Why does precompiling my empty package (Julia 1.4.2) take significantly longe…

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

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