# Latest

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

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

**Page:** 1162

---

## [Need Help in embeding julia in c/c++](https://discourse.julialang.org/t/need-help-in-embeding-julia-in-c-c/33690)

<div class="topic-metadata">

**Author:** [@Fringe](https://discourse.julialang.org/u/Fringe)\
**Replies:** 16\
**Last updated:** [January 4, 2022, 8:01pm UTC](https://discourse.julialang.org/t/need-help-in-embeding-julia-in-c-c/33690 "2022-01-04T20:01:39Z")

</div>

greeting, i would really appreciate if some one let me know why my code in not working: currently i am on gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) and my julia version is 1.3.1 i was trying to embed the julia…

---

## [\[ANN\] Justly.jl: a package for composing music in just intonation](https://discourse.julialang.org/t/ann-justly-jl-a-package-for-composing-music-in-just-intonation/67706)

<div class="topic-metadata">

**Author:** [@bramtayl](https://discourse.julialang.org/u/bramtayl)\
**Replies:** 3\
**Last updated:** [January 4, 2022, 6:28pm UTC](https://discourse.julialang.org/t/ann-justly-jl-a-package-for-composing-music-in-just-intonation/67706 "2022-01-04T18:28:11Z")

</div>

Hi all, I just published Justly, a package for composing music in just intonation. I’ve written a tutorial in the README. To be able publish it, I’ve written the docs for QML, cross-compiled PulseAudio and its unholy num…

---

## [Can Julia's macros recurse?](https://discourse.julialang.org/t/can-julias-macros-recurse/74024)

<div class="topic-metadata">

**Author:** [@danielsoutar](https://discourse.julialang.org/u/danielsoutar)\
**Replies:** 2\
**Last updated:** [January 4, 2022, 12:52pm UTC](https://discourse.julialang.org/t/can-julias-macros-recurse/74024 "2022-01-04T12:52:06Z")

</div>

Hi there, stoked to be finally be using Julia. I had a question regarding how powerful Julia’s macros can be. I already asked on Stack Overflow, but figured worth pinging here as well. Basically, I was wondering if it w…

---

## [Chebfun equivalent for differentiation matrices in Julia?](https://discourse.julialang.org/t/chebfun-equivalent-for-differentiation-matrices-in-julia/74042)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 4\
**Last updated:** [January 4, 2022, 6:04pm UTC](https://discourse.julialang.org/t/chebfun-equivalent-for-differentiation-matrices-in-julia/74042 "2022-01-04T18:04:12Z")

</div>

Is there yet a differentiation matrices calculating tool in some Julia package ? Something similar to https://github.com/chebfun/chebfun/blob/master/diffmat.m I have tried searching in JuliaApproximation community but c…

---

## [ERROR: LoadError: InexactError: Int64(Int64, 7.5)](https://discourse.julialang.org/t/error-loaderror-inexacterror-int64-int64-7-5/74046)

<div class="topic-metadata">

**Author:** [@ConDor](https://discourse.julialang.org/u/ConDor)\
**Replies:** 3\
**Last updated:** [January 4, 2022, 5:48pm UTC](https://discourse.julialang.org/t/error-loaderror-inexacterror-int64-int64-7-5/74046 "2022-01-04T17:48:14Z")

</div>

I am practising Julia on techgig.com; there’s a ques name Area of a Triangle in that I am getting an error ERROR: LoadError: InexactError: Int64(Int64, 7.5) Stacktrace: \[1\] Type at ./float.jl:700 \[inlined\] \[2\] convert…

---

## [Why @doc does not work inside a function?](https://discourse.julialang.org/t/why-doc-does-not-work-inside-a-function/17358)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 6\
**Last updated:** [January 4, 2022, 5:39pm UTC](https://discourse.julialang.org/t/why-doc-does-not-work-inside-a-function/17358 "2022-01-04T17:39:11Z")

</div>

using Markdown function doc(fun) @show(html(@doc(fun))) end @doc(sin) sin(x) Compute sine of x, where x is in radians. sin(A::AbstractMatrix) ... julia\> doc(sin) html(#= REPL\[2\]:2 =# @doc(fun)) = "\<p\>No …

---

## [Simplify an Expr](https://discourse.julialang.org/t/simplify-an-expr/73960)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 3\
**Last updated:** [January 4, 2022, 5:05pm UTC](https://discourse.julialang.org/t/simplify-an-expr/73960 "2022-01-04T17:05:11Z")

</div>

In the context of code generation, I want to write a code simplification routine. Input and output are of type Expr. A\[i\] and b\[i\] can take as sparsity pattern :null, :plusone, :minusone, :other Example: expr = :(A\[1…

---

## [\[ANN\] PrettyPrint.jl: handy and extensible pretty print, also simple](https://discourse.julialang.org/t/ann-prettyprint-jl-handy-and-extensible-pretty-print-also-simple/23591)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 15\
**Last updated:** [January 4, 2022, 4:24pm UTC](https://discourse.julialang.org/t/ann-prettyprint-jl-handy-and-extensible-pretty-print-also-simple/23591 "2022-01-04T16:24:17Z")

</div>

I’m now developing a parser generator library and I’ve found debugging extremely disturbing for the lack of nested datatypes’ pretty print, which motivates me to create a pretty print library. using PrettyPrint struc…

---

## [Creating a grouped dataframe out of multiple csv files](https://discourse.julialang.org/t/creating-a-grouped-dataframe-out-of-multiple-csv-files/74035)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 5\
**Last updated:** [January 4, 2022, 3:57pm UTC](https://discourse.julialang.org/t/creating-a-grouped-dataframe-out-of-multiple-csv-files/74035 "2022-01-04T15:57:49Z")

</div>

Hi there! I have multiple csv files with the same column formatting and naming and I need to create a new grouped dataframe with all the files’ content, but each group of the dataframe consists of the data of each separ…

---

## [Makie: text rotation in data coordinates](https://discourse.julialang.org/t/makie-text-rotation-in-data-coordinates/74031)

<div class="topic-metadata">

**Author:** [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Replies:** 2\
**Last updated:** [January 4, 2022, 3:24pm UTC](https://discourse.julialang.org/t/makie-text-rotation-in-data-coordinates/74031 "2022-01-04T15:24:25Z")

</div>

Hi, I’m trying to plot text “along a curve”. I’ve managed to put it in the correct place (using data space coordinates) but the orientation is wrong since data space angle is not the same as screen space angle. Is the…

---

## [Setting up Julia on Spark on AWS EMR](https://discourse.julialang.org/t/setting-up-julia-on-spark-on-aws-emr/63781)

<div class="topic-metadata">

**Author:** [@Sumit\_Malbari](https://discourse.julialang.org/u/Sumit_Malbari)\
**Replies:** 24\
**Last updated:** [January 4, 2022, 3:13pm UTC](https://discourse.julialang.org/t/setting-up-julia-on-spark-on-aws-emr/63781 "2022-01-04T15:13:50Z")

</div>

Hi folks, I want to use Julia on Spark on AWS EMR as this is one of the requirement at my workplace. I tried to follow the steps from Julia & Spark but I was not able to succeed. If anyone has implemented it on AWS EM…

---

## [BoundsError when inverting a model with Turing](https://discourse.julialang.org/t/boundserror-when-inverting-a-model-with-turing/74019)

<div class="topic-metadata">

**Author:** [@spinystellate](https://discourse.julialang.org/u/spinystellate)\
**Replies:** 1\
**Last updated:** [January 4, 2022, 3:03pm UTC](https://discourse.julialang.org/t/boundserror-when-inverting-a-model-with-turing/74019 "2022-01-04T15:03:58Z")

</div>

I am trying to infer the parameters (a11, a12, …, c21, c22) of the following model: @model function invert(u, y, pE, pC, options) # Specify priors h = \[Normal(pE.H\[i\], pC.H\[i\]) for i in eachindex(pE.H)\] …

---

## [LP Warm Starts - using Gurobi with JuMP](https://discourse.julialang.org/t/lp-warm-starts-using-gurobi-with-jump/73840)

<div class="topic-metadata">

**Author:** [@bjr221](https://discourse.julialang.org/u/bjr221)\
**Replies:** 6\
**Last updated:** [January 3, 2022, 11:48pm UTC](https://discourse.julialang.org/t/lp-warm-starts-using-gurobi-with-jump/73840 "2022-01-03T23:48:32Z")

</div>

Is there any way to warm start (choose initial vertex for dual simplex algorithm) for a linear program that you’ve created? I have tried using the “PStart” attribute for LPs to no avail, and the “.start” attribute is for…

---

## [Does BinaryBuilder have an option to build only for the current platform?](https://discourse.julialang.org/t/does-binarybuilder-have-an-option-to-build-only-for-the-current-platform/74033)

<div class="topic-metadata">

**Author:** [@melonedo](https://discourse.julialang.org/u/melonedo)\
**Replies:** 1\
**Last updated:** [January 4, 2022, 2:34pm UTC](https://discourse.julialang.org/t/does-binarybuilder-have-an-option-to-build-only-for-the-current-platform/74033 "2022-01-04T14:34:34Z")

</div>

BinaryBuilder has a very nice cross-platform toolchain, but if I want to use it to build locally for execution, i.e. ship source code and a build script because this is more flexible, in which case building for platforms…

---

## [Does Books.jl work on Julia version 1.7?](https://discourse.julialang.org/t/does-books-jl-work-on-julia-version-1-7/73878)

<div class="topic-metadata">

**Author:** [@Boadzie](https://discourse.julialang.org/u/Boadzie)\
**Replies:** 4\
**Last updated:** [January 4, 2022, 2:30pm UTC](https://discourse.julialang.org/t/does-books-jl-work-on-julia-version-1-7/73878 "2022-01-04T14:30:24Z")

</div>

does Books.jl work with Julia v.1.7 because I I’m getting an error with the font using Juliav1.7?

---

## [New dispatch for isless() does not work](https://discourse.julialang.org/t/new-dispatch-for-isless-does-not-work/74025)

<div class="topic-metadata">

**Author:** [@jafar.isbarov](https://discourse.julialang.org/u/jafar.isbarov)\
**Replies:** 2\
**Last updated:** [January 4, 2022, 11:23am UTC](https://discourse.julialang.org/t/new-dispatch-for-isless-does-not-work/74025 "2022-01-04T11:23:31Z")

</div>

I need to be able to compare instances of a struct named Hijri, so I have defined a new method for the isless() function as follows: function isless(a::Hijri, b::Hijri) tuple\_a = datetuple(a) tuple\_b = datetuple(b) …

---

## [No method matching get\_connection\_type when connecting components](https://discourse.julialang.org/t/no-method-matching-get-connection-type-when-connecting-components/73990)

<div class="topic-metadata">

**Author:** [@jenrei](https://discourse.julialang.org/u/jenrei)\
**Replies:** 1\
**Last updated:** [January 4, 2022, 10:12am UTC](https://discourse.julialang.org/t/no-method-matching-get-connection-type-when-connecting-components/73990 "2022-01-04T10:12:31Z")

</div>

Hello, I’m trying to get a feeling for MTK by converting the electric circuit example for acasual component based modeling to thermal components. Unfortunately I get this error when I’m using connect: ht\_eqs = \[ co…

---

## [Could this kernel go faster?](https://discourse.julialang.org/t/could-this-kernel-go-faster/73986)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 3\
**Last updated:** [January 4, 2022, 9:50am UTC](https://discourse.julialang.org/t/could-this-kernel-go-faster/73986 "2022-01-04T09:50:46Z")

</div>

Hi, I have the follwing problem : using Statistics, BenchmarkTools, ProfileView function compute\_exp\_moments!(mu,D,e,slack,data) data .= D'e # most expensive line according to profileview. slack .= exp.(.-dat…

---

## [Text display or indicator in Makie.jl](https://discourse.julialang.org/t/text-display-or-indicator-in-makie-jl/73957)

<div class="topic-metadata">

**Author:** [@itchy00](https://discourse.julialang.org/u/itchy00)\
**Replies:** 8\
**Last updated:** [January 4, 2022, 8:42am UTC](https://discourse.julialang.org/t/text-display-or-indicator-in-makie-jl/73957 "2022-01-04T08:42:00Z")

</div>

Hi Just wondering if I am missing a very basic element here… but is there a way to have a nice and simple text display on a Makie.jl scene? I’m trying to use Makie to build a very simple user GUI with some buttons to s…

---

## [Help with Revise](https://discourse.julialang.org/t/help-with-revise/73777)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 10\
**Last updated:** [January 4, 2022, 7:45am UTC](https://discourse.julialang.org/t/help-with-revise/73777 "2022-01-04T07:45:28Z")

</div>

Revise is not working for me. I have a package in development called CaRs here: The source code is the usual “Hello World” test: Which works fine, before making changes: And yet the output of greet() is the …

---

## [Question about MLJ’s model](https://discourse.julialang.org/t/question-about-mlj-s-model/73891)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 8\
**Last updated:** [January 4, 2022, 6:02am UTC](https://discourse.julialang.org/t/question-about-mlj-s-model/73891 "2022-01-04T06:02:04Z")

</div>

Why do I only have 14 models in my MJL. But there are 55 models on the MJL website?

---

## [Custom keyword arguments with metaprogramming](https://discourse.julialang.org/t/custom-keyword-arguments-with-metaprogramming/74009)

<div class="topic-metadata">

**Author:** [@MarcBerliner](https://discourse.julialang.org/u/MarcBerliner)\
**Replies:** 1\
**Last updated:** [January 4, 2022, 4:29am UTC](https://discourse.julialang.org/t/custom-keyword-arguments-with-metaprogramming/74009 "2022-01-04T04:29:37Z")

</div>

I am trying to recreate the function fun1 using metaprogramming, and fun2 is my attempt but I’m running into errors. How can I do this (or is there a better way to get this done)? # Arbitrary struct struct ABC A …

---

## [Can one capture what a command prints on the REPL in a variable of type String?](https://discourse.julialang.org/t/can-one-capture-what-a-command-prints-on-the-repl-in-a-variable-of-type-string/73999)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 3\
**Last updated:** [January 4, 2022, 3:36am UTC](https://discourse.julialang.org/t/can-one-capture-what-a-command-prints-on-the-repl-in-a-variable-of-type-string/73999 "2022-01-04T03:36:10Z")

</div>

I want to display on a list of the packages I am using or importing. I know this command Pkg.status() wll print the list on the screen, but with other items I am not interested in. So I would like to capture what is pr…

---

## [Delaunay Triangularization](https://discourse.julialang.org/t/delaunay-triangularization/36172)

<div class="topic-metadata">

**Author:** [@Donald\_Lacombe](https://discourse.julialang.org/u/Donald_Lacombe)\
**Replies:** 20\
**Last updated:** [January 4, 2022, 1:55am UTC](https://discourse.julialang.org/t/delaunay-triangularization/36172 "2022-01-04T01:55:26Z")

</div>

Hello! I’d like to be able to obtain the following output from MATLAB but in Julia. Here is a toy example in MATLAB: \>\> x = rand(5,1) x = 0.8147 0.9058 0.1270 0.9134 0.6324 \>\> y = rand(5,1) y = …

---

## [Static Vectors with Named Fields?](https://discourse.julialang.org/t/static-vectors-with-named-fields/74005)

<div class="topic-metadata">

**Author:** [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Replies:** 4\
**Last updated:** [January 4, 2022, 1:04am UTC](https://discourse.julialang.org/t/static-vectors-with-named-fields/74005 "2022-01-04T01:04:04Z")

</div>

Say for example that I would like to represent a three dimensional point and I would like it to be easy to look up the values with the names x, y, z. I could use a named tuple like, t = (x=0.0, y=0.0, z=0.0) This all …

---

## [DefaultDict{String, DataType}(SomeType)](https://discourse.julialang.org/t/defaultdict-string-datatype-sometype/73967)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [January 3, 2022, 11:11pm UTC](https://discourse.julialang.org/t/defaultdict-string-datatype-sometype/73967 "2022-01-03T23:11:37Z")

</div>

using DataStructures dd = DefaultDict{String, DataType}(Int32) dd\["i"\] = Int32 Now, that’s OK: julia\> dd\["i"\] Int32 And here I’d expect exactly the same value, just as default - however I get an error. Why? julia\> d…

---

## [MLP - DimensionMisMatch Error Just Before Training](https://discourse.julialang.org/t/mlp-dimensionmismatch-error-just-before-training/74007)

<div class="topic-metadata">

**Author:** [@sherlock\_holmes](https://discourse.julialang.org/u/sherlock_holmes)\
**Replies:** 2\
**Last updated:** [January 3, 2022, 10:57pm UTC](https://discourse.julialang.org/t/mlp-dimensionmismatch-error-just-before-training/74007 "2022-01-03T22:57:21Z")

</div>

Hi, I’m trying to train a MLP model to predict number of real roots of polynomials. x\_train and y\_train include array of arrays such as \[\[-204, 20, 13, 1, 0\]\] which are coefficients of polynomials. x\_test and y\_test incl…

---

## [What's julia's solution to tapply or accumarray?](https://discourse.julialang.org/t/whats-julias-solution-to-tapply-or-accumarray/70055)

<div class="topic-metadata">

**Author:** [@leon](https://discourse.julialang.org/u/leon)\
**Replies:** 15\
**Last updated:** [January 3, 2022, 10:36pm UTC](https://discourse.julialang.org/t/whats-julias-solution-to-tapply-or-accumarray/70055 "2022-01-03T22:36:41Z")

</div>

I have one-column Index as the below: A = \[1, 2, 2, 3, 3, 3\]; I have a matrix B as the below: B = \[1 2 3; 2 3 4; 3 4 5; 4 5 6; 5 6 7; 6 7 8\]; I would want to calculate the average of the duplicate rows based on Index…

---

## [Concise unpacking syntax](https://discourse.julialang.org/t/concise-unpacking-syntax/74004)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [January 3, 2022, 10:16pm UTC](https://discourse.julialang.org/t/concise-unpacking-syntax/74004 "2022-01-03T22:16:00Z")

</div>

I have a namedtuple data = (;a=1,b=2,c=3) and a function f that takes kwargs ;a,b. I want to call f with f(;a,b) f(;a,b) = a+b data = (;a=1,b=2,c=3) (;a,b) = data f(;a,b) But there I have to specify a and b twice: once…

---

## [Alternative to codecov](https://discourse.julialang.org/t/alternative-to-codecov/73856)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [January 3, 2022, 10:15pm UTC](https://discourse.julialang.org/t/alternative-to-codecov/73856 "2022-01-03T22:15:03Z")

</div>

Since a few days code coverage is not working for me. I get the error: Error uhttps://codecov.ioploading to : Error: There was an error fetching the storage URL during POST: 429 - Too Many Requests Is this a server pro…

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

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