# Latest

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

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

**Page:** 1683

---

## [\`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…

---

## [Query newest entry with Query.jl](https://discourse.julialang.org/t/query-newest-entry-with-query-jl/43385)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 4\
**Last updated:** [July 22, 2020, 1:14pm UTC](https://discourse.julialang.org/t/query-newest-entry-with-query-jl/43385 "2020-07-22T13:14:43Z")

</div>

I have a table with multiple entries. For each entry I have the timestamp it was fetched and the timestamp it represents, e.g. forecasts for a specific timestamp computed at different times. I would like to query the n…

---

## [Discussion session and social meeting](https://discourse.julialang.org/t/discussion-session-and-social-meeting/43161)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [July 22, 2020, 3:39pm UTC](https://discourse.julialang.org/t/discussion-session-and-social-meeting/43161 "2020-07-22T15:39:25Z")

</div>

I have attended some online workshops where there are very good breakout sessions afterwards. the idea is to schedule a one hour meeting with a moderator. People say hello and discuss the workshop or conference topics. …

---

## [Match a type or an instance of it](https://discourse.julialang.org/t/match-a-type-or-an-instance-of-it/43500)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 2\
**Last updated:** [July 22, 2020, 3:24pm UTC](https://discourse.julialang.org/t/match-a-type-or-an-instance-of-it/43500 "2020-07-22T15:24:06Z")

</div>

I want to write a function which can dispatch on the type as well as on an instance of it. I tried the following: struct mytype end f(Union{Type{mytype},mytype}) = 42 f(mytype) f(mytype()) Is there a better way of doi…

---

## [Variational Inference for Multinomial output](https://discourse.julialang.org/t/variational-inference-for-multinomial-output/43498)

<div class="topic-metadata">

**Author:** [@Farlein](https://discourse.julialang.org/u/Farlein)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 2:58pm UTC](https://discourse.julialang.org/t/variational-inference-for-multinomial-output/43498 "2020-07-22T14:58:08Z")

</div>

Hi there, I want to use Variational Inference in Turing for Multinomial output. Here are the simulated data. There are 400 2-dimension observations in 4 groups. The purpose is to identify which group each observation be…

---

## [KKT condition solves the bilevel optimization problem](https://discourse.julialang.org/t/kkt-condition-solves-the-bilevel-optimization-problem/43289)

<div class="topic-metadata">

**Author:** [@dty](https://discourse.julialang.org/u/dty)\
**Replies:** 25\
**Last updated:** [July 22, 2020, 2:36pm UTC](https://discourse.julialang.org/t/kkt-condition-solves-the-bilevel-optimization-problem/43289 "2020-07-22T14:36:38Z")

</div>

Is there a package for solving bilevel optimization problems with KKT conditions? Specifically, the inequality constrained KKT conditions are linearized by the large M method. Finally, the two-layer problem is turned int…

---

## [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 =…

---

## [Iterate over macros](https://discourse.julialang.org/t/iterate-over-macros/43493)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 2:06pm UTC](https://discourse.julialang.org/t/iterate-over-macros/43493 "2020-07-22T14:06:20Z")

</div>

I’m using the Parameters package that uses a macro to define parameters. I wonder if there is any way to iterate by changing the struct information. An example: using Parameters @with\_kw struct params path:…

---

## [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…

---

## [Regex numeric range generator](https://discourse.julialang.org/t/regex-numeric-range-generator/43472)

<div class="topic-metadata">

**Author:** [@zhaoquanzheng](https://discourse.julialang.org/u/zhaoquanzheng)\
**Replies:** 3\
**Last updated:** [July 22, 2020, 11:50am UTC](https://discourse.julialang.org/t/regex-numeric-range-generator/43472 "2020-07-22T11:50:28Z")

</div>

Hi everyone, I use Glob.jl to load multiple files, and I had a problem when I needed to distinguish filename by numeric range (files were saved with datetime in filename). The problem can be solved by using a regex nume…

---

## [List challenge](https://discourse.julialang.org/t/list-challenge/43447)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 6\
**Last updated:** [July 22, 2020, 11:41am UTC](https://discourse.julialang.org/t/list-challenge/43447 "2020-07-22T11:41:05Z")

</div>

I have a list: my\_list=collect(1:n)', and a repeatability vector: repeat\_list = \[n1, n1, n2, n1, n2, n2\]. I would like to create a new list with repeated n1 times, 2 repeated n1 times, 3 repeated n2 times, etc. The len…

---

## [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…

---

## [Unknown warntype from Expr()](https://discourse.julialang.org/t/unknown-warntype-from-expr/43431)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 5\
**Last updated:** [July 22, 2020, 9:53am UTC](https://discourse.julialang.org/t/unknown-warntype-from-expr/43431 "2020-07-22T09:53:11Z")

</div>

the following function: function symident(n::Int) rows = Vector{Expr}(undef, n) temp = zeros(Int, n) for i in Base.OneTo(n) temp\[i\] = 1 rows\[i\] = Expr(:row, temp...) temp\[i\] = 0 e…

---

## [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…

---

## [UTC Confgerence times - thankyou](https://discourse.julialang.org/t/utc-confgerence-times-thankyou/43477)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 8:41am UTC](https://discourse.julialang.org/t/utc-confgerence-times-thankyou/43477 "2020-07-22T08:41:09Z")

</div>

I see that the JuliaCon workshops are announced in UTC time. Thankyou - that makes a lot of sense. I am biased of course as I can see the Greenwich Observatory from my window!

---

## [MLJFlux.jl v0.1.2: Interface to Flux.jl for MLJ.jl](https://discourse.julialang.org/t/mljflux-jl-v0-1-2-interface-to-flux-jl-for-mlj-jl/43476)

<div class="topic-metadata">

**Author:** [@ayush-1506](https://discourse.julialang.org/u/ayush-1506)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 7:28am UTC](https://discourse.julialang.org/t/mljflux-jl-v0-1-2-interface-to-flux-jl-for-mlj-jl/43476 "2020-07-22T07:28:49Z")

</div>

We (@ayush-1506 @ablaom) are releasing the first version of MLJFlux.jl: An interface to the Flux deep learning framework for MLJ.jl. MLJFlux provides four main models: NeuralNetworkRegressor MultitargetNeuralNetworkReg…

---

## [Plots build & precompilation error on Linux aarch64](https://discourse.julialang.org/t/plots-build-precompilation-error-on-linux-aarch64/43334)

<div class="topic-metadata">

**Author:** [@ozmaden](https://discourse.julialang.org/u/ozmaden)\
**Replies:** 0\
**Last updated:** [July 19, 2020, 1:49pm UTC](https://discourse.julialang.org/t/plots-build-precompilation-error-on-linux-aarch64/43334 "2020-07-19T13:49:13Z")

</div>

I was trying to use the Plots.jl package on an Nvidia Jetson running Linux aarch64. Unfortunately I am not able to go past building and precompiling the package. During the build I get the following error: (@v1.4) pkg\> …

---

## [GKS problem, using Plots](https://discourse.julialang.org/t/gks-problem-using-plots/43464)

<div class="topic-metadata">

**Author:** [@cruddy](https://discourse.julialang.org/u/cruddy)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 6:21am UTC](https://discourse.julialang.org/t/gks-problem-using-plots/43464 "2020-07-22T06:21:22Z")

</div>

Hi, I don’t have enough experience with Julia, but I was trying to make a plot and I got an error: using Plots gr() plot(x,y,linetype=:scatter, leg=false) And I get: GKS: GDP primitive not supported for X11 I’ve tr…

---

## [GraphRecipes versus GraphPlot: why such a big performance disparity?](https://discourse.julialang.org/t/graphrecipes-versus-graphplot-why-such-a-big-performance-disparity/43474)

<div class="topic-metadata">

**Author:** [@izzorts](https://discourse.julialang.org/u/izzorts)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 5:38am UTC](https://discourse.julialang.org/t/graphrecipes-versus-graphplot-why-such-a-big-performance-disparity/43474 "2020-07-22T05:38:52Z")

</div>

So, I was trying to plot some graphs and GraphPlot happened to be insufficient (I needed smaller labels than what seems to be the inferior size limit). Then I went trying to use GraphRecipes, because it seemed to have bo…

---

## [VegaLite not formatting correctly](https://discourse.julialang.org/t/vegalite-not-formatting-correctly/43470)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 0\
**Last updated:** [July 22, 2020, 3:07am UTC](https://discourse.julialang.org/t/vegalite-not-formatting-correctly/43470 "2020-07-22T03:07:40Z")

</div>

I have plotted this graph using VegaLite, but the bars are bleeding over and obscuring everything. My code: answer |\> @vlplot(mark = {type= :bar}, x = {field = :Overall\_mean, scale = {domain = \[76,85\]}, axis = {title =…

---

## [JuMP print sub-expressions](https://discourse.julialang.org/t/jump-print-sub-expressions/43021)

<div class="topic-metadata">

**Author:** [@fnbillimoria](https://discourse.julialang.org/u/fnbillimoria)\
**Replies:** 3\
**Last updated:** [July 22, 2020, 1:48am UTC](https://discourse.julialang.org/t/jump-print-sub-expressions/43021 "2020-07-22T01:48:24Z")

</div>

Hello, I have created an optimisation problem in JuMP with a set constraints that is created from affine and non-linear expressions. When i print() the model, the constraints show up as below. Is there any way to prin…

---

## [PowerModels.jl data format](https://discourse.julialang.org/t/powermodels-jl-data-format/43460)

<div class="topic-metadata">

**Author:** [@fnbillimoria](https://discourse.julialang.org/u/fnbillimoria)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 1:18am UTC](https://discourse.julialang.org/t/powermodels-jl-data-format/43460 "2020-07-22T01:18:11Z")

</div>

Hello, I wanted to query the branch data format for PowerModels.jl. I note that there are two fields in particular which are not mentioned in the matpower format, but do seem to be in some of the test cases. Particula…

---

## [Multiple dispatch by String alias](https://discourse.julialang.org/t/multiple-dispatch-by-string-alias/43400)

<div class="topic-metadata">

**Author:** [@Boo](https://discourse.julialang.org/u/Boo)\
**Replies:** 9\
**Last updated:** [July 21, 2020, 8:01pm UTC](https://discourse.julialang.org/t/multiple-dispatch-by-string-alias/43400 "2020-07-21T20:01:07Z")

</div>

Hi there, Is it possible to make alias for String type some how which inherits all the logic from String and then make multiple dispatch by this custom type? For example: alias MyString = String # Pseudocode f(str…

---

## [How to add tests for an interactive package](https://discourse.julialang.org/t/how-to-add-tests-for-an-interactive-package/43349)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 6\
**Last updated:** [July 21, 2020, 6:59pm UTC](https://discourse.julialang.org/t/how-to-add-tests-for-an-interactive-package/43349 "2020-07-21T18:59:29Z")

</div>

Hi all I’ve been working on a small package, FloatingTableView.jl, which adds easy support for using TableView.jl from the terminal. I often find “grid”-based IDEs limiting because you can’t rearrange windows within yo…

---

## [Spaces in query.jl](https://discourse.julialang.org/t/spaces-in-query-jl/8527)

<div class="topic-metadata">

**Author:** [@RandomString123](https://discourse.julialang.org/u/RandomString123)\
**Replies:** 35\
**Last updated:** [July 21, 2020, 6:57pm UTC](https://discourse.julialang.org/t/spaces-in-query-jl/8527 "2020-07-21T18:57:50Z")

</div>

Using DataFrames and CSV it is possible to create a table that has spaces in the column names. When this is done is there a way to reference these columns using query.jl? Or do I need to rename the columns to remove sp…

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

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