# Latest

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

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

**Page:** 1541

---

## [Trying to use Dash DataTable](https://discourse.julialang.org/t/trying-to-use-dash-datatable/51519)

<div class="topic-metadata">

**Author:** [@PaulBog69](https://discourse.julialang.org/u/PaulBog69)\
**Replies:** 6\
**Last updated:** [December 22, 2020, 4:51pm UTC](https://discourse.julialang.org/t/trying-to-use-dash-datatable/51519 "2020-12-22T16:51:25Z")

</div>

Hi there, I’m simply trying to display a table on my dashboard, thank to DashTable. But yet it doesn’t seem really adapted to Julia. Could someone enlight me on this point? df = DataFrame(A =\["Sunny", "Snowy"\], B…

---

## [Can we make Gui using Qt creator in Julia?](https://discourse.julialang.org/t/can-we-make-gui-using-qt-creator-in-julia/51787)

<div class="topic-metadata">

**Author:** [@vedasulo](https://discourse.julialang.org/u/vedasulo)\
**Replies:** 10\
**Last updated:** [December 22, 2020, 4:41pm UTC](https://discourse.julialang.org/t/can-we-make-gui-using-qt-creator-in-julia/51787 "2020-12-22T16:41:51Z")

</div>

Hello guys, how can i make GUI desktop applications in Julia through the use of Qt creator? I’ve seen making gui in julia but not using Qt creator. I am thinking if there is way to build. Thank you

---

## [Reccomended workflow to "patch" another person's package?](https://discourse.julialang.org/t/reccomended-workflow-to-patch-another-persons-package/52220)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [December 22, 2020, 4:08pm UTC](https://discourse.julialang.org/t/reccomended-workflow-to-patch-another-persons-package/52220 "2020-12-22T16:08:19Z")

</div>

Hello, which is the “suggested” workflow to “patch” someone else package and (hopefully) automatically issue a pull request on the package ? I see that PkgDev no longer ship with a “submit(package)” function…

---

## [TypeError: non-boolean (Term{Bool}) used in boolean context when trying to modelingtoolkitize a DifferentialEquations.jl SDEProblem](https://discourse.julialang.org/t/typeerror-non-boolean-term-bool-used-in-boolean-context-when-trying-to-modelingtoolkitize-a-differentialequations-jl-sdeproblem/51130)

<div class="topic-metadata">

**Author:** [@claudio20497](https://discourse.julialang.org/u/claudio20497)\
**Replies:** 3\
**Last updated:** [December 22, 2020, 2:16pm UTC](https://discourse.julialang.org/t/typeerror-non-boolean-term-bool-used-in-boolean-context-when-trying-to-modelingtoolkitize-a-differentialequations-jl-sdeproblem/51130 "2020-12-22T14:16:37Z")

</div>

Hello, This issue is maybe related to this one although the solution could be totally different. If this is the wrong place to post it, please tell me and I’ll be happy to move it. So the goal would be to optimize a Di…

---

## [Reducing the number of commands when starting the REPL](https://discourse.julialang.org/t/reducing-the-number-of-commands-when-starting-the-repl/51870)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 6\
**Last updated:** [December 22, 2020, 1:10pm UTC](https://discourse.julialang.org/t/reducing-the-number-of-commands-when-starting-the-repl/51870 "2020-12-22T13:10:16Z")

</div>

When working on a package Foo, I often have to type commands like \] dev . \] activate . \] test using Foo F = Foo This, on a daily basis, means that I have to type a lot when switching between packages and when Julia occ…

---

## [Density Distributions](https://discourse.julialang.org/t/density-distributions/52224)

<div class="topic-metadata">

**Author:** [@lorrp1](https://discourse.julialang.org/u/lorrp1)\
**Replies:** 6\
**Last updated:** [December 22, 2020, 12:28pm UTC](https://discourse.julialang.org/t/density-distributions/52224 "2020-12-22T12:28:25Z")

</div>

Hello, im trying to get the array of the discrete probability distribution of a normal distribution: i have tried: d = Normal() #standard a = rand(d,1000) x = pdf.(d, a) #even with just pdf(d,a) plot(x) but its not wo…

---

## [Hashing tuples of tuples is seemingly very slow](https://discourse.julialang.org/t/hashing-tuples-of-tuples-is-seemingly-very-slow/52223)

<div class="topic-metadata">

**Author:** [@rdl](https://discourse.julialang.org/u/rdl)\
**Replies:** 6\
**Last updated:** [December 22, 2020, 11:15am UTC](https://discourse.julialang.org/t/hashing-tuples-of-tuples-is-seemingly-very-slow/52223 "2020-12-22T11:15:10Z")

</div>

I’ve been using Julia to complete advent of code this year. Today’s problem had a part which naturally lent itself to storing pairs of tuples of integers in a set. My program was running far more slowly that I expected t…

---

## ["The remote server returned an error: (404) Not Found."](https://discourse.julialang.org/t/the-remote-server-returned-an-error-404-not-found/52218)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 3\
**Last updated:** [December 22, 2020, 9:41am UTC](https://discourse.julialang.org/t/the-remote-server-returned-an-error-404-not-found/52218 "2020-12-22T09:41:51Z")

</div>

How to solve this alert that I receive when I perform the update? up Updating registry at \`C:\\Users\\hermesr\\.julia\\registries\\General\` Installed ArrayInterface ─ v2.14.9 Installed fzf\_jll ──────── v0.24.4+0 Downl…

---

## [Slicing for Zygote](https://discourse.julialang.org/t/slicing-for-zygote/52042)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 2\
**Last updated:** [December 22, 2020, 7:03am UTC](https://discourse.julialang.org/t/slicing-for-zygote/52042 "2020-12-22T07:03:18Z")

</div>

Hello, Do you remember this issue Understanding Flux and Zygote … I got stuck with slicing again. And since I do not know how to use Zygote properly I couldn’t make progress. The original function istft . And my object…

---

## [Speed of broadcast operations](https://discourse.julialang.org/t/speed-of-broadcast-operations/52113)

<div class="topic-metadata">

**Author:** [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Replies:** 4\
**Last updated:** [December 22, 2020, 5:36am UTC](https://discourse.julialang.org/t/speed-of-broadcast-operations/52113 "2020-12-22T05:36:02Z")

</div>

:bowing\_man: M, N = 10000, 10000 a = randn((M, N)); ssa = sum(a); sa=sum(a, dims=1); @btime a .- ssa .- sa; @btime a .- sa .- ssa; @btime a .- (sa .+ ssa); 287.707 ms …

---

## [Flux with early stop and epochs](https://discourse.julialang.org/t/flux-with-early-stop-and-epochs/52157)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 7\
**Last updated:** [December 22, 2020, 4:02am UTC](https://discourse.julialang.org/t/flux-with-early-stop-and-epochs/52157 "2020-12-22T04:02:22Z")

</div>

I’ve found that Flux provides early stop by using callbacks. Despite of the instruction, it is not compatible with @epochs in my case. For example, codes looks like the following keep run the epochs loop. valid\_check …

---

## [Growing memory with broadcast assignment](https://discourse.julialang.org/t/growing-memory-with-broadcast-assignment/52206)

<div class="topic-metadata">

**Author:** [@ancorso](https://discourse.julialang.org/u/ancorso)\
**Replies:** 6\
**Last updated:** [December 22, 2020, 1:37am UTC](https://discourse.julialang.org/t/growing-memory-with-broadcast-assignment/52206 "2020-12-22T01:37:12Z")

</div>

Here is a MWE of the problem: function foo!(v) i = rand(1:size(v, 4) - 3) v\[:,:,:,i:i+3\] .= 1. end v = Array{Float32}(undef, 105, 80, 4, 50000) for i=1:50000 foo!(v) end When I run the code, julia’s memory…

---

## [RGB values of a pixel](https://discourse.julialang.org/t/rgb-values-of-a-pixel/52168)

<div class="topic-metadata">

**Author:** [@Aitotelic](https://discourse.julialang.org/u/Aitotelic)\
**Replies:** 2\
**Last updated:** [December 22, 2020, 1:26am UTC](https://discourse.julialang.org/t/rgb-values-of-a-pixel/52168 "2020-12-22T01:26:18Z")

</div>

RGB(a, b, c) gives us a pixel. How do I input a pixel and extract the RGB components?

---

## [Quantikz.jl for drawing quantum circuit diagrams with Julia](https://discourse.julialang.org/t/quantikz-jl-for-drawing-quantum-circuit-diagrams-with-julia/52200)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 6\
**Last updated:** [December 22, 2020, 12:45am UTC](https://discourse.julialang.org/t/quantikz-jl-for-drawing-quantum-circuit-diagrams-with-julia/52200 "2020-12-22T00:45:34Z")

</div>

quantikz is a great latex package for drawing quantum circuits. I have just released a small Julia package Quantikz.jl which harnesses quantikz to programmatically create circuit diagrams. If pdflatex is installed on you…

---

## [\[blog post\] Implement your own TOP Performance quantum circuit emulator in ONE day!](https://discourse.julialang.org/t/blog-post-implement-your-own-top-performance-quantum-circuit-emulator-in-one-day/52205)

<div class="topic-metadata">

**Author:** [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Replies:** 0\
**Last updated:** [December 21, 2020, 11:44pm UTC](https://discourse.julialang.org/t/blog-post-implement-your-own-top-performance-quantum-circuit-emulator-in-one-day/52205 "2020-12-21T23:44:27Z")

</div>

You must have heard about quantum computing and quantum circuits in the news. But how hard is it to implement a (full amplitude) quantum circuit emulator and achieve the top performance in the open-source world? At least…

---

## [Confusing documentation on "Data-race freedom"](https://discourse.julialang.org/t/confusing-documentation-on-data-race-freedom/52197)

<div class="topic-metadata">

**Author:** [@Deduction42](https://discourse.julialang.org/u/Deduction42)\
**Replies:** 5\
**Last updated:** [December 21, 2020, 10:08pm UTC](https://discourse.julialang.org/t/confusing-documentation-on-data-race-freedom/52197 "2020-12-21T22:08:05Z")

</div>

So I’m brand new at multi-threading and I basically want to lock access to a global variable to all other threads while one task writes to it. I’m looking at the documentation Multi-Threading · The Julia Language and I c…

---

## [\[ANN\] SimpleTypePrint.jl: customize how types are displayed](https://discourse.julialang.org/t/ann-simpletypeprint-jl-customize-how-types-are-displayed/52115)

<div class="topic-metadata">

**Author:** [@MrVPlusOne](https://discourse.julialang.org/u/MrVPlusOne)\
**Replies:** 13\
**Last updated:** [December 21, 2020, 9:29pm UTC](https://discourse.julialang.org/t/ann-simpletypeprint-jl-customize-how-types-are-displayed/52115 "2020-12-21T21:29:56Z")

</div>

Julia’s type system is awesome, but sometimes the types we encountered are very large and can be just too hard to read. That’s why I made this simple package SimpleTypePrint.jl to let you customize how types are displaye…

---

## [Unpack an object by fieldnames into local scope?](https://discourse.julialang.org/t/unpack-an-object-by-fieldnames-into-local-scope/52196)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 3\
**Last updated:** [December 21, 2020, 8:03pm UTC](https://discourse.julialang.org/t/unpack-an-object-by-fieldnames-into-local-scope/52196 "2020-12-21T20:03:23Z")

</div>

Is there a macro or syntax that will unpack an object (such as a struct or a LabelledArray) into local variables by it’s field names? So given struct MyObj a::Int b::Int end m1 = MyObj(3,4) @splatbyfnames m1 …

---

## [Remove parameters from struct type](https://discourse.julialang.org/t/remove-parameters-from-struct-type/52187)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 7\
**Last updated:** [December 21, 2020, 7:28pm UTC](https://discourse.julialang.org/t/remove-parameters-from-struct-type/52187 "2020-12-21T19:28:47Z")

</div>

Hi, Here’s a MWE: abstract type FooBar end struct Foo{T} \<: FooBar a::T end struct Bar{T} \<: FooBar a::T end struct Baz x end struct Baz2 x end Baz2(b::Baz) = Baz2(b.x) toBaz2(fb::FooBar) = typeof(fb…

---

## [Surprising Type Error](https://discourse.julialang.org/t/surprising-type-error/51943)

<div class="topic-metadata">

**Author:** [@jsundram](https://discourse.julialang.org/u/jsundram)\
**Replies:** 2\
**Last updated:** [December 21, 2020, 5:03pm UTC](https://discourse.julialang.org/t/surprising-type-error/51943 "2020-12-21T17:03:54Z")

</div>

I ran into the following unexpected error using and array of CartesianIndex: julia\> c = CartesianIndex\[\] CartesianIndex\[\] julia\> push!(c, CartesianIndex(1, 2)) 1-element Array{CartesianIndex,1}: CartesianIndex(1, 2) …

---

## [Disable border around bar plot in Plots.jl](https://discourse.julialang.org/t/disable-border-around-bar-plot-in-plots-jl/47354)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 4\
**Last updated:** [December 21, 2020, 5:02pm UTC](https://discourse.julialang.org/t/disable-border-around-bar-plot-in-plots-jl/47354 "2020-12-21T17:02:53Z")

</div>

Is there a way to disable the black borders around bars in bar plots in Plots.jl? With many data points they become useless and make the colors useless: n = 300 bar( range(0, 1; length=n), rand(n))

---

## [Nested iterators](https://discourse.julialang.org/t/nested-iterators/52180)

<div class="topic-metadata">

**Author:** [@phendric](https://discourse.julialang.org/u/phendric)\
**Replies:** 7\
**Last updated:** [December 21, 2020, 4:24pm UTC](https://discourse.julialang.org/t/nested-iterators/52180 "2020-12-21T16:24:05Z")

</div>

I want to nest a couple of Iterators calls, but am not getting the result I expect. I want to iterate through the cartesian product of a repeated array, except I don’t know ahead of time how many times the array will be…

---

## [General registry for newbies](https://discourse.julialang.org/t/general-registry-for-newbies/52176)

<div class="topic-metadata">

**Author:** [@eridans](https://discourse.julialang.org/u/eridans)\
**Replies:** 4\
**Last updated:** [December 21, 2020, 3:42pm UTC](https://discourse.julialang.org/t/general-registry-for-newbies/52176 "2020-12-21T15:42:34Z")

</div>

I know this is utter newbie but can someone explain to me why Pkg.activate(mktempdir()) results in my general registry being cancelled and having to wait 10 mins for all the packages to be downloaded again? thanks and…

---

## [Splatting of an integer](https://discourse.julialang.org/t/splatting-of-an-integer/52160)

<div class="topic-metadata">

**Author:** [@mancellin](https://discourse.julialang.org/u/mancellin)\
**Replies:** 4\
**Last updated:** [December 21, 2020, 3:31pm UTC](https://discourse.julialang.org/t/splatting-of-an-integer/52160 "2020-12-21T15:31:35Z")

</div>

Hello everyone, I was trying to write some generic code in which users can provide indices either as Ints (in 1D) or as tuples of Ints (in 2D/3D). To interface with functions like getindex, my solution was to splat the …

---

## [Assembly prescribed Stress using JuAFEM](https://discourse.julialang.org/t/assembly-prescribed-stress-using-juafem/52178)

<div class="topic-metadata">

**Author:** [@FrootLoops](https://discourse.julialang.org/u/FrootLoops)\
**Replies:** 1\
**Last updated:** [December 21, 2020, 3:20pm UTC](https://discourse.julialang.org/t/assembly-prescribed-stress-using-juafem/52178 "2020-12-21T15:20:02Z")

</div>

Checking the example incompressible\_elasticity, it is solving the equation Ku = f based on the following assemble code: function doassemble(cellvalues\_u::CellVectorValues{dim}, cellvalues\_p::CellScalarValues{dim}, …

---

## [Unable to automatically install artifact](https://discourse.julialang.org/t/unable-to-automatically-install-artifact/51984)

<div class="topic-metadata">

**Author:** [@MatthijsCox](https://discourse.julialang.org/u/MatthijsCox)\
**Replies:** 5\
**Last updated:** [December 21, 2020, 2:35pm UTC](https://discourse.julialang.org/t/unable-to-automatically-install-artifact/51984 "2020-12-21T14:35:27Z")

</div>

I’m trying to setup an automatic julia artifact download for brainflow. However I am encountering a .tar unpacking error. Let me elaborate. Here is my script to generate the artifact in a folder with an Artifacts.toml f…

---

## [\<\< operator for arrays](https://discourse.julialang.org/t/operator-for-arrays/17089)

<div class="topic-metadata">

**Author:** [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)\
**Replies:** 29\
**Last updated:** [December 21, 2020, 1:15pm UTC](https://discourse.julialang.org/t/operator-for-arrays/17089 "2020-12-21T13:15:47Z")

</div>

Any chance to overload operator \<\< (or any other) to mean push! as a syntactic sugar? e.g. a = \[1,2,3\] a \<\< factorial(5) # a = \[1,2,3,120\] Seems to be clearer and simpler than push!(a, factorial(5))

---

## [ExtensibleUnions.jl - experiments in abstract multiple inheritance via extensible type unions](https://discourse.julialang.org/t/extensibleunions-jl-experiments-in-abstract-multiple-inheritance-via-extensible-type-unions/27920)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 2\
**Last updated:** [December 21, 2020, 11:44am UTC](https://discourse.julialang.org/t/extensibleunions-jl-experiments-in-abstract-multiple-inheritance-via-extensible-type-unions/27920 "2020-12-21T11:44:46Z")

</div>

Hi all - I wanted to share a small experimental package that I have started working on called ExtensibleUnions.jl. As discussed in these comments, “extensible type unions are largely equivalent to multiple inheritance”.…

---

## [Strange ‘abstract\_call’ messages before code running](https://discourse.julialang.org/t/strange-abstract-call-messages-before-code-running/52025)

<div class="topic-metadata">

**Author:** [@enjoyable](https://discourse.julialang.org/u/enjoyable)\
**Replies:** 18\
**Last updated:** [December 21, 2020, 9:19am UTC](https://discourse.julialang.org/t/strange-abstract-call-messages-before-code-running/52025 "2020-12-21T09:19:16Z")

</div>

Hi I have been encountering this problem for both Julia 1.5.3 and 1.5, under both Julia Pro and VS Code. Whenever I ran codes in Julia, there will always be some strange messages in the terminal, like inlineeval##kw at…

---

## [NestedStructInitialiser.jl](https://discourse.julialang.org/t/nestedstructinitialiser-jl/52159)

<div class="topic-metadata">

**Author:** [@jbrea](https://discourse.julialang.org/u/jbrea)\
**Replies:** 0\
**Last updated:** [December 21, 2020, 8:43am UTC](https://discourse.julialang.org/t/nestedstructinitialiser-jl/52159 "2020-12-21T08:43:18Z")

</div>

If this is useful for somebody else, I’ll register it. From the README: NestedStructInitialiser exports two functions: parameters helps to explore nested structures and initialiser creates efficient constructors for…

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

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