# Latest

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

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

**Page:** 1759

---

## [Announcing the JuliaHealth organization](https://discourse.julialang.org/t/announcing-the-juliahealth-organization/38574)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 7:43pm UTC](https://discourse.julialang.org/t/announcing-the-juliahealth-organization/38574 "2020-05-03T19:43:53Z")

</div>

JuliaHealth I’m pleased to announce the creation of the JuliaHealth organization, an organization for anyone working on using Julia in medicine, health care, public health, biomedical research, biomedical informatics, et…

---

## [Cumsum! safe to use in-place?](https://discourse.julialang.org/t/cumsum-safe-to-use-in-place/38690)

<div class="topic-metadata">

**Author:** [@dmitrip](https://discourse.julialang.org/u/dmitrip)\
**Replies:** 9\
**Last updated:** [May 3, 2020, 7:13pm UTC](https://discourse.julialang.org/t/cumsum-safe-to-use-in-place/38690 "2020-05-03T19:13:40Z")

</div>

Is it safe to use cumsum!(x, x) to replace the contents of x with cumsum(x) (in order to avoid allocating another vector to hold the result)? Am I relying on implementation details that may change?

---

## [Special Functions (Elliptic.jl) and arbitrary precision](https://discourse.julialang.org/t/special-functions-elliptic-jl-and-arbitrary-precision/38658)

<div class="topic-metadata">

**Author:** [@StarecZosima](https://discourse.julialang.org/u/StarecZosima)\
**Replies:** 9\
**Last updated:** [May 3, 2020, 6:43pm UTC](https://discourse.julialang.org/t/special-functions-elliptic-jl-and-arbitrary-precision/38658 "2020-05-03T18:43:46Z")

</div>

I do not understand how to work in arbitrary precision in Julia. I encountered the problem when using a function from the Elliptic.jl package K(1-10^-23) returns Inf while for example Mathematica accuratel…

---

## [Best practice for several alternative constructors](https://discourse.julialang.org/t/best-practice-for-several-alternative-constructors/38655)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 7\
**Last updated:** [May 3, 2020, 6:21pm UTC](https://discourse.julialang.org/t/best-practice-for-several-alternative-constructors/38655 "2020-05-03T18:21:38Z")

</div>

As a simplified example, suppose I have a type representing an axis-aligned ellipse defined by its major and minor axes: struct Ellipse major::Float64 minor::Float64 end It makes sense to construct an ellipse f…

---

## [How to use developed package in IJulia?](https://discourse.julialang.org/t/how-to-use-developed-package-in-ijulia/38676)

<div class="topic-metadata">

**Author:** [@dcastel](https://discourse.julialang.org/u/dcastel)\
**Replies:** 2\
**Last updated:** [May 3, 2020, 5:20pm UTC](https://discourse.julialang.org/t/how-to-use-developed-package-in-ijulia/38676 "2020-05-03T17:20:29Z")

</div>

Hi all, I was creating a pull request for Plots.jl when I wanted to test a feature available in a Jupyter notebook. In various ways I tried including the locally developed package into the notebook but I did not succeed…

---

## [2nd Community/Diversity and Inclusion call on May 18th (4:00-5:00 PM UTC)](https://discourse.julialang.org/t/2nd-community-diversity-and-inclusion-call-on-may-18th-400-pm-utc/38689)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 0\
**Last updated:** [May 3, 2020, 5:16pm UTC](https://discourse.julialang.org/t/2nd-community-diversity-and-inclusion-call-on-may-18th-400-pm-utc/38689 "2020-05-03T17:16:28Z")

</div>

Hey all, We will be having our 2nd Community/Diversity and Inclusion call on May 18th from 4:00-5:00 PM UTC. The intent is to briefly talk about some of the recent community efforts and just generally to bounce ideas a…

---

## [What is the different in BinaryBuilder between a server build and local build?](https://discourse.julialang.org/t/what-is-the-different-in-binarybuilder-between-a-server-build-and-local-build/38679)

<div class="topic-metadata">

**Author:** [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Replies:** 7\
**Last updated:** [May 3, 2020, 4:17pm UTC](https://discourse.julialang.org/t/what-is-the-different-in-binarybuilder-between-a-server-build-and-local-build/38679 "2020-05-03T16:17:11Z")

</div>

Tesseract in Yggdrasil is at 4.1.0 and there have been “many bug fixes” in the 4.1.1 release. So I wanted to see if I could upgrade it to 4.1.1. I updated the build\_tarballs.jl to pull down the 4.1.1 source for Tessera…

---

## [Julia bindings to SandDance for Plotting/Visualization?](https://discourse.julialang.org/t/julia-bindings-to-sanddance-for-plotting-visualization/38615)

<div class="topic-metadata">

**Author:** [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Replies:** 4\
**Last updated:** [May 3, 2020, 10:44am UTC](https://discourse.julialang.org/t/julia-bindings-to-sanddance-for-plotting-visualization/38615 "2020-05-03T10:44:43Z")

</div>

Is anybody thinking about building Julia bindings for MS Sanddance? It’s relatively new, combining Vega for layout and Deck.gl for WebGL rendering. The demos are really impressive. CC @davidanthoff

---

## [Bug types in Julia: what types of bugs in Julia programs have you experienced? Are they different from bug types in general programming languages like C/C++?](https://discourse.julialang.org/t/bug-types-in-julia-what-types-of-bugs-in-julia-programs-have-you-experienced-are-they-different-from-bug-types-in-general-programming-languages-like-c-c/38640)

<div class="topic-metadata">

**Author:** [@julia.user.buet](https://discourse.julialang.org/u/julia.user.buet)\
**Replies:** 5\
**Last updated:** [May 3, 2020, 9:10am UTC](https://discourse.julialang.org/t/bug-types-in-julia-what-types-of-bugs-in-julia-programs-have-you-experienced-are-they-different-from-bug-types-in-general-programming-languages-like-c-c/38640 "2020-05-03T09:10:29Z")

</div>

Dear community, Hope everyone is doing safe in these stressful times. I am just getting started with Julia programs and wanted to know about the bug types that typically occur. Are bug types the same as C/C++ or Java? D…

---

## [PyPlot plots - set defaults as in Plots gr()](https://discourse.julialang.org/t/pyplot-plots-set-defaults-as-in-plots-gr/38656)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 0\
**Last updated:** [May 3, 2020, 8:44am UTC](https://discourse.julialang.org/t/pyplot-plots-set-defaults-as-in-plots-gr/38656 "2020-05-03T08:44:29Z")

</div>

I want to set the default colors and settings that are in Plots using the gr() backend when I am using PyPlot. Is there a simple way to do it? For example, I was looking for the colors definition in order to use them, b…

---

## [Pkg.GitTools.clone have been changed, and what is the ctx?](https://discourse.julialang.org/t/pkg-gittools-clone-have-been-changed-and-what-is-the-ctx/38651)

<div class="topic-metadata">

**Author:** [@Alireza\_Ghavaminia](https://discourse.julialang.org/u/Alireza_Ghavaminia)\
**Replies:** 2\
**Last updated:** [May 3, 2020, 8:25am UTC](https://discourse.julialang.org/t/pkg-gittools-clone-have-been-changed-and-what-is-the-ctx/38651 "2020-05-03T08:25:24Z")

</div>

Hello, I have found that the Pkg.GitTools.clone command has been changed without noticing it’s change in the release notes. Although I don’t know this was intentional or not. Anyways, I reported it because This change b…

---

## [How do you deserialize stateful optimizers in Flux?](https://discourse.julialang.org/t/how-do-you-deserialize-stateful-optimizers-in-flux/38644)

<div class="topic-metadata">

**Author:** [@findmyway](https://discourse.julialang.org/u/findmyway)\
**Replies:** 4\
**Last updated:** [May 3, 2020, 7:47am UTC](https://discourse.julialang.org/t/how-do-you-deserialize-stateful-optimizers-in-flux/38644 "2020-05-03T07:47:39Z")

</div>

For some stateful optimizers, like ADAM, it has an IdDict field to store momentums of parameters. When deserializing the optimizer with BSON, the id info is lost in the newly created IdDict. This makes it hard to truly r…

---

## [Could someone demystify arrays for me?](https://discourse.julialang.org/t/could-someone-demystify-arrays-for-me/38643)

<div class="topic-metadata">

**Author:** [@krstoff](https://discourse.julialang.org/u/krstoff)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 5:36am UTC](https://discourse.julialang.org/t/could-someone-demystify-arrays-for-me/38643 "2020-05-03T05:36:48Z")

</div>

I was having trouble finding performance characteristics for push! and pushfirst! on Vector{T} so I wrote a quick test comparing the two and was surprised to find that they were the same speed - even when intermixed. I d…

---

## [New Singular.jl (computer algebra) package for Julia](https://discourse.julialang.org/t/new-singular-jl-computer-algebra-package-for-julia/1383)

<div class="topic-metadata">

**Author:** [@wbhart](https://discourse.julialang.org/u/wbhart)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 5:25am UTC](https://discourse.julialang.org/t/new-singular-jl-computer-algebra-package-for-julia/1383 "2020-05-03T05:25:00Z")

</div>

I just finished writing a blog post about a new Singular.jl package which we have been working on. It provides access to much of the C++ kernel of Singular, a popular computer algebra system with a very good Groebner bas…

---

## [What does your (private) computing setup look like?](https://discourse.julialang.org/t/what-does-your-private-computing-setup-look-like/38230)

<div class="topic-metadata">

**Author:** [@helgee](https://discourse.julialang.org/u/helgee)\
**Replies:** 51\
**Last updated:** [May 3, 2020, 3:42am UTC](https://discourse.julialang.org/t/what-does-your-private-computing-setup-look-like/38230 "2020-05-03T03:42:03Z")

</div>

Hi folks, due to the current suboptimal state of the universe I am spending a lot of time in front of my computer(s) at home and looking for ways to streamline my setup. Since I am also struggling with severe analysis p…

---

## [Light to dark in grid](https://discourse.julialang.org/t/light-to-dark-in-grid/38642)

<div class="topic-metadata">

**Author:** [@Varghese](https://discourse.julialang.org/u/Varghese)\
**Replies:** 0\
**Last updated:** [May 3, 2020, 2:10am UTC](https://discourse.julialang.org/t/light-to-dark-in-grid/38642 "2020-05-03T02:10:50Z")

</div>

How do I show increasing gradient in hline and vline in gr. For example, here is some code pl = plot( xlim = (0,5),ylim = (0,5), legend = false ) vlcolor = palette(\[:lightgreen, :green\],5) hlcolor = palette(\[:lightgray…

---

## [When is it necessary to explicitly build a package?](https://discourse.julialang.org/t/when-is-it-necessary-to-explicitly-build-a-package/38627)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 11:49pm UTC](https://discourse.julialang.org/t/when-is-it-necessary-to-explicitly-build-a-package/38627 "2020-05-02T23:49:45Z")

</div>

The subject says it - usually Pkg.add(“X”) and using X is enough. When/why would we want to call Pkg.build?

---

## [How to convert an array to a CuArray efficiently](https://discourse.julialang.org/t/how-to-convert-an-array-to-a-cuarray-efficiently/38612)

<div class="topic-metadata">

**Author:** [@Dustin\_Hess](https://discourse.julialang.org/u/Dustin_Hess)\
**Replies:** 3\
**Last updated:** [May 2, 2020, 11:26pm UTC](https://discourse.julialang.org/t/how-to-convert-an-array-to-a-cuarray-efficiently/38612 "2020-05-02T23:26:40Z")

</div>

Please forgive me as I am taking my first step in using GPU’s in Julia. My use case is I want to do some processioning of electron microscope image stacks from a TEM. So I have everything setup and I have some micrograph…

---

## [Zygote error. "Only reference types can be differentiated with \`Params\`."](https://discourse.julialang.org/t/zygote-error-only-reference-types-can-be-differentiated-with-params/38224)

<div class="topic-metadata">

**Author:** [@Emmanuel-R8](https://discourse.julialang.org/u/Emmanuel-R8)\
**Replies:** 8\
**Last updated:** [May 2, 2020, 11:01pm UTC](https://discourse.julialang.org/t/zygote-error-only-reference-types-can-be-differentiated-with-params/38224 "2020-05-02T23:01:47Z")

</div>

I have been updating the Lotka-Volterra example in the model zoo. The call to train! fails with an error in Zygote src/compiler/interface.jl line 129 with the error in the title. The reason for the error is a mystery to…

---

## [PackageCompiler best practice?](https://discourse.julialang.org/t/packagecompiler-best-practice/38571)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 10:52pm UTC](https://discourse.julialang.org/t/packagecompiler-best-practice/38571 "2020-05-02T22:52:41Z")

</div>

How are you all using PackageCompiler? Without it I’m looking at “time to first plot” like this: julia\> using DataFrames, StatsPlots julia\> df = DataFrame(a = 1:10, b = 10 .\* rand(10), c = 10 .\* rand(10)); julia\> @time…

---

## [How to get emacs binding in Juno/REPL](https://discourse.julialang.org/t/how-to-get-emacs-binding-in-juno-repl/38628)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 0\
**Last updated:** [May 2, 2020, 10:37pm UTC](https://discourse.julialang.org/t/how-to-get-emacs-binding-in-juno-repl/38628 "2020-05-02T22:37:35Z")

</div>

Is anyone using Juno with atomic-emacs? The editor areas have a reasonable set of bindings, but the REPL does not have the same set, and most keys do not work.

---

## [Assigning to an array that is on the GPU](https://discourse.julialang.org/t/assigning-to-an-array-that-is-on-the-gpu/38498)

<div class="topic-metadata">

**Author:** [@jaynick](https://discourse.julialang.org/u/jaynick)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 10:30pm UTC](https://discourse.julialang.org/t/assigning-to-an-array-that-is-on-the-gpu/38498 "2020-05-02T22:30:42Z")

</div>

Suppose an array is on the gpu. In assigning new values to it, should we put the right hand side of the assignment on the gpu first before doing the assignment. I.e., A = cu(rand(5,1)) B = zeros(5,1) is this ok …

---

## [Juno autocompletion doesn't work](https://discourse.julialang.org/t/juno-autocompletion-doesnt-work/38619)

<div class="topic-metadata">

**Author:** [@scimas](https://discourse.julialang.org/u/scimas)\
**Replies:** 8\
**Last updated:** [May 2, 2020, 7:34pm UTC](https://discourse.julialang.org/t/juno-autocompletion-doesnt-work/38619 "2020-05-02T19:34:32Z")

</div>

I decided to give Juno a try and installed Atom and Juno, following the installation instructions on docs.junolab. Both are completely fresh installs, haven’t used either of them before on this PC. I opened an existing …

---

## [Optimize 0-1 loss in MIP](https://discourse.julialang.org/t/optimize-0-1-loss-in-mip/33027)

<div class="topic-metadata">

**Author:** [@Maximilian](https://discourse.julialang.org/u/Maximilian)\
**Replies:** 5\
**Last updated:** [May 2, 2020, 7:18pm UTC](https://discourse.julialang.org/t/optimize-0-1-loss-in-mip/33027 "2020-05-02T19:18:18Z")

</div>

I am currently trying to solve the following optimization problem Where N is the number of observations on \\mathbf{x} predictors, and y \\in \\{-1, 1\\} is a binary vector of length N, \\lambda has to be integer, C\_0, C\_…

---

## [Extract coordinates from a specific contour](https://discourse.julialang.org/t/extract-coordinates-from-a-specific-contour/38393)

<div class="topic-metadata">

**Author:** [@Cristian\_Suciava](https://discourse.julialang.org/u/Cristian_Suciava)\
**Replies:** 6\
**Last updated:** [May 2, 2020, 6:38pm UTC](https://discourse.julialang.org/t/extract-coordinates-from-a-specific-contour/38393 "2020-05-02T18:38:30Z")

</div>

I am new with Julia. Is there a library, a way, to extract cartesian coordinates from a drawing? At the end I need an array with point from a drawing.

---

## [Calling Exit from the Package REPL](https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 4\
**Last updated:** [May 2, 2020, 6:29pm UTC](https://discourse.julialang.org/t/calling-exit-from-the-package-repl/38580 "2020-05-02T18:29:48Z")

</div>

I regularly make the following error in the REPL package environment. \] exit() ... ERROR: Could not determine command Thoughts on adding exit as a valid command in the package environment?

---

## [GitHub create gist](https://discourse.julialang.org/t/github-create-gist/38616)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 1\
**Last updated:** [May 2, 2020, 4:22pm UTC](https://discourse.julialang.org/t/github-create-gist/38616 "2020-05-02T16:22:42Z")

</div>

Not sure where the error is which is the reason why I ask here and not at GitHub.jl I want to create a gist with: using GitHub gist\_json = """ { "description": "Hello World Examples", "public":…

---

## [Find a subtext between two positions in a larger text, after assigning variables to the first and last points](https://discourse.julialang.org/t/find-a-subtext-between-two-positions-in-a-larger-text-after-assigning-variables-to-the-first-and-last-points/38614)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 2\
**Last updated:** [May 2, 2020, 4:16pm UTC](https://discourse.julialang.org/t/find-a-subtext-between-two-positions-in-a-larger-text-after-assigning-variables-to-the-first-and-last-points/38614 "2020-05-02T16:16:19Z")

</div>

In continuation to this question (link), I am trying to find the subtext between two points in a larger text (target). When I write: target\[2735:2738\] I get the correct answer “1.32” However, when I instead assign t…

---

## [Deployment at scale](https://discourse.julialang.org/t/deployment-at-scale/38536)

<div class="topic-metadata">

**Author:** [@Emmanuel-R8](https://discourse.julialang.org/u/Emmanuel-R8)\
**Replies:** 8\
**Last updated:** [May 2, 2020, 4:02pm UTC](https://discourse.julialang.org/t/deployment-at-scale/38536 "2020-05-02T16:02:56Z")

</div>

Earlier this week I made a presentation of Julia for data science and ML. One question came up to which I could only give a non-committal answer. Paraphrasing, once our notebooks work fine, how do we deploy at scale on v…

---

## [How fast is pkg.julialang.org updated?](https://discourse.julialang.org/t/how-fast-is-pkg-julialang-org-updated/35688)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 6\
**Last updated:** [May 2, 2020, 3:40pm UTC](https://discourse.julialang.org/t/how-fast-is-pkg-julialang-org-updated/35688 "2020-05-02T15:40:16Z")

</div>

Hi guys i really like the service offered, i was wondering what exactly triggers a package list update on pkg.julialang.org Since i made a small new package DefaultArrays, added it to the registry but after some days i…

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

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