# Latest

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

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

**Page:** 1013

---

## [GLMM ERROR: UndefVarError: emηᵢ not defined](https://discourse.julialang.org/t/glmm-error-undefvarerror-em-not-defined/82672)

<div class="topic-metadata">

**Author:** [@Shuya\_Fan](https://discourse.julialang.org/u/Shuya_Fan)\
**Replies:** 0\
**Last updated:** [June 13, 2022, 10:17am UTC](https://discourse.julialang.org/t/glmm-error-undefvarerror-em-not-defined/82672 "2022-06-13T10:17:18Z")

</div>

Hi, I’m new to Julia and it’s an awesome language. But I got some errors while running the GLMM. Looking forward to your help. In my data, ‘species’ and ‘newOBJIDsic’ are the random effect, ‘bio\_pd\_mpd\_mean’ is the fix…

---

## [How to Create Unit Circle and Right Sided Triangle / Pythagorean with Plots pyplot](https://discourse.julialang.org/t/how-to-create-unit-circle-and-right-sided-triangle-pythagorean-with-plots-pyplot/82541)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 3\
**Last updated:** [June 13, 2022, 9:09am UTC](https://discourse.julialang.org/t/how-to-create-unit-circle-and-right-sided-triangle-pythagorean-with-plots-pyplot/82541 "2022-06-13T09:09:15Z")

</div>

Hi all, I want to create a right-sided triangle that also has label for the angle and the side name. The question is how? I have found this that can plot a triangle : But still a bit advanced for me to edit and creat…

---

## [How to know if a package is good?](https://discourse.julialang.org/t/how-to-know-if-a-package-is-good/82133)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 105\
**Last updated:** [June 13, 2022, 8:00am UTC](https://discourse.julialang.org/t/how-to-know-if-a-package-is-good/82133 "2022-06-13T08:00:23Z")

</div>

For end-users, could JuliaHub provide links to similar packages whenever someone is reading a specific package page? Or maybe a feature where members could suggest links manually for review? For example: If, as an end-…

---

## [Does not plot if change array](https://discourse.julialang.org/t/does-not-plot-if-change-array/82650)

<div class="topic-metadata">

**Author:** [@leonandonayre](https://discourse.julialang.org/u/leonandonayre)\
**Replies:** 5\
**Last updated:** [June 13, 2022, 7:31am UTC](https://discourse.julialang.org/t/does-not-plot-if-change-array/82650 "2022-06-13T07:31:03Z")

</div>

This program is very simple, but I do not understand why it works when I use ξ\_ar = 0.00001:0.01:10 but it does not when ξ\_ar = 0.00001:0.000001:10 . using ModelingToolkit; using LaTeXStrings; using Plots; @variables…

---

## [Should we add sm as a short form of skipmissing](https://discourse.julialang.org/t/should-we-add-sm-as-a-short-form-of-skipmissing/82610)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 18\
**Last updated:** [June 13, 2022, 7:02am UTC](https://discourse.julialang.org/t/should-we-add-sm-as-a-short-form-of-skipmissing/82610 "2022-06-13T07:02:12Z")

</div>

Do you think const sm = skipmissing should be added and exported from Missings.jl? The point is that then mean(skipmissing(x)) would be abbreviated to mean(sm(x)). Given skipmissing is often needed I would propose to co…

---

## [Does \`==(::Missing, ::Any)=missing\` violate type stability?](https://discourse.julialang.org/t/does-missing-any-missing-violate-type-stability/82649)

<div class="topic-metadata">

**Author:** [@maxkapur](https://discourse.julialang.org/u/maxkapur)\
**Replies:** 4\
**Last updated:** [June 13, 2022, 1:17am UTC](https://discourse.julialang.org/t/does-missing-any-missing-violate-type-stability/82649 "2022-06-13T01:17:53Z")

</div>

(The intent of this question is to improve my understanding of type stability, not criticize the language design.) Most comparisons, like 0==0 and false==1 and so on return a Bool, but comparisons with missing return mi…

---

## [Create\_library dependency path issue](https://discourse.julialang.org/t/create-library-dependency-path-issue/82646)

<div class="topic-metadata">

**Author:** [@MEZ](https://discourse.julialang.org/u/MEZ)\
**Replies:** 1\
**Last updated:** [June 12, 2022, 11:27pm UTC](https://discourse.julialang.org/t/create-library-dependency-path-issue/82646 "2022-06-12T23:27:06Z")

</div>

I’m trying to create a library for my package using the following command: using PackageCompiler; create\_library(“MyPackage”, “libMyPackage”) This command fails when trying to precompile the project, stating that a fun…

---

## [Simple Table Operation Has Very Large Compilation Time with MLJ](https://discourse.julialang.org/t/simple-table-operation-has-very-large-compilation-time-with-mlj/82503)

<div class="topic-metadata">

**Author:** [@Jack\_N](https://discourse.julialang.org/u/Jack_N)\
**Replies:** 20\
**Last updated:** [June 12, 2022, 10:12pm UTC](https://discourse.julialang.org/t/simple-table-operation-has-very-large-compilation-time-with-mlj/82503 "2022-06-12T22:12:44Z")

</div>

I am trying to use MLJ on a DataFrame (30,000 rows x 8,000 columns) but every table operation seems to take a huge amount of time to compile but is fast to run. I have given an example with code below in which a 5 x 500…

---

## [How to replace \\ by \\\\ in string](https://discourse.julialang.org/t/how-to-replace-by-in-string/82602)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 5\
**Last updated:** [June 12, 2022, 9:36pm UTC](https://discourse.julialang.org/t/how-to-replace-by-in-string/82602 "2022-06-12T21:36:10Z")

</div>

Hi guys: I am using Julia on my windows computer. When I copy a path, it usually gives me like C:\\Users\\xxx\\.... But julia will say invalid escape sequence and I need to replace all \\ by \\\\. I want to know if there is a…

---

## [How to convert fmpq to Int](https://discourse.julialang.org/t/how-to-convert-fmpq-to-int/82634)

<div class="topic-metadata">

**Author:** [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Replies:** 5\
**Last updated:** [June 12, 2022, 9:01pm UTC](https://discourse.julialang.org/t/how-to-convert-fmpq-to-int/82634 "2022-06-12T21:01:54Z")

</div>

v = fmpq\[1,0,0\] vector, how to convert this to just \[1,0,0\]

---

## [How can I check out a pull request?](https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [June 12, 2022, 1:54pm UTC](https://discourse.julialang.org/t/how-can-i-check-out-a-pull-request/82635 "2022-06-12T13:54:40Z")

</div>

I would like to try: https://github.com/JuliaEcosystem/PkgDeps.jl/pull/39 How can I install it in Julia on Linux?

---

## [Installing Julia on Linux server?](https://discourse.julialang.org/t/installing-julia-on-linux-server/75699)

<div class="topic-metadata">

**Author:** [@pafloxy](https://discourse.julialang.org/u/pafloxy)\
**Replies:** 13\
**Last updated:** [June 12, 2022, 11:20am UTC](https://discourse.julialang.org/t/installing-julia-on-linux-server/75699 "2022-06-12T11:20:43Z")

</div>

Hi! I am moving on to run my Julia codes on a HPCE Linux server. Could someone point me on how exactly to download and install Julia on the server ? Following this I’m planning to install IJulia so as to be able to conn…

---

## [Error when installing package](https://discourse.julialang.org/t/error-when-installing-package/82615)

<div class="topic-metadata">

**Author:** [@Tri](https://discourse.julialang.org/u/Tri)\
**Replies:** 4\
**Last updated:** [June 12, 2022, 11:09am UTC](https://discourse.julialang.org/t/error-when-installing-package/82615 "2022-06-12T11:09:27Z")

</div>

I am trying to install the GAMS package. When I do Pkg.add(“GAMS”) I get the following error message. Can someone please tell me what does it mean? ERROR: Unsatisfiable requirements detected for package TranscodingStrea…

---

## [Axis linewidth in CairoMakie](https://discourse.julialang.org/t/axis-linewidth-in-cairomakie/82624)

<div class="topic-metadata">

**Author:** [@devanshu](https://discourse.julialang.org/u/devanshu)\
**Replies:** 2\
**Last updated:** [June 12, 2022, 9:23am UTC](https://discourse.julialang.org/t/axis-linewidth-in-cairomakie/82624 "2022-06-12T09:23:39Z")

</div>

Hi, I am using CairoMakie for plotting in Julia. I am wondering if there is any way to get thick borders in my figure? Something like this: Thank you!

---

## [Global environment affecting local environment](https://discourse.julialang.org/t/global-environment-affecting-local-environment/82611)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 6\
**Last updated:** [June 12, 2022, 9:03am UTC](https://discourse.julialang.org/t/global-environment-affecting-local-environment/82611 "2022-06-12T09:03:22Z")

</div>

I just ran julia --project in my locally developed package with only a few dependencies, and then ran Pkg.test(). However, for some reason, the package manager spends a bunch of time precompiling packages like Plots, and…

---

## [Kernel error when launching jupyter notebook after new julia install](https://discourse.julialang.org/t/kernel-error-when-launching-jupyter-notebook-after-new-julia-install/82605)

<div class="topic-metadata">

**Author:** [@mocalvao](https://discourse.julialang.org/u/mocalvao)\
**Replies:** 1\
**Last updated:** [June 12, 2022, 8:23am UTC](https://discourse.julialang.org/t/kernel-error-when-launching-jupyter-notebook-after-new-julia-install/82605 "2022-06-12T08:23:13Z")

</div>

Hi there, I used to have my julia install directories (julia-1.5.2, 1.6.0, …, 1.7.2) right under my home directory, in a Ubuntu desktop. Today I decided to move these directories to a brand-new directory, called julia, …

---

## [Quick way to make axis invisible (Makiei)?](https://discourse.julialang.org/t/quick-way-to-make-axis-invisible-makiei/82478)

<div class="topic-metadata">

**Author:** [@marcpabst](https://discourse.julialang.org/u/marcpabst)\
**Replies:** 2\
**Last updated:** [June 12, 2022, 7:34am UTC](https://discourse.julialang.org/t/quick-way-to-make-axis-invisible-makiei/82478 "2022-06-12T07:34:31Z")

</div>

Hi! I’m preparing some quite complex figures for a presentation and I would like to produce multiple versions of that figure with different parts of the layout shown/hidden. Is there any simple way to make an axis invis…

---

## [Why boolean is 4 bytes instead of 1 byte in struct](https://discourse.julialang.org/t/why-boolean-is-4-bytes-instead-of-1-byte-in-struct/82613)

<div class="topic-metadata">

**Author:** [@jk091](https://discourse.julialang.org/u/jk091)\
**Replies:** 3\
**Last updated:** [June 12, 2022, 7:21am UTC](https://discourse.julialang.org/t/why-boolean-is-4-bytes-instead-of-1-byte-in-struct/82613 "2022-06-12T07:21:05Z")

</div>

Hi all, I’m having trouble understanding why boolean is taking 4 bytes instead of 1 byte in structs. Here is an example: struct F8 p::Float32 t::Float32 end get\_F8() = F8(0.0f0, 0.0f0) println(sizeof(get\_F8())…

---

## [Modelling of SOCP constraint and solving through CPLEX](https://discourse.julialang.org/t/modelling-of-socp-constraint-and-solving-through-cplex/82580)

<div class="topic-metadata">

**Author:** [@musman](https://discourse.julialang.org/u/musman)\
**Replies:** 1\
**Last updated:** [June 12, 2022, 7:01am UTC](https://discourse.julialang.org/t/modelling-of-socp-constraint-and-solving-through-cplex/82580 "2022-06-12T07:01:40Z")

</div>

Hello all, I am trying to implement and solve the following SOCP constraint through CPLEX solver (cij)^2 + (sij)^2 \<= cii\*cjj through Rotated Second Order cone as follows: nSc = 10 nTP = 24 nBus = 34 nLines = 33 @vari…

---

## [Element-wise sincosd](https://discourse.julialang.org/t/element-wise-sincosd/82619)

<div class="topic-metadata">

**Author:** [@markub3327](https://discourse.julialang.org/u/markub3327)\
**Replies:** 11\
**Last updated:** [June 12, 2022, 6:33am UTC](https://discourse.julialang.org/t/element-wise-sincosd/82619 "2022-06-12T06:33:37Z")

</div>

Hello, I have a non-squared matrix with shape (1, 25). I need to calculate element-wise sincosd, but I get an error: ERROR: LoadError: DimensionMismatch: matrix is not square: dimensions are (1, 25) Stacktrace: \[1\] ch…

---

## [Type stability with if statements on types](https://discourse.julialang.org/t/type-stability-with-if-statements-on-types/82618)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 1\
**Last updated:** [June 12, 2022, 5:44am UTC](https://discourse.julialang.org/t/type-stability-with-if-statements-on-types/82618 "2022-06-12T05:44:46Z")

</div>

I would like to implement something to the following effect: function f(x) gx = g(x) if g(x) isa MyType return gx else return 0. end end If g is type stable, if f always type stable?

---

## [Issue with WebIO - displaying a sphere](https://discourse.julialang.org/t/issue-with-webio-displaying-a-sphere/82616)

<div class="topic-metadata">

**Author:** [@josh\_pat](https://discourse.julialang.org/u/josh_pat)\
**Replies:** 0\
**Last updated:** [June 12, 2022, 3:53am UTC](https://discourse.julialang.org/t/issue-with-webio-displaying-a-sphere/82616 "2022-06-12T03:53:55Z")

</div>

I am trying to run this code # One can pick θ, ϕ using the sliders that appear when the code is run. f1 = figure(figsize=(8,8)) # make an empty figure @manipulate for view = \[15,60,-30\], θ in 0:30:180, ϕ in -18…

---

## [Is there a Julia command line equivalent of \`python -m python\_package\_name\`](https://discourse.julialang.org/t/is-there-a-julia-command-line-equivalent-of-python-m-python-package-name/82604)

<div class="topic-metadata">

**Author:** [@djpasseyjr](https://discourse.julialang.org/u/djpasseyjr)\
**Replies:** 4\
**Last updated:** [June 11, 2022, 7:49pm UTC](https://discourse.julialang.org/t/is-there-a-julia-command-line-equivalent-of-python-m-python-package-name/82604 "2022-06-11T19:49:35Z")

</div>

In Python, packages may have a \_\_main\_\_.py file. If they do you can execute the code inside of this file in the command line by using: python -m python\_package\_name. It can also accept arguments: python -m python\_pack…

---

## [Unexpected allocation at each loop iteration](https://discourse.julialang.org/t/unexpected-allocation-at-each-loop-iteration/82600)

<div class="topic-metadata">

**Author:** [@simon79](https://discourse.julialang.org/u/simon79)\
**Replies:** 8\
**Last updated:** [June 11, 2022, 5:19pm UTC](https://discourse.julialang.org/t/unexpected-allocation-at-each-loop-iteration/82600 "2022-06-11T17:19:53Z")

</div>

Hi, The following overly-simplified extraction from my code shows a section of the code which is allocating memory at every loop iteration. I think this should not happen and I’d like to have advise and suggestion on h…

---

## [Replace missing values by a group mean](https://discourse.julialang.org/t/replace-missing-values-by-a-group-mean/82583)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 7\
**Last updated:** [June 11, 2022, 4:45pm UTC](https://discourse.julialang.org/t/replace-missing-values-by-a-group-mean/82583 "2022-06-11T16:45:59Z")

</div>

In an iris dataframe I replaced some values by missing. I would like to replace the missing values in the column petal\_length by the petal\_length mean per species. The code below does work (means before and after replac…

---

## [Is this how to load dash datatable from a Dict?](https://discourse.julialang.org/t/is-this-how-to-load-dash-datatable-from-a-dict/82462)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 0\
**Last updated:** [June 8, 2022, 8:59pm UTC](https://discourse.julialang.org/t/is-this-how-to-load-dash-datatable-from-a-dict/82462 "2022-06-08T20:59:21Z")

</div>

Hi all I’m going to be looking at using Dash to represent a Dict I build from a stream of realtime data. Here’s an example. data\_flow = Dict{String, Any}("AMZN" =\> Dict{String, Any}("hv10" =\> "45.99", "price" =\> "122…

---

## [How do you unfold a nested Julia array?](https://discourse.julialang.org/t/how-do-you-unfold-a-nested-julia-array/2243)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 12\
**Last updated:** [June 11, 2022, 2:02pm UTC](https://discourse.julialang.org/t/how-do-you-unfold-a-nested-julia-array/2243 "2022-06-11T14:02:58Z")

</div>

What is an efficient, elegant, Julian way to unfold a nested array: nested = \[\[1,2,3\],\[4,5\]\] vcat(nested...) # works but not always Is there a function in Base to unfold all sorts of nested data structures into a plain…

---

## [Rendering : avoid re-render pixels that did not change](https://discourse.julialang.org/t/rendering-avoid-re-render-pixels-that-did-not-change/82599)

<div class="topic-metadata">

**Author:** [@Francois](https://discourse.julialang.org/u/Francois)\
**Replies:** 0\
**Last updated:** [June 11, 2022, 12:12pm UTC](https://discourse.julialang.org/t/rendering-avoid-re-render-pixels-that-did-not-change/82599 "2022-06-11T12:12:20Z")

</div>

I’m trying to render a very big cellular automaton. I use image!(ax, Matrix{RGB}, …) to render the first image, then I change the Observable at each step of my simulation with the updated matrix. Few cells change from on…

---

## [How to make 3d interactive graphics in Julia?](https://discourse.julialang.org/t/how-to-make-3d-interactive-graphics-in-julia/82597)

<div class="topic-metadata">

**Author:** [@mathliker](https://discourse.julialang.org/u/mathliker)\
**Replies:** 6\
**Last updated:** [June 11, 2022, 12:07pm UTC](https://discourse.julialang.org/t/how-to-make-3d-interactive-graphics-in-julia/82597 "2022-06-11T12:07:38Z")

</div>

I found a web page with a similar tutorial. But when I copy the code to run, it gives an error. Hope you all can help me. https://plotly.com/julia/3d-surface-plots/ using PlotlyJS, CSV, HTTP, DataFrames # Read data fr…

---

## [Using optimization parameters in ModelingToolkit](https://discourse.julialang.org/t/using-optimization-parameters-in-modelingtoolkit/82099)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 12\
**Last updated:** [June 11, 2022, 12:00pm UTC](https://discourse.julialang.org/t/using-optimization-parameters-in-modelingtoolkit/82099 "2022-06-11T12:00:02Z")

</div>

Hi All, I want to be able to pass optimization parameters to the model. I took the RC circuit from the docs and created 2 parameters (param\_r1 param\_c1) https://mtk.sciml.ai/stable/tutorials/acausal\_components/#Connec…

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

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