# Latest

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

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

**Page:** 1274

---

## [Normal Inverse Gaussian distribution in Turing](https://discourse.julialang.org/t/normal-inverse-gaussian-distribution-in-turing/67831)

<div class="topic-metadata">

**Author:** [@robertdj](https://discourse.julialang.org/u/robertdj)\
**Replies:** 0\
**Last updated:** [September 7, 2021, 8:00pm UTC](https://discourse.julialang.org/t/normal-inverse-gaussian-distribution-in-turing/67831 "2021-09-07T20:00:26Z")

</div>

I’m trying to use Turing to do inference for a Normal-Inverse-Gaussian (NIG) distribution, but I have two problems: I can only make the inference work for certain realizations. The parameter restriction feels clumsy. M…

---

## [Parametric surface plots with Makie](https://discourse.julialang.org/t/parametric-surface-plots-with-makie/67685)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 6\
**Last updated:** [September 7, 2021, 7:26pm UTC](https://discourse.julialang.org/t/parametric-surface-plots-with-makie/67685 "2021-09-07T19:26:11Z")

</div>

I am a new user of Makie. How can I make a parametric plot of a surface in 3-dimensions with Makie? For example, I am looking for something like this: ParametricPlot3D—Wolfram Language Documentation Is there a similar…

---

## [Huge jump in version numbers for coin-or binary dependencies](https://discourse.julialang.org/t/huge-jump-in-version-numbers-for-coin-or-binary-dependencies/67825)

<div class="topic-metadata">

**Author:** [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 6:58pm UTC](https://discourse.julialang.org/t/huge-jump-in-version-numbers-for-coin-or-binary-dependencies/67825 "2021-09-07T18:58:42Z")

</div>

After my most recent \] up, I saw \[38041ee0\] ↑ Cbc\_jll v2.10.3+5 ⇒ v200.1000.500+1 \[3830e938\] ↑ Cgl\_jll v0.60.2+6 ⇒ v0.6000.200+0 \[06985876\] ↑ Clp\_jll v1.17.6+7 ⇒ v100.1700.600+0 Did something go wrong in the buil…

---

## [DataFrame select, un-nesting a column containing tuples into three columns](https://discourse.julialang.org/t/dataframe-select-un-nesting-a-column-containing-tuples-into-three-columns/67726)

<div class="topic-metadata">

**Author:** [@marcello](https://discourse.julialang.org/u/marcello)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 6:02pm UTC](https://discourse.julialang.org/t/dataframe-select-un-nesting-a-column-containing-tuples-into-three-columns/67726 "2021-09-07T18:02:46Z")

</div>

Hello, I’ve been following the JuliaCon 2021 tutorial on DataFrames https://github.com/bkamins/JuliaCon2021-DataFrames-Tutorial I’m using Julia 1.6.2 on VSCodium after exporting the Tutorial.ipynb into tutorial.js Th…

---

## [(Human) Languages on the homepage](https://discourse.julialang.org/t/human-languages-on-the-homepage/7781)

<div class="topic-metadata">

**Author:** [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Replies:** 26\
**Last updated:** [September 7, 2021, 3:20pm UTC](https://discourse.julialang.org/t/human-languages-on-the-homepage/7781 "2021-09-07T15:20:25Z")

</div>

The julia homepage when viewed in a different locale than english is partially translated. While I (as a french speaker) appreciate the effort, this is very confusing. This is a copy-paste of the homepage as I see it: C…

---

## [Statistics in Julia good enough for my course?](https://discourse.julialang.org/t/statistics-in-julia-good-enough-for-my-course/67409)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 15\
**Last updated:** [September 7, 2021, 2:51pm UTC](https://discourse.julialang.org/t/statistics-in-julia-good-enough-for-my-course/67409 "2021-09-07T14:51:30Z")

</div>

I am starting a Statistics course tomorrow, as an undergrad. While prepping for class, I met the following statement: The faculty I am in at my school swears to MatLab for most things, and I have followed courses on …

---

## [Help: confused by behaviour of \`hasmethod\`](https://discourse.julialang.org/t/help-confused-by-behaviour-of-hasmethod/67818)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 2:41pm UTC](https://discourse.julialang.org/t/help-confused-by-behaviour-of-hasmethod/67818 "2021-09-07T14:41:41Z")

</div>

Can anybody please explain why in the following snippet hasmethod returns false? Thanks julia\> hasmethod(parse, Tuple{Int,String}) false julia\> parse(Int, "200") 200

---

## [ChainRulesCore: Custom adjoint ignored in certain cases](https://discourse.julialang.org/t/chainrulescore-custom-adjoint-ignored-in-certain-cases/67814)

<div class="topic-metadata">

**Author:** [@Rasmus\_Hoier](https://discourse.julialang.org/u/Rasmus_Hoier)\
**Replies:** 3\
**Last updated:** [September 7, 2021, 2:32pm UTC](https://discourse.julialang.org/t/chainrulescore-custom-adjoint-ignored-in-certain-cases/67814 "2021-09-07T14:32:10Z")

</div>

Hi, A colleague of mine ran into the issue that custom adjoints get ignored in certain cases in recent versions of ChainRulesCore. Here is a minimal working example: using Flux, ChainRulesCore my\_fun(x) = x\*x …

---

## [Suggestion: Enhanced feedback when restarting Julia is required](https://discourse.julialang.org/t/suggestion-enhanced-feedback-when-restarting-julia-is-required/67810)

<div class="topic-metadata">

**Author:** [@martin.demare](https://discourse.julialang.org/u/martin.demare)\
**Replies:** 0\
**Last updated:** [September 7, 2021, 12:17pm UTC](https://discourse.julialang.org/t/suggestion-enhanced-feedback-when-restarting-julia-is-required/67810 "2021-09-07T12:17:51Z")

</div>

Hi, When a package is added which alters the versions of already loaded packages, Julia needs to be restarted to access the correct versions. The feedback to the user is however somewhat timid, and as a new user I faile…

---

## [Convexifying a 6-dimensional closed trajectory with \`LazySets.jl\`](https://discourse.julialang.org/t/convexifying-a-6-dimensional-closed-trajectory-with-lazysets-jl/67764)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 11:01am UTC](https://discourse.julialang.org/t/convexifying-a-6-dimensional-closed-trajectory-with-lazysets-jl/67764 "2021-09-07T11:01:35Z")

</div>

First off, if anyone knows how to change the tag reachability-analysi to reachability-analysis, please do so! Discourse won’t let me type reachability-analysis in the category because a previous tag with an incorrect spe…

---

## [How to parse as an html string in julia](https://discourse.julialang.org/t/how-to-parse-as-an-html-string-in-julia/67803)

<div class="topic-metadata">

**Author:** [@hdcpereira](https://discourse.julialang.org/u/hdcpereira)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 11:16am UTC](https://discourse.julialang.org/t/how-to-parse-as-an-html-string-in-julia/67803 "2021-09-07T11:16:22Z")

</div>

So, in python with import html it would be easy to do: def htmlize(obj): content = html.escape(repr(obj)) return '\<pre\>{}\</pre\>'.format(content) html.ecape basically converts the characters & , \< and \> in string s to…

---

## [Eigen not working for arbitrary precision BigFloat](https://discourse.julialang.org/t/eigen-not-working-for-arbitrary-precision-bigfloat/67686)

<div class="topic-metadata">

**Author:** [@ekiral](https://discourse.julialang.org/u/ekiral)\
**Replies:** 16\
**Last updated:** [September 7, 2021, 11:11am UTC](https://discourse.julialang.org/t/eigen-not-working-for-arbitrary-precision-bigfloat/67686 "2021-09-07T11:11:51Z")

</div>

I try to use the function eigen defined on a matrix with BigFloat entries. The method does not work. julia\> matrix = \[BigFloat(2) BigFloat(3); BigFloat(3), BigFloat(2)\] julia\> matrix 2x2 Matrix{BigFloat}: 2.0 3.0 …

---

## [Populating a dictionary using a function with arbitrary keyword arguments](https://discourse.julialang.org/t/populating-a-dictionary-using-a-function-with-arbitrary-keyword-arguments/67788)

<div class="topic-metadata">

**Author:** [@EricChameroy](https://discourse.julialang.org/u/EricChameroy)\
**Replies:** 7\
**Last updated:** [September 7, 2021, 10:16am UTC](https://discourse.julialang.org/t/populating-a-dictionary-using-a-function-with-arbitrary-keyword-arguments/67788 "2021-09-07T10:16:56Z")

</div>

I’m really confused about how to go about populating a dictionary with a function involving arbitrary keyword arguments. I’ve been practicing Julia by working through a book about Python and re-writing the code snippets…

---

## [Julia on VSCode with PyPlot](https://discourse.julialang.org/t/julia-on-vscode-with-pyplot/67781)

<div class="topic-metadata">

**Author:** [@ttidrick](https://discourse.julialang.org/u/ttidrick)\
**Replies:** 3\
**Last updated:** [September 7, 2021, 9:28am UTC](https://discourse.julialang.org/t/julia-on-vscode-with-pyplot/67781 "2021-09-07T09:28:16Z")

</div>

Hi All, I’m using Julia on VSCode. My problem is getting PyPlot to show a figure. The same code work fine on a Julia REPL, but fails with no message when executing code in VSCode. Any ideas? Thanks, Ty

---

## [How can I speed up script overhead time?](https://discourse.julialang.org/t/how-can-i-speed-up-script-overhead-time/67676)

<div class="topic-metadata">

**Author:** [@solaris](https://discourse.julialang.org/u/solaris)\
**Replies:** 5\
**Last updated:** [September 4, 2021, 5:49pm UTC](https://discourse.julialang.org/t/how-can-i-speed-up-script-overhead-time/67676 "2021-09-04T17:49:26Z")

</div>

It seems like there’s overhead running Julia scripts that seem unreasonable and maybe I’m doing something wrong or missing a step. For example, I ran the nbody benchmark on my machine and gave it a few numbers. nbody ba…

---

## [System data in different formats in PowerModels.jl](https://discourse.julialang.org/t/system-data-in-different-formats-in-powermodels-jl/67344)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 9:14am UTC](https://discourse.julialang.org/t/system-data-in-different-formats-in-powermodels-jl/67344 "2021-09-07T09:14:56Z")

</div>

Hello. I’m using PowerModels.jl to study different power flow methods. However, for a specific system that I’m studying, I don’t have all the data in a single file. Also, the system’s data files I have are in different …

---

## [How to prevent global variable or array in module?](https://discourse.julialang.org/t/how-to-prevent-global-variable-or-array-in-module/65785)

<div class="topic-metadata">

**Author:** [@CRquantum](https://discourse.julialang.org/u/CRquantum)\
**Replies:** 8\
**Last updated:** [September 7, 2021, 9:11am UTC](https://discourse.julialang.org/t/how-to-prevent-global-variable-or-array-in-module/65785 "2021-09-07T09:11:53Z")

</div>

I am coming from Fortran to Julia. I know in Julia want to prevent using global variables. But the thing is, how to prevent using global variables in a module? For example, in the following module, module Mod global A…

---

## [Memcpy in julia](https://discourse.julialang.org/t/memcpy-in-julia/67791)

<div class="topic-metadata">

**Author:** [@Beh123](https://discourse.julialang.org/u/Beh123)\
**Replies:** 5\
**Last updated:** [September 7, 2021, 8:45am UTC](https://discourse.julialang.org/t/memcpy-in-julia/67791 "2021-09-07T08:45:57Z")

</div>

Hi everyone I have a vector which contains 5 uint8 elements. How do I copy them to two int32 variables ? we can do it with memcpy in c. Is there similar command in julia? x=\[0x3 0x00 0x11 0x00 0x80\] m= convert(Int32…

---

## [How to "label" DataFrame categorical column?](https://discourse.julialang.org/t/how-to-label-dataframe-categorical-column/67790)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 7:35am UTC](https://discourse.julialang.org/t/how-to-label-dataframe-categorical-column/67790 "2021-09-07T07:35:01Z")

</div>

How can I rename the levels of a categorical column in a DataFrame? I tried this but it throws an error: using DataFrames using CategoricalArrays df = DataFrame(x=\[1, 2, 3\]) df.x = categorical(df.x) levels!(df.x, \["one…

---

## [Overloading isunit from Nemo ring/field](https://discourse.julialang.org/t/overloading-isunit-from-nemo-ring-field/67777)

<div class="topic-metadata">

**Author:** [@Gilles\_Dubois](https://discourse.julialang.org/u/Gilles_Dubois)\
**Replies:** 6\
**Last updated:** [September 7, 2021, 6:42am UTC](https://discourse.julialang.org/t/overloading-isunit-from-nemo-ring-field/67777 "2021-09-07T06:42:12Z")

</div>

Hi everybody ! My first attempt was quite successful ! I wanted to check experimentally that Z/nZ is a field if and only if n is a prime number. This is easy to prove but it was just an opportunity to use the Nemo resi…

---

## [How to run a file/script in the Linux terminal (Ubuntu) assigning multi-threading?](https://discourse.julialang.org/t/how-to-run-a-file-script-in-the-linux-terminal-ubuntu-assigning-multi-threading/67784)

<div class="topic-metadata">

**Author:** [@bojusemo](https://discourse.julialang.org/u/bojusemo)\
**Replies:** 3\
**Last updated:** [September 7, 2021, 6:05am UTC](https://discourse.julialang.org/t/how-to-run-a-file-script-in-the-linux-terminal-ubuntu-assigning-multi-threading/67784 "2021-09-07T06:05:11Z")

</div>

Hi Folks, Could anybody guide me, please? How to run a file/script in the Linux terminal (Ubuntu) assigning multi-threading? If in the first line of the script I use #!/path/of/bin/julia it works without multi-threadin…

---

## [Two questions about GLM](https://discourse.julialang.org/t/two-questions-about-glm/10376)

<div class="topic-metadata">

**Author:** [@mwsohn](https://discourse.julialang.org/u/mwsohn)\
**Replies:** 4\
**Last updated:** [September 7, 2021, 5:55am UTC](https://discourse.julialang.org/t/two-questions-about-glm/10376 "2021-09-07T05:55:59Z")

</div>

I have noticed that I could not use a CategoricalArray as the dependent variable for a logistic regression. When I convert the binary dependent variable into a Float64, then I can estimate the model without any problem. …

---

## [How to pass a big chunk of data from C++ to a Julia script without making a copy?](https://discourse.julialang.org/t/how-to-pass-a-big-chunk-of-data-from-c-to-a-julia-script-without-making-a-copy/67779)

<div class="topic-metadata">

**Author:** [@solaris](https://discourse.julialang.org/u/solaris)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 2:07am UTC](https://discourse.julialang.org/t/how-to-pass-a-big-chunk-of-data-from-c-to-a-julia-script-without-making-a-copy/67779 "2021-09-07T02:07:35Z")

</div>

Say I have a meg of data of some structure. For example, struct NodeData { float position\[3\]; float orientation\[4\]; unsigned int connectedNodeIndices\[5\]; }; I want to pass this data from C++ to a Julia scr…

---

## [Which is best linux distribution for Julia](https://discourse.julialang.org/t/which-is-best-linux-distribution-for-julia/66830)

<div class="topic-metadata">

**Author:** [@development\_mentor](https://discourse.julialang.org/u/development_mentor)\
**Replies:** 9\
**Last updated:** [September 7, 2021, 1:18am UTC](https://discourse.julialang.org/t/which-is-best-linux-distribution-for-julia/66830 "2021-09-07T01:18:15Z")

</div>

I’m switching from Windows to Linux, for performance, better looks, simplicity and better control over the environment. Which would be the best Linux distribution I should use, that is beginner friendly. Thank you for …

---

## [Setting parameters for \`ReachabilityAnalysis\`'s \`@ivp\`](https://discourse.julialang.org/t/setting-parameters-for-reachabilityanalysis-s-ivp/67776)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 12:53am UTC](https://discourse.julialang.org/t/setting-parameters-for-reachabilityanalysis-s-ivp/67776 "2021-09-07T00:53:54Z")

</div>

I see in documentation for ReachabilityAnalysis that parameters are typically set in a function, as is the case in the duffing oscillator example. I’m working with a system where the ODEFunction was automatically generat…

---

## [Simple for loop question](https://discourse.julialang.org/t/simple-for-loop-question/67775)

<div class="topic-metadata">

**Author:** [@solaris](https://discourse.julialang.org/u/solaris)\
**Replies:** 3\
**Last updated:** [September 6, 2021, 10:18pm UTC](https://discourse.julialang.org/t/simple-for-loop-question/67775 "2021-09-06T22:18:40Z")

</div>

is there a way to arbitrarily step in a for loop? I don’t see it in the docs. For example: for i in 1:1000 println("msg: ", i) end but going 2 by 2 or 3 by 3 instead of one at a time. The equivalent of C’s: f…

---

## [Nemo - Error in overloading operator '=='](https://discourse.julialang.org/t/nemo-error-in-overloading-operator/67773)

<div class="topic-metadata">

**Author:** [@Gilles\_Dubois](https://discourse.julialang.org/u/Gilles_Dubois)\
**Replies:** 2\
**Last updated:** [September 6, 2021, 9:17pm UTC](https://discourse.julialang.org/t/nemo-error-in-overloading-operator/67773 "2021-09-06T21:17:13Z")

</div>

Hello everybody ! I want to construct product rings (fields) of modular integers. For example Z/5ZxZ/7Z I began like this : #http://nemocas.github.io/Nemo.jl/v0.6/types/#the-abstract-type-hierarchy-in-nemo using Nemo …

---

## [Why is this function expecting a string instead of accepting an integer?](https://discourse.julialang.org/t/why-is-this-function-expecting-a-string-instead-of-accepting-an-integer/67766)

<div class="topic-metadata">

**Author:** [@EricChameroy](https://discourse.julialang.org/u/EricChameroy)\
**Replies:** 6\
**Last updated:** [September 6, 2021, 8:59pm UTC](https://discourse.julialang.org/t/why-is-this-function-expecting-a-string-instead-of-accepting-an-integer/67766 "2021-09-06T20:59:26Z")

</div>

Hi everyone. I have this simple function here that doesn’t behave the way I’m expecting: function build\_person(first\_name, last\_name, age=nothing) # Return a dictionary of information about a person. person = Di…

---

## [Why does 16//1 and 16.0 not equal 16 in for loop?](https://discourse.julialang.org/t/why-does-16-1-and-16-0-not-equal-16-in-for-loop/67748)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 8\
**Last updated:** [September 6, 2021, 8:42pm UTC](https://discourse.julialang.org/t/why-does-16-1-and-16-0-not-equal-16-in-for-loop/67748 "2021-09-06T20:42:16Z")

</div>

I am getting some behavior I can not explain. The context is that a chamber gets 9/16’ths of its content emptied, initially air. Then the 9/16ths that were removed are replaced with some pure gas. This process is repeted…

---

## [LinearAlgebra: rank](https://discourse.julialang.org/t/linearalgebra-rank/67763)

<div class="topic-metadata">

**Author:** [@unhandyandy](https://discourse.julialang.org/u/unhandyandy)\
**Replies:** 8\
**Last updated:** [September 6, 2021, 7:56pm UTC](https://discourse.julialang.org/t/linearalgebra-rank/67763 "2021-09-06T19:56:07Z")

</div>

What exactly does the rank function compute? I thought it would give the number of llinearly independent rows in a matrix, but evidently not. Here cov is a 138x138 matrix. 1|julia\> rank(cov\[1:20,1:20\]) 20 1|julia\> ra…

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

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