# Latest

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

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

**Page:** 1812

---

## [Need @inline for constructors?](https://discourse.julialang.org/t/need-inline-for-constructors/35442)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 7:21am UTC](https://discourse.julialang.org/t/need-inline-for-constructors/35442 "2020-03-03T07:21:04Z")

</div>

as I saw in codes of various packages, @inline is not seen for inner constructor. So, is it valid at all to annotate @inline for inner constructors? what about outer constructors? thanks.

---

## [Override printed representation of vectors](https://discourse.julialang.org/t/override-printed-representation-of-vectors/35407)

<div class="topic-metadata">

**Author:** [@ea42gh](https://discourse.julialang.org/u/ea42gh)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 4:53am UTC](https://discourse.julialang.org/t/override-printed-representation-of-vectors/35407 "2020-03-03T04:53:55Z")

</div>

Is there a way to override the print representation of a complex vector? u=\[1 2\]; println( "u=$u") u=\[1im 2\]; println( "u=$u") yields u=\[1 2\] u=Complex{Int64}\[0 + 1im 2 + 0im\] I want to get rid of the type specific…

---

## [Setting \`nthreads()\` using the .julia/config/startup.jl file](https://discourse.julialang.org/t/setting-nthreads-using-the-julia-config-startup-jl-file/35427)

<div class="topic-metadata">

**Author:** [@oliver](https://discourse.julialang.org/u/oliver)\
**Replies:** 22\
**Last updated:** [March 3, 2020, 4:33am UTC](https://discourse.julialang.org/t/setting-nthreads-using-the-julia-config-startup-jl-file/35427 "2020-03-03T04:33:18Z")

</div>

Why does setting ENV\[JULIA\_CPU\_THREADS\]=5 and ENV\[JULIA\_NUM\_THREADS\]=5 not affect nprocs() ? Here is what I get on startup: julia\> versioninfo() Julia Version 1.3.1 Commit 2d5741174c (2019-12-30 21:36 UTC) Platform Info…

---

## [How to solve warning while using custom package with Revise?](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743)

<div class="topic-metadata">

**Author:** [@Manu\_Francis](https://discourse.julialang.org/u/Manu_Francis)\
**Replies:** 11\
**Last updated:** [February 20, 2020, 2:23am UTC](https://discourse.julialang.org/t/how-to-solve-warning-while-using-custom-package-with-revise/34743 "2020-02-20T02:23:29Z")

</div>

Hi, When I try to use my custom package with Revise.jl, as follows, I am getting warning. using Revise using MyPkg The warning is as follows: ┌ Warning: C:\\Users\\zac\\.julia\\packages\\Plots\\qZHsp\\src\\Plots.jl\\ is not a…

---

## [Mean of integers overflows - bug or expected behaviour?](https://discourse.julialang.org/t/mean-of-integers-overflows-bug-or-expected-behaviour/34767)

<div class="topic-metadata">

**Author:** [@Mikhail\_Kagalenko](https://discourse.julialang.org/u/Mikhail_Kagalenko)\
**Replies:** 94\
**Last updated:** [March 3, 2020, 2:44am UTC](https://discourse.julialang.org/t/mean-of-integers-overflows-bug-or-expected-behaviour/34767 "2020-03-03T02:44:51Z")

</div>

The function mean(), when used on Int inputs, returns a float result. However, it may silently overflow on integer arithmetic. julia\> mean(\[1,1\]\*typemax(Int)) -1 Maintainer of Statistics.jl closed the issue, saying t…

---

## [Way to transform HTML into Text?](https://discourse.julialang.org/t/way-to-transform-html-into-text/35434)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 12:43am UTC](https://discourse.julialang.org/t/way-to-transform-html-into-text/35434 "2020-03-03T00:43:24Z")

</div>

It seems like Gumbo.jl does a good job of parsing HTML, but there doesn’t seem to be an easy way to extract the text from it (akin to beautiful soup in python). Has anyone encountered this problem? How did you turn a wh…

---

## [Eigs does not work](https://discourse.julialang.org/t/eigs-does-not-work/35421)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 11:49pm UTC](https://discourse.julialang.org/t/eigs-does-not-work/35421 "2020-03-02T23:49:33Z")

</div>

Trying to use eigs from Arpack gives me a lot of trouble, is there any alternative? https://github.com/JuliaLinearAlgebra/Arpack.jl/issues/96

---

## [Help with ChisqTest](https://discourse.julialang.org/t/help-with-chisqtest/35355)

<div class="topic-metadata">

**Author:** [@darrencl](https://discourse.julialang.org/u/darrencl)\
**Replies:** 6\
**Last updated:** [March 2, 2020, 11:21pm UTC](https://discourse.julialang.org/t/help-with-chisqtest/35355 "2020-03-02T23:21:43Z")

</div>

Hi, I want to test my variable is independent from target y with ChisqTest from HypothesisTests.jl, so I think I would need to use the contingency table instead of goodness of fit (like sklearn’s). First, I did one-hot…

---

## [Composing a constructor causes tons of allocations](https://discourse.julialang.org/t/composing-a-constructor-causes-tons-of-allocations/35405)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 8:14pm UTC](https://discourse.julialang.org/t/composing-a-constructor-causes-tons-of-allocations/35405 "2020-03-02T20:14:12Z")

</div>

I’m trying to build a pipeline of transformations and noticed this weird behavior when I plugged a Point2f0 constructor into the pipeline. I’ve removed the rest of the test pipeline and replaced it with the identity func…

---

## [Push! vs pushfirst! performance](https://discourse.julialang.org/t/push-vs-pushfirst-performance/35402)

<div class="topic-metadata">

**Author:** [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Replies:** 5\
**Last updated:** [March 2, 2020, 8:07pm UTC](https://discourse.julialang.org/t/push-vs-pushfirst-performance/35402 "2020-03-02T20:07:21Z")

</div>

I was surprised at this performance: julia\> function p(x, n) for i = 1:n push!(x, i) end x end p (generic function with 1 method) julia\> function pf(x, n) …

---

## [JuMP 0.20.1: Possible bug in CPLEX when using generic lazy callback](https://discourse.julialang.org/t/jump-0-20-1-possible-bug-in-cplex-when-using-generic-lazy-callback/35425)

<div class="topic-metadata">

**Author:** [@ryancorywright](https://discourse.julialang.org/u/ryancorywright)\
**Replies:** 1\
**Last updated:** [March 2, 2020, 7:29pm UTC](https://discourse.julialang.org/t/jump-0-20-1-possible-bug-in-cplex-when-using-generic-lazy-callback/35425 "2020-03-02T19:29:50Z")

</div>

Specs: JuMP version 0.20.1, MOI version 0.9.12, CPLEX version 12.10, CPLEX.jl version 0.6.3. When using JuMP and CPLEX to solve a problem via outer approximation (using a generic lazy callback), I’m getting the followin…

---

## [Julia often won't restart in Juno](https://discourse.julialang.org/t/julia-often-wont-restart-in-juno/35420)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 7:19pm UTC](https://discourse.julialang.org/t/julia-often-wont-restart-in-juno/35420 "2020-03-02T19:19:12Z")

</div>

If I start Atom, press Enter to start Julia, then do exit(), more often than not Julia will not restart - the REPL session is stuck at Press Enter to start a new session.. Ctrl-C results in message that I can’t interrupt…

---

## [Function zero() with type"Any"](https://discourse.julialang.org/t/function-zero-with-type-any/27007)

<div class="topic-metadata">

**Author:** [@Dota](https://discourse.julialang.org/u/Dota)\
**Replies:** 14\
**Last updated:** [March 2, 2020, 6:56pm UTC](https://discourse.julialang.org/t/function-zero-with-type-any/27007 "2020-03-02T18:56:46Z")

</div>

Hi! Nowadays I’m learning about Julia, mainly to solve non-linear optimization problem. Because of the low efficiency of dense matrix, I transfer some of the matrix into sparse matrix. When I’m trying to multiply two ma…

---

## [Tab completion for numeric codepoints](https://discourse.julialang.org/t/tab-completion-for-numeric-codepoints/35411)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 6\
**Last updated:** [March 2, 2020, 5:25pm UTC](https://discourse.julialang.org/t/tab-completion-for-numeric-codepoints/35411 "2020-03-02T17:25:56Z")

</div>

Hi, is there a way to get a Unicode character from its numeric code in the REPL (without resorting to copy and paste)? I was trying to input the ace of each card suit (spade, heart, club, diamond) based on the codepoint…

---

## [PowerModels in MAC OS](https://discourse.julialang.org/t/powermodels-in-mac-os/35384)

<div class="topic-metadata">

**Author:** [@faoh](https://discourse.julialang.org/u/faoh)\
**Replies:** 5\
**Last updated:** [March 2, 2020, 4:42pm UTC](https://discourse.julialang.org/t/powermodels-in-mac-os/35384 "2020-03-02T16:42:23Z")

</div>

When I try to use build\_model to see the optimization model, it shows ‘UndefVarError: build\_model not defined’. The code is pm = build\_model(“~/PowerModels.jl-master/test/data/matpower/case5\_tnep.m”, ACPPowerModel, Po…

---

## [\[Feature\] why not a \`functionswith\` method?](https://discourse.julialang.org/t/feature-why-not-a-functionswith-method/35409)

<div class="topic-metadata">

**Author:** [@Iagoba\_Apellaniz](https://discourse.julialang.org/u/Iagoba_Apellaniz)\
**Replies:** 6\
**Last updated:** [March 2, 2020, 4:11pm UTC](https://discourse.julialang.org/t/feature-why-not-a-functionswith-method/35409 "2020-03-02T16:11:12Z")

</div>

The idea is to print a simpler and shorter list than methodswith. Since we have methodswith and methods, and the function name of a method is obtained by accessing it name field, for me it seems that functionswith is mis…

---

## [Error on package registration: ERROR: Tag with a different commit already exists for the version mentioned in (Julia)Project.toml](https://discourse.julialang.org/t/error-on-package-registration-error-tag-with-a-different-commit-already-exists-for-the-version-mentioned-in-julia-project-toml/35242)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 2:31pm UTC](https://discourse.julialang.org/t/error-on-package-registration-error-tag-with-a-different-commit-already-exists-for-the-version-mentioned-in-julia-project-toml/35242 "2020-03-02T14:31:41Z")

</div>

I am trying to register my package GitHub - Paalon/Waveforms.jl at v0.1.0 to General, but I can’t understand the meaning of this registering error: ERROR: Tag with a different commit already exists for the version mentio…

---

## [Is there a Datalog library in Julia?](https://discourse.julialang.org/t/is-there-a-datalog-library-in-julia/11837)

<div class="topic-metadata">

**Author:** [@gabomgp](https://discourse.julialang.org/u/gabomgp)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 12:59pm UTC](https://discourse.julialang.org/t/is-there-a-datalog-library-in-julia/11837 "2020-03-02T12:59:42Z")

</div>

I’m thinking about using Datalog for a problem I have at hand. Is there a Datalog library implemented in Julia, a la pyDatalog?

---

## [@ode\_def macro leads to UndefRefError: access to undefined reference](https://discourse.julialang.org/t/ode-def-macro-leads-to-undefreferror-access-to-undefined-reference/35330)

<div class="topic-metadata">

**Author:** [@joergbuchwald](https://discourse.julialang.org/u/joergbuchwald)\
**Replies:** 7\
**Last updated:** [March 2, 2020, 12:55pm UTC](https://discourse.julialang.org/t/ode-def-macro-leads-to-undefreferror-access-to-undefined-reference/35330 "2020-03-02T12:55:39Z")

</div>

Hi, I tried to use the @ode\_def macro, but somehow got stuck in an UndefRefError: julia\> sir\_ode = @ode\_def SIRModel begin dS = -β\*S\*I dI = β\*S\*I-γ\*I dR = γ\*I end β γ ┌ Warni…

---

## [How to set labels for eached coloured bar in Plots.jl's bar()?](https://discourse.julialang.org/t/how-to-set-labels-for-eached-coloured-bar-in-plots-jls-bar/9312)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 11\
**Last updated:** [March 2, 2020, 11:00am UTC](https://discourse.julialang.org/t/how-to-set-labels-for-eached-coloured-bar-in-plots-jls-bar/9312 "2020-03-02T11:00:28Z")

</div>

bar( \["a","b","c"\], \[1,2,3\], fillcolor = categorical(\["a","b","c"\]).refs, labels = \["a","b","c"\] ) I can make the plot with the above code, but I can’t seem to work out how to make the labels follow the …

---

## [Error: type Array has no field data](https://discourse.julialang.org/t/error-type-array-has-no-field-data/35389)

<div class="topic-metadata">

**Author:** [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 10:59am UTC](https://discourse.julialang.org/t/error-type-array-has-no-field-data/35389 "2020-03-02T10:59:21Z")

</div>

Hi everyone. I was doing the course on Flux.jl by JuliaAcademy. When I run the following code, using Plots plot() contour!(0:0.01:1, 0:0.01:1, (x,y)-\>model(\[x,y\]).data\[1\], levels=\[0.5, 0.51\], color = cgrad(\[:blue, :bl…

---

## [Interest in co-developing a library for Positive Matrix Factorization (PMF)](https://discourse.julialang.org/t/interest-in-co-developing-a-library-for-positive-matrix-factorization-pmf/25189)

<div class="topic-metadata">

**Author:** [@dhhagan](https://discourse.julialang.org/u/dhhagan)\
**Replies:** 3\
**Last updated:** [March 2, 2020, 10:52am UTC](https://discourse.julialang.org/t/interest-in-co-developing-a-library-for-positive-matrix-factorization-pmf/25189 "2020-03-02T10:52:16Z")

</div>

Positive Matrix Factorization (PMF; Paatero, 1997) is a factorization method commonly used in the environmental sciences since unlike nonnegative matrix factorization (NMF), it utilizes known uncertainties to weight the …

---

## [Yay, I finally managed to define my custom kernel. But now I need it to be fast(er)](https://discourse.julialang.org/t/yay-i-finally-managed-to-define-my-custom-kernel-but-now-i-need-it-to-be-fast-er/34398)

<div class="topic-metadata">

**Author:** [@izzorts](https://discourse.julialang.org/u/izzorts)\
**Replies:** 6\
**Last updated:** [March 2, 2020, 10:39am UTC](https://discourse.julialang.org/t/yay-i-finally-managed-to-define-my-custom-kernel-but-now-i-need-it-to-be-fast-er/34398 "2020-03-02T10:39:41Z")

</div>

Hi! It’s been about a week that I started learning GPGPU in Julia. At first I used ArrayFire, but then I needed to do some more sophisticated computations on the GPU and started trying to define my own custom kernels via…

---

## [Specifying Gurobi or other linear solvers instead of NUMPS in Ipopt](https://discourse.julialang.org/t/specifying-gurobi-or-other-linear-solvers-instead-of-numps-in-ipopt/35394)

<div class="topic-metadata">

**Author:** [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)\
**Replies:** 1\
**Last updated:** [March 2, 2020, 10:19am UTC](https://discourse.julialang.org/t/specifying-gurobi-or-other-linear-solvers-instead-of-numps-in-ipopt/35394 "2020-03-02T10:19:31Z")

</div>

I am using Ipopt on JuMP to solve nonlinear programming. I use Ipopt and it uses numps by default. But it recommends me to use other nonlinear This is Ipopt version 3.12.10, running with linear solver mumps. NOTE: Other…

---

## [How to change u to a specific value once a value (not tstep) threshold is crossed?](https://discourse.julialang.org/t/how-to-change-u-to-a-specific-value-once-a-value-not-tstep-threshold-is-crossed/34569)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 15\
**Last updated:** [March 2, 2020, 9:31am UTC](https://discourse.julialang.org/t/how-to-change-u-to-a-specific-value-once-a-value-not-tstep-threshold-is-crossed/34569 "2020-03-02T09:31:13Z")

</div>

Hello again, Is there a way to change u (in my case bioS) in a differential equation to a specific value once a value threshold has been crossed? I am running a simulation of a food web and once a species in that food …

---

## [CUDAnative: would it be possible to specify interface arguments rather than kernel arguments?](https://discourse.julialang.org/t/cudanative-would-it-be-possible-to-specify-interface-arguments-rather-than-kernel-arguments/35282)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 2\
**Last updated:** [March 2, 2020, 9:24am UTC](https://discourse.julialang.org/t/cudanative-would-it-be-possible-to-specify-interface-arguments-rather-than-kernel-arguments/35282 "2020-03-02T09:24:16Z")

</div>

Issue Let’s consider the following simple CUDAnative example: julia\> using CuArrays, CUDAnative julia\> A = CuArrays.zeros(2,2) 2×2 CuArray{Float32,2}: 0.0 0.0 0.0 0.0 julia\> B = CuArrays.ones(2,2) 2×2 CuArray{Floa…

---

## [New VS Code extension pre-release](https://discourse.julialang.org/t/new-vs-code-extension-pre-release/35192)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 6\
**Last updated:** [March 2, 2020, 8:09am UTC](https://discourse.julialang.org/t/new-vs-code-extension-pre-release/35192 "2020-03-02T08:09:13Z")

</div>

We have a new way of distributing pre-release versions of the Julia VS Code extension. We now publish a second extension, called Julia Insider in the marketplace. This second extension will auto-update frequently with ne…

---

## [Flux v0.10.1 has no "tracked" array](https://discourse.julialang.org/t/flux-v0-10-1-has-no-tracked-array/35385)

<div class="topic-metadata">

**Author:** [@Eldho.Ashna](https://discourse.julialang.org/u/Eldho.Ashna)\
**Replies:** 1\
**Last updated:** [March 2, 2020, 6:13am UTC](https://discourse.julialang.org/t/flux-v0-10-1-has-no-tracked-array/35385 "2020-03-02T06:13:03Z")

</div>

Hi everyone. I was learning Flux using the JUliaAcademy. Below is the link: I’m facing the following problems while running this code: model.W and model.b are not tracked ones. Also, these weight and bias values are…

---

## [\[ANN\] DiBitVectors.jl](https://discourse.julialang.org/t/ann-dibitvectors-jl/35383)

<div class="topic-metadata">

**Author:** [@anon94023334](https://discourse.julialang.org/u/anon94023334)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 1:31am UTC](https://discourse.julialang.org/t/ann-dibitvectors-jl/35383 "2020-03-02T01:31:47Z")

</div>

Hi all, I’m pleased to announce that, with the help of @Daniel\_Berge and one other person whose name has been lost due to Slack’s aggressive message deletion, there’s a new package out there that will help you create ve…

---

## [Plot series data by Plots](https://discourse.julialang.org/t/plot-series-data-by-plots/35377)

<div class="topic-metadata">

**Author:** [@1634](https://discourse.julialang.org/u/1634)\
**Replies:** 6\
**Last updated:** [March 2, 2020, 12:12am UTC](https://discourse.julialang.org/t/plot-series-data-by-plots/35377 "2020-03-02T00:12:28Z")

</div>

Hi commuinty, Q1: Is there a way to use x, y and legend (as below) to plot data in series? #y matrix: row corresponding to each x value, column for each series (marked by legend) of data x=\[2 4 6 8 10 12\]#correspondin…

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

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