# Latest

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

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

**Page:** 1520

---

## [Has sortrows disappeard?](https://discourse.julialang.org/t/has-sortrows-disappeard/53543)

<div class="topic-metadata">

**Author:** [@mposs](https://discourse.julialang.org/u/mposs)\
**Replies:** 2\
**Last updated:** [January 18, 2021, 3:08pm UTC](https://discourse.julialang.org/t/has-sortrows-disappeard/53543 "2021-01-18T15:08:29Z")

</div>

Hi Apparently there use to be a function sortrows() in julia, that sorted the rows of matrix A lexicographically. It seems that this function has disappeared, am I wrong? Michael.

---

## [How to change x label when boxplotting different dataframes](https://discourse.julialang.org/t/how-to-change-x-label-when-boxplotting-different-dataframes/53542)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 0\
**Last updated:** [January 18, 2021, 2:02pm UTC](https://discourse.julialang.org/t/how-to-change-x-label-when-boxplotting-different-dataframes/53542 "2021-01-18T14:02:30Z")

</div>

Hello, using Julia 1.5 on Atom, I want to make a boxplot comparing values from different dataframes. It is almost how I want it, but the x label needs to be fixed and I can’t figure it out. I used the series plot recipe,…

---

## [Github Actions workflow for Reverse Dependency Integration Testing](https://discourse.julialang.org/t/github-actions-workflow-for-reverse-dependency-integration-testing/53536)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 1\
**Last updated:** [January 18, 2021, 2:02pm UTC](https://discourse.julialang.org/t/github-actions-workflow-for-reverse-dependency-integration-testing/53536 "2021-01-18T14:02:18Z")

</div>

I wanted to share some code that were are using for running reverse dependency tests via GitHubActions. The idea of reverse dependency testing is to run an integration test using this branch of the project with the down…

---

## [Associating arguments with partial functions to simplify nesting](https://discourse.julialang.org/t/associating-arguments-with-partial-functions-to-simplify-nesting/53457)

<div class="topic-metadata">

**Author:** [@billykalfus](https://discourse.julialang.org/u/billykalfus)\
**Replies:** 12\
**Last updated:** [January 18, 2021, 1:28pm UTC](https://discourse.julialang.org/t/associating-arguments-with-partial-functions-to-simplify-nesting/53457 "2021-01-18T13:28:51Z")

</div>

Suppose I have some nested functions, and the lowest level function has some arguments which are caches and/or outputs whose values need to be written to and retained between calls: function a!(arg1, arg2) b!(arg1, …

---

## [Why is this CUDA.jl code slow?](https://discourse.julialang.org/t/why-is-this-cuda-jl-code-slow/53538)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 0\
**Last updated:** [January 18, 2021, 12:47pm UTC](https://discourse.julialang.org/t/why-is-this-cuda-jl-code-slow/53538 "2021-01-18T12:47:27Z")

</div>

Background I am trying to implement a custom layer for a Flux.jl network (please point out if this exists already somewhere). What the layer should do is apply a 1x1x1 convolution to the concatenation of a bunch of tenso…

---

## [How to convert String type columns of a dataframe to a DateTime type and a Float64 type, using either plain DataFrames.jl or Query.jl](https://discourse.julialang.org/t/how-to-convert-string-type-columns-of-a-dataframe-to-a-datetime-type-and-a-float64-type-using-either-plain-dataframes-jl-or-query-jl/53505)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 4\
**Last updated:** [January 18, 2021, 10:55am UTC](https://discourse.julialang.org/t/how-to-convert-string-type-columns-of-a-dataframe-to-a-datetime-type-and-a-float64-type-using-either-plain-dataframes-jl-or-query-jl/53505 "2021-01-18T10:55:04Z")

</div>

I have the following dataframe, with original columns of String type: using DataFrames df\_0 = DataFrame(Inicio = \["10 Jan 2021 15:00 ", "10 Jan 2021 16:43 ", "10 Jan 2021 17:13 "\], Q1 = \["0.50", "0.00", "0.50"\]) I a…

---

## [\[ANN\] BootlegCassette.jl](https://discourse.julialang.org/t/ann-bootlegcassette-jl/52909)

<div class="topic-metadata">

**Author:** [@Mason](https://discourse.julialang.org/u/Mason)\
**Replies:** 18\
**Last updated:** [January 18, 2021, 10:51am UTC](https://discourse.julialang.org/t/ann-bootlegcassette-jl/52909 "2021-01-18T10:51:08Z")

</div>

Cassette.jl is an incredibly cool package that allows one to dictate how functions are dispatched in special execution contexts, but it’s currently not fully functional on Julia 1.6 / master, so I made a minimal package…

---

## [Creating a macro to broadcast in parallel](https://discourse.julialang.org/t/creating-a-macro-to-broadcast-in-parallel/53508)

<div class="topic-metadata">

**Author:** [@s-kap](https://discourse.julialang.org/u/s-kap)\
**Replies:** 5\
**Last updated:** [January 18, 2021, 9:57am UTC](https://discourse.julialang.org/t/creating-a-macro-to-broadcast-in-parallel/53508 "2021-01-18T09:57:06Z")

</div>

Hey all, I’m trying to create a macro to broadcast in parallel. I have a large dataframe and I frequently create new columns based on values from old columns. Let’s take string concatenation for example. The non paral…

---

## [Pluto Markdown Not Working](https://discourse.julialang.org/t/pluto-markdown-not-working/53433)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 8\
**Last updated:** [January 18, 2021, 7:12am UTC](https://discourse.julialang.org/t/pluto-markdown-not-working/53433 "2021-01-18T07:12:54Z")

</div>

Hello, I am trying to emulate the markdown in the Pluto NB shown here. Here’s what it looks like in my notebook. begin Cmin=10.0; Cmax=200.; Cslider = @bind SlideValC Slider(Cmin:0.1:Cmax, default=51); md" $(Cmin) …

---

## [Dealing with leap years](https://discourse.julialang.org/t/dealing-with-leap-years/53516)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 1\
**Last updated:** [January 18, 2021, 5:54am UTC](https://discourse.julialang.org/t/dealing-with-leap-years/53516 "2021-01-18T05:54:06Z")

</div>

I am trying to find a package that deals with leap years. For example a function that returns the number of days that fall on 29 February for some period. (There are some complications: years such that mod(year,100)==0 a…

---

## [How to delete a nonlinear constraint from a JuMP optimization problem](https://discourse.julialang.org/t/how-to-delete-a-nonlinear-constraint-from-a-jump-optimization-problem/53469)

<div class="topic-metadata">

**Author:** [@boranzhao](https://discourse.julialang.org/u/boranzhao)\
**Replies:** 2\
**Last updated:** [January 18, 2021, 4:22am UTC](https://discourse.julialang.org/t/how-to-delete-a-nonlinear-constraint-from-a-jump-optimization-problem/53469 "2021-01-18T04:22:49Z")

</div>

Hello, I know that delete can be used to delete constraints and variables from a JuMP problem. However, based on my testing, it does not work for nonlinear constraint added through @NLconstraint. I was wondering whether…

---

## [Inference on field types?](https://discourse.julialang.org/t/inference-on-field-types/53448)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 10\
**Last updated:** [January 18, 2021, 12:47am UTC](https://discourse.julialang.org/t/inference-on-field-types/53448 "2021-01-18T00:47:38Z")

</div>

I often have to “categorise” a vector of struct elements by a specific field and I wanted to get rid of some duplicated logic and generalise the categorisation, however I hit the penalty of runtime (dynamic) lookup of th…

---

## [Indexing with Composite Type](https://discourse.julialang.org/t/indexing-with-composite-type/53511)

<div class="topic-metadata">

**Author:** [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Replies:** 3\
**Last updated:** [January 18, 2021, 3:43am UTC](https://discourse.julialang.org/t/indexing-with-composite-type/53511 "2021-01-18T03:43:43Z")

</div>

Is there a way to easily create a Composite type where all indexing would apply to a ‘Matrix’ field in the type? For ex: Mutable Struct Foo hist::Int matrix::AbstractMatrix end bar = Foo(10,rand(10,10)) I wou…

---

## [Ccall: how to wrap call-by-reference C functions?](https://discourse.julialang.org/t/ccall-how-to-wrap-call-by-reference-c-functions/53510)

<div class="topic-metadata">

**Author:** [@simon-anders](https://discourse.julialang.org/u/simon-anders)\
**Replies:** 3\
**Last updated:** [January 18, 2021, 1:39am UTC](https://discourse.julialang.org/t/ccall-how-to-wrap-call-by-reference-c-functions/53510 "2021-01-18T01:39:36Z")

</div>

Hi I’m trying to wrap a C library, and I can’t figure out how references are handled in ccall. Here is my study case: I have a simple C file, called jlptrtest.c, consisting of just this: void put\_7( int \*i ) { \*i =…

---

## [Tensor operations with AbstractArrays](https://discourse.julialang.org/t/tensor-operations-with-abstractarrays/53504)

<div class="topic-metadata">

**Author:** [@schneiderfelipe](https://discourse.julialang.org/u/schneiderfelipe)\
**Replies:** 3\
**Last updated:** [January 18, 2021, 1:09am UTC](https://discourse.julialang.org/t/tensor-operations-with-abstractarrays/53504 "2021-01-18T01:09:51Z")

</div>

I’m looking after a way of doing the following operation. Here is an attempt using TensorCast.jl: using TensorCast # dummy data to simplify the example n = 7 D = rand(n, n) G = rand(7, 7, 7, 7) @cast P\[μ, ν\] := D\[λ, σ…

---

## [Any Go/Baduk/Weiqi players?](https://discourse.julialang.org/t/any-go-baduk-weiqi-players/53364)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 14\
**Last updated:** [January 18, 2021, 12:11am UTC](https://discourse.julialang.org/t/any-go-baduk-weiqi-players/53364 "2021-01-18T00:11:36Z")

</div>

Are there any go/baduk/weiqi players in the Julia community?

---

## [Runtime Generated Functions](https://discourse.julialang.org/t/runtime-generated-functions/53507)

<div class="topic-metadata">

**Author:** [@Ruchitha\_Kumar](https://discourse.julialang.org/u/Ruchitha_Kumar)\
**Replies:** 10\
**Last updated:** [January 18, 2021, 12:08am UTC](https://discourse.julialang.org/t/runtime-generated-functions/53507 "2021-01-18T00:08:46Z")

</div>

Blockquote nlsys\_func = generate\_function(ns, \[x,y,z\], \[a,b,c\], expression=Val{false})\[2\] Generates : (::RuntimeGeneratedFunctions.RuntimeGeneratedFunction{(Symbol(“##MTIIPVar#873”), Symbol(“##MTKArg#870”), Symbol(“##…

---

## [Resolving package identifier ... as a directory](https://discourse.julialang.org/t/resolving-package-identifier-as-a-directory/53499)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 5\
**Last updated:** [January 17, 2021, 10:57pm UTC](https://discourse.julialang.org/t/resolving-package-identifier-as-a-directory/53499 "2021-01-17T22:57:25Z")

</div>

Hello, i am creating a new package A. After i ativate it, i add another package B i already wrote and published. I get this: (A) pkg\> add B \[ Info: Resolving package identifier \`B\` as a directory at \`C:\\Users\\congedom\\…

---

## [Colored markdown section with Pluto.jl](https://discourse.julialang.org/t/colored-markdown-section-with-pluto-jl/53497)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [January 17, 2021, 8:13pm UTC](https://discourse.julialang.org/t/colored-markdown-section-with-pluto-jl/53497 "2021-01-17T20:13:47Z")

</div>

In Pluto.jl, is there any way to create colored Markdown “tips” or “notes”, as shown in Julia’s Markdown Documentation? I think I’ve seen some Pluto notebooks on course channels on YouTube (mainly MIT courses), but I’m n…

---

## [Is it possible to use Julia's LanguageServer.jl with JupyterLab's jupyterlab-lsp extension?](https://discourse.julialang.org/t/is-it-possible-to-use-julias-languageserver-jl-with-jupyterlabs-jupyterlab-lsp-extension/40945)

<div class="topic-metadata">

**Author:** [@Paveloom](https://discourse.julialang.org/u/Paveloom)\
**Replies:** 3\
**Last updated:** [January 17, 2021, 7:46pm UTC](https://discourse.julialang.org/t/is-it-possible-to-use-julias-languageserver-jl-with-jupyterlabs-jupyterlab-lsp-extension/40945 "2021-01-17T19:46:50Z")

</div>

I found out @davidanthoff mentioning it here. Was it done? Had someone tried doing this and succeeded? If so, how?

---

## [Tiny Plots in jupyter-notebook](https://discourse.julialang.org/t/tiny-plots-in-jupyter-notebook/53344)

<div class="topic-metadata">

**Author:** [@Mikel\_Antonana](https://discourse.julialang.org/u/Mikel_Antonana)\
**Replies:** 12\
**Last updated:** [January 17, 2021, 7:34pm UTC](https://discourse.julialang.org/t/tiny-plots-in-jupyter-notebook/53344 "2021-01-17T19:34:08Z")

</div>

I have installed the 1.5.3 version of Julia and now all jupyter-notebook plots are tiny. Can anybody help me?

---

## [Turing: help with multinomial likelihood](https://discourse.julialang.org/t/turing-help-with-multinomial-likelihood/53484)

<div class="topic-metadata">

**Author:** [@drbenvincent](https://discourse.julialang.org/u/drbenvincent)\
**Replies:** 3\
**Last updated:** [January 17, 2021, 7:05pm UTC](https://discourse.julialang.org/t/turing-help-with-multinomial-likelihood/53484 "2021-01-17T19:05:01Z")

</div>

Hi I’m running through a number of JAGS models, converting them to Turing. Mostly this is an easy process, but I’ve got stuck on what is probably something very simple. Original JAGS model: model{ alpha ~ dbeta(1,1) …

---

## [Chemfiles -- contains](https://discourse.julialang.org/t/chemfiles-contains/53493)

<div class="topic-metadata">

**Author:** [@aquarelleX332](https://discourse.julialang.org/u/aquarelleX332)\
**Replies:** 2\
**Last updated:** [January 17, 2021, 6:34pm UTC](https://discourse.julialang.org/t/chemfiles-contains/53493 "2021-01-17T18:34:36Z")

</div>

Hello dear all, I tried to install Chemfiles.jl. During the test: julia\> Pkg.test("Chemfiles") I obtained an error: Test Summary: | Pass Total Generics | 1 1 Test Summary: | Pass Total Atom |…

---

## [Using Makie on Ubuntu 18.04](https://discourse.julialang.org/t/using-makie-on-ubuntu-18-04/53164)

<div class="topic-metadata">

**Author:** [@Josiah\_Slack](https://discourse.julialang.org/u/Josiah_Slack)\
**Replies:** 3\
**Last updated:** [January 17, 2021, 5:02pm UTC](https://discourse.julialang.org/t/using-makie-on-ubuntu-18-04/53164 "2021-01-17T17:02:26Z")

</div>

I’m running with 1.5.1 and am not having much luck following the “quick start” instructions in the README for Makie.jl (“add Makie; test Makie”). I started off with a clean environment and added Makie.jl to it. After the…

---

## [Fortran ccall variables persisting in the background](https://discourse.julialang.org/t/fortran-ccall-variables-persisting-in-the-background/53454)

<div class="topic-metadata">

**Author:** [@lamorton](https://discourse.julialang.org/u/lamorton)\
**Replies:** 3\
**Last updated:** [January 17, 2021, 2:01pm UTC](https://discourse.julialang.org/t/fortran-ccall-variables-persisting-in-the-background/53454 "2021-01-17T14:01:03Z")

</div>

I wrote the following Fortran wrapper around an existing Fortran library that defines some ‘global’ parameters that persist between subroutines. General idea is that libfida defines a subroutine read\_tables that loads s…

---

## [Uniformly set floating point sig digits in a code](https://discourse.julialang.org/t/uniformly-set-floating-point-sig-digits-in-a-code/53482)

<div class="topic-metadata">

**Author:** [@R\_Surya\_Narayan](https://discourse.julialang.org/u/R_Surya_Narayan)\
**Replies:** 3\
**Last updated:** [January 17, 2021, 1:51pm UTC](https://discourse.julialang.org/t/uniformly-set-floating-point-sig-digits-in-a-code/53482 "2021-01-17T13:51:07Z")

</div>

Hello guys, I am using Julia for scientific computation and would like to know if there is a way to set the significant digits of all floating point variables in the code to a specified value. I know I can use round(var,…

---

## [Comparing tuples with and without parentheses](https://discourse.julialang.org/t/comparing-tuples-with-and-without-parentheses/53440)

<div class="topic-metadata">

**Author:** [@schneiderfelipe](https://discourse.julialang.org/u/schneiderfelipe)\
**Replies:** 4\
**Last updated:** [January 17, 2021, 1:41pm UTC](https://discourse.julialang.org/t/comparing-tuples-with-and-without-parentheses/53440 "2021-01-17T13:41:56Z")

</div>

I’m a bit confused about the rules concerning tuples, parentheses, commas, and how Julia interprets them. Could someone explain to me the following behavior? julia\> (1.0, 2.0) == (1.0, 2.0) # Nice true julia\> (1.0, 2…

---

## [RNN (LSTM) Training issues with loss function](https://discourse.julialang.org/t/rnn-lstm-training-issues-with-loss-function/53483)

<div class="topic-metadata">

**Author:** [@jparcinski](https://discourse.julialang.org/u/jparcinski)\
**Replies:** 0\
**Last updated:** [January 17, 2021, 12:11pm UTC](https://discourse.julialang.org/t/rnn-lstm-training-issues-with-loss-function/53483 "2021-01-17T12:11:36Z")

</div>

Hi, I have problem with understanding 1 issue, maybe someone will help me. I’m trying to build LSTM or simple RNN for predicting price values. To start understand how to do it in Julia I used the example from here: A Ba…

---

## [Running a function is extremely slow](https://discourse.julialang.org/t/running-a-function-is-extremely-slow/53475)

<div class="topic-metadata">

**Author:** [@cheng\_chen](https://discourse.julialang.org/u/cheng_chen)\
**Replies:** 1\
**Last updated:** [January 17, 2021, 9:32am UTC](https://discourse.julialang.org/t/running-a-function-is-extremely-slow/53475 "2021-01-17T09:32:59Z")

</div>

I wrote a Julia function and on the first line inside the function, I had a print statement. After I call the function in REPL, It takes a long time for it to get to the first line of the function. Does anyone know what …

---

## [Fama–MacBeth Regression in Julia](https://discourse.julialang.org/t/fama-macbeth-regression-in-julia/53460)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 2\
**Last updated:** [January 17, 2021, 8:23am UTC](https://discourse.julialang.org/t/fama-macbeth-regression-in-julia/53460 "2021-01-17T08:23:38Z")

</div>

I know how to do Fama-MacBeth Regression in R but could not figure out how to do it in Julia. Need some help here.

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

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