# Latest

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

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

**Page:** 941

---

## [Find cycles in a direct graph (simplecycles error: function not defined)](https://discourse.julialang.org/t/find-cycles-in-a-direct-graph-simplecycles-error-function-not-defined/86449)

<div class="topic-metadata">

**Author:** [@Luiz\_Monteiro](https://discourse.julialang.org/u/Luiz_Monteiro)\
**Replies:** 3\
**Last updated:** [August 28, 2022, 12:15pm UTC](https://discourse.julialang.org/t/find-cycles-in-a-direct-graph-simplecycles-error-function-not-defined/86449 "2022-08-28T12:15:18Z")

</div>

Hi, I need to find cycles in a direct graph and return the vector of nodes of each cycle. I am using Graphs, LightGraphs, SimpleWeightedGraphs. Example: For a direct graph with the arcs \[(1 3), (2 4), (3 1), (4 5), (5, …

---

## [Problem with MathOptInterface.jl @ 1.7.0](https://discourse.julialang.org/t/problem-with-mathoptinterface-jl-1-7-0/86450)

<div class="topic-metadata">

**Author:** [@lionisxn](https://discourse.julialang.org/u/lionisxn)\
**Replies:** 5\
**Last updated:** [August 28, 2022, 11:29am UTC](https://discourse.julialang.org/t/problem-with-mathoptinterface-jl-1-7-0/86450 "2022-08-28T11:29:04Z")

</div>

Does anyone encounter a crash on Julia 1.8.0 when using the latest version JuMP.jl and MathOptInterface.jl @ 1.7.0? The following pop-up messages are displayed on my computer running windows 11. However, when switched t…

---

## [Plot of Cubic Root is not showing the negative f / codomain](https://discourse.julialang.org/t/plot-of-cubic-root-is-not-showing-the-negative-f-codomain/86452)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 2\
**Last updated:** [August 28, 2022, 8:42am UTC](https://discourse.julialang.org/t/plot-of-cubic-root-is-not-showing-the-negative-f-codomain/86452 "2022-08-28T08:42:18Z")

</div>

Hi all, I want to know why is my Cubic Root graph only showing positive f ? using Plots, LaTeXStrings, Plots.PlotMeasures gr() f(x) = x^(1/3) plot(f,-10,10, xticks=false, xlims=(-13,13), ylims=(-13,13), bottom…

---

## [How to List Integer Only / Returns Integer?](https://discourse.julialang.org/t/how-to-list-integer-only-returns-integer/86432)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 14\
**Last updated:** [August 28, 2022, 5:56am UTC](https://discourse.julialang.org/t/how-to-list-integer-only-returns-integer/86432 "2022-08-28T05:56:51Z")

</div>

Hi all, I have this simple array (p,q) and want to calculate (p1,q1) and (p2,q2) by calculating (p1,q1) first then (p2,q2). The rule is simple pq’ = qp’ I try to create a simple looping here: # Operations on Rational …

---

## [Why is this a "malformed expression"?](https://discourse.julialang.org/t/why-is-this-a-malformed-expression/86391)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 6\
**Last updated:** [August 28, 2022, 3:05am UTC](https://discourse.julialang.org/t/why-is-this-a-malformed-expression/86391 "2022-08-28T03:05:23Z")

</div>

julia\> import Base: first julia\> (first((t,)), b) = 3, 5 ERROR: syntax: malformed expression Stacktrace: \[1\] top-level scope @ REPL\[23\]:1 julia\> first((t,)) = 3; #DON'T DO THIS, MESSES UP REPL DISPLAY julia\> (firs…

---

## [Best practices for automatic generation of Jacobians](https://discourse.julialang.org/t/best-practices-for-automatic-generation-of-jacobians/68035)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 7\
**Last updated:** [August 27, 2022, 9:33pm UTC](https://discourse.julialang.org/t/best-practices-for-automatic-generation-of-jacobians/68035 "2022-08-27T21:33:24Z")

</div>

Hi everyone, I would like to discuss the best practices for automatic generation of Jacobians when solving PDEs. I understand that the ‘way to go’ is to (1) define a residual function (in loop-style - pure Julia), (2) u…

---

## [Makie plot recipe collections?](https://discourse.julialang.org/t/makie-plot-recipe-collections/86434)

<div class="topic-metadata">

**Author:** [@fedario](https://discourse.julialang.org/u/fedario)\
**Replies:** 3\
**Last updated:** [August 27, 2022, 8:27pm UTC](https://discourse.julialang.org/t/makie-plot-recipe-collections/86434 "2022-08-27T20:27:02Z")

</div>

Hi community! I noticed that Makie.jl enables you to create custom recipes. Before I start creating something myself, I thought I’d ask: Are there repositories containing collections of recipes that extend Makie’s defau…

---

## [DataFrame query](https://discourse.julialang.org/t/dataframe-query/86430)

<div class="topic-metadata">

**Author:** [@roh\_codeur](https://discourse.julialang.org/u/roh_codeur)\
**Replies:** 7\
**Last updated:** [August 27, 2022, 8:06pm UTC](https://discourse.julialang.org/t/dataframe-query/86430 "2022-08-27T20:06:11Z")

</div>

hi I have a dataframe as below Row │ Date Ticker Close frontContract secondContract │ Date String Float64 String String ───────┼───────────────────────────────────────…

---

## [Can I make type alias show up in a stack trace?](https://discourse.julialang.org/t/can-i-make-type-alias-show-up-in-a-stack-trace/86360)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 9\
**Last updated:** [August 27, 2022, 8:03pm UTC](https://discourse.julialang.org/t/can-i-make-type-alias-show-up-in-a-stack-trace/86360 "2022-08-27T20:03:52Z")

</div>

I’ve seen a lot of style guides that suggest being sparing with closures. Which is concerning, because I use a ton of closures. Part of the motivation for that advice seems to be because stack traces are hard to learn fr…

---

## [Behavior of isready on unbuffered Channel](https://discourse.julialang.org/t/behavior-of-isready-on-unbuffered-channel/86438)

<div class="topic-metadata">

**Author:** [@MiguelAlonso](https://discourse.julialang.org/u/MiguelAlonso)\
**Replies:** 2\
**Last updated:** [August 27, 2022, 6:46pm UTC](https://discourse.julialang.org/t/behavior-of-isready-on-unbuffered-channel/86438 "2022-08-27T18:46:54Z")

</div>

Hello, The documentation for Base.isready says that the function returns true if there are tasks waiting on a put!. However, on Julia 1.8 I tried this: function unbuffered\_channel\_test() channel = Channel{Int64}(…

---

## [Issue with Updating UnicodePlots](https://discourse.julialang.org/t/issue-with-updating-unicodeplots/86411)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 6\
**Last updated:** [August 27, 2022, 4:11pm UTC](https://discourse.julialang.org/t/issue-with-updating-unicodeplots/86411 "2022-08-27T16:11:18Z")

</div>

Hello, I encountered the following issue - I’d appreciate any thoughts on how to resolve it. My current environment is using Julia 1.7.1 and UnicodePlots version 2.12.4. I have this issue whether I am in the VSCode int…

---

## [Create struct from YAML](https://discourse.julialang.org/t/create-struct-from-yaml/86429)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [August 27, 2022, 4:08pm UTC](https://discourse.julialang.org/t/create-struct-from-yaml/86429 "2022-08-27T16:08:38Z")

</div>

I have the following code: using YAML, StructTypes, Parameters @with\_kw struct Test can\_log::String sys\_log::String version::String info::String end data = YAML.load\_file("data/config.yaml") test = da…

---

## [Transpose of symbolic matrix](https://discourse.julialang.org/t/transpose-of-symbolic-matrix/86433)

<div class="topic-metadata">

**Author:** [@Starpower\_Power](https://discourse.julialang.org/u/Starpower_Power)\
**Replies:** 1\
**Last updated:** [August 27, 2022, 3:36pm UTC](https://discourse.julialang.org/t/transpose-of-symbolic-matrix/86433 "2022-08-27T15:36:37Z")

</div>

i want output as \[cos(t) sin(t) 0; -sin(t) cos(t) 0; 0 0 1\] please someone help

---

## [Symbolics avoid simplifications with rules](https://discourse.julialang.org/t/symbolics-avoid-simplifications-with-rules/86421)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 2\
**Last updated:** [August 27, 2022, 2:39pm UTC](https://discourse.julialang.org/t/symbolics-avoid-simplifications-with-rules/86421 "2022-08-27T14:39:04Z")

</div>

How can I avoid simplification before applying a rule in Symbolics? I have (xy-yx) and I want to replace it with commutator(x, y), but before the rule can be applied xy-yx is simplified to 0.

---

## [Julia Notable Uses](https://discourse.julialang.org/t/julia-notable-uses/86130)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 12\
**Last updated:** [August 27, 2022, 2:40pm UTC](https://discourse.julialang.org/t/julia-notable-uses/86130 "2022-08-27T14:40:46Z")

</div>

Hi all, it is the good motivation for anyone who want to learn Julia. I read from wikipedia: Julia is used by NASA, e.g. for modeling spacecraft separation dynamics (15,000 times faster than before with Simulink/MATLAB…

---

## [Announcing Term.jl](https://discourse.julialang.org/t/announcing-term-jl/78170)

<div class="topic-metadata">

**Author:** [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Replies:** 23\
**Last updated:** [August 27, 2022, 1:25pm UTC](https://discourse.julialang.org/t/announcing-term-jl/78170 "2022-08-27T13:25:24Z")

</div>

Announcing Term.jl, a package inspired by WIll McGougan’s rich package in Python to produce stylized, structured output for your terminal, in Julia. Docs: https://fedeclaudi.github.io/Term.jl/v0.2/ Term can be used…

---

## [Update Project.toml compat entries in Pluto](https://discourse.julialang.org/t/update-project-toml-compat-entries-in-pluto/86396)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 3\
**Last updated:** [August 27, 2022, 12:43pm UTC](https://discourse.julialang.org/t/update-project-toml-compat-entries-in-pluto/86396 "2022-08-27T12:43:45Z")

</div>

I have a Pluto notebook created in Julia 1.5 and then used in 1.6. It includes a Project.toml and Manifest.toml in the jl file. With Julia 1.8 there were a lot of errors. I then did a Pkg.update within Pluto and it go…

---

## [Meaning of "..." in plot(f, extrema(xs)...)](https://discourse.julialang.org/t/meaning-of-in-plot-f-extrema-xs/86427)

<div class="topic-metadata">

**Author:** [@rsimic](https://discourse.julialang.org/u/rsimic)\
**Replies:** 1\
**Last updated:** [August 27, 2022, 12:04pm UTC](https://discourse.julialang.org/t/meaning-of-in-plot-f-extrema-xs/86427 "2022-08-27T12:04:56Z")

</div>

what does it mean 3 dots (…) after vector, example extrema(\[1, 2, 3\])…

---

## [CxxWrap cannot wrap structure on dev. version of Julia?](https://discourse.julialang.org/t/cxxwrap-cannot-wrap-structure-on-dev-version-of-julia/86423)

<div class="topic-metadata">

**Author:** [@nabla](https://discourse.julialang.org/u/nabla)\
**Replies:** 1\
**Last updated:** [August 27, 2022, 10:21am UTC](https://discourse.julialang.org/t/cxxwrap-cannot-wrap-structure-on-dev-version-of-julia/86423 "2022-08-27T10:21:07Z")

</div>

I built, and tried to run, CxxWrap with the latest (github) version of Julia, Version 1.9.0-DEV.1189 (2022-08-26). I could build the example “testlib.cpp”, but ran into two problems: the structure doesn’t seem to be wr…

---

## [Startup time in VSCode extraordinarily long](https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386)

<div class="topic-metadata">

**Author:** [@MikolasVolek](https://discourse.julialang.org/u/MikolasVolek)\
**Replies:** 4\
**Last updated:** [August 27, 2022, 9:59am UTC](https://discourse.julialang.org/t/startup-time-in-vscode-extraordinarily-long/86386 "2022-08-27T09:59:21Z")

</div>

Hi, I wanted to share an issue that I keep encountering upon starting Julia in VSCode, hoping that I might not be the only one affected by it. Whenever I start VSCode, open a \*.jl file and try to run a line of code, it…

---

## [How to get individual plots in PDF](https://discourse.julialang.org/t/how-to-get-individual-plots-in-pdf/86415)

<div class="topic-metadata">

**Author:** [@sai\_matcha](https://discourse.julialang.org/u/sai_matcha)\
**Replies:** 5\
**Last updated:** [August 27, 2022, 9:58am UTC](https://discourse.julialang.org/t/how-to-get-individual-plots-in-pdf/86415 "2022-08-27T09:58:02Z")

</div>

Hi. I am recently shifting from R to Julia. I want a help in getting individual plot for each ID in a PDF. I have attached the R code i used to do that. Can someone suggest equivalent code in julia to do the same? pdf…

---

## [Array promotion: too eager?](https://discourse.julialang.org/t/array-promotion-too-eager/86422)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 1\
**Last updated:** [August 27, 2022, 9:05am UTC](https://discourse.julialang.org/t/array-promotion-too-eager/86422 "2022-08-27T09:05:02Z")

</div>

I’ve noticed that recent 1.9 nightlies became more eager in converting array elements to a common type. This seems unambiguously breaking, and not sure about the motivation: what were the reasons for such a change? For …

---

## [What is the Flux.flatten inverse operation?](https://discourse.julialang.org/t/what-is-the-flux-flatten-inverse-operation/86413)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 2\
**Last updated:** [August 27, 2022, 5:06am UTC](https://discourse.julialang.org/t/what-is-the-flux-flatten-inverse-operation/86413 "2022-08-27T05:06:12Z")

</div>

My input data is multivariate time series, so the input array is width x length x batch. It appears a Dense layer requires the data to be in a single dimension, so I thought this is what Flux.flatten is for. On the outpu…

---

## [Differences between table types](https://discourse.julialang.org/t/differences-between-table-types/86409)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 1\
**Last updated:** [August 27, 2022, 3:05am UTC](https://discourse.julialang.org/t/differences-between-table-types/86409 "2022-08-27T03:05:40Z")

</div>

I am creating a package. Within it I will have tabular information. For an analysis there will be item specific information stored in tabular form. Based on the item the specific row from the table will need to be mat…

---

## [Optimiser to get the best selection of a set of penalty values](https://discourse.julialang.org/t/optimiser-to-get-the-best-selection-of-a-set-of-penalty-values/86376)

<div class="topic-metadata">

**Author:** [@ayodyas](https://discourse.julialang.org/u/ayodyas)\
**Replies:** 5\
**Last updated:** [August 26, 2022, 11:48pm UTC](https://discourse.julialang.org/t/optimiser-to-get-the-best-selection-of-a-set-of-penalty-values/86376 "2022-08-26T23:48:31Z")

</div>

I have an optimisation model in Julia using Jump model and Cbc optimiser. The model is highly dependent on the initial inputs. What will be best method to select the initial input such that, the error penalty in the orig…

---

## [Help me with Julia/R comparison project, how to plot US county maps in Plots/StatsPlots (or what's best alternative)?](https://discourse.julialang.org/t/help-me-with-julia-r-comparison-project-how-to-plot-us-county-maps-in-plots-statsplots-or-whats-best-alternative/75686)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 18\
**Last updated:** [August 26, 2022, 10:23pm UTC](https://discourse.julialang.org/t/help-me-with-julia-r-comparison-project-how-to-plot-us-county-maps-in-plots-statsplots-or-whats-best-alternative/75686 "2022-08-26T22:23:52Z")

</div>

I’m working with Phil Price over at Andrew Gelman’s blog https://statmodeling.stat.columbia.edu/ to do a comparison between using R and using Julia for basic data analysis stuff. We’ve got a few simple tasks and are imp…

---

## [Automated distribution fitting](https://discourse.julialang.org/t/automated-distribution-fitting/30161)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 11\
**Last updated:** [August 26, 2022, 9:43pm UTC](https://discourse.julialang.org/t/automated-distribution-fitting/30161 "2022-08-26T21:43:33Z")

</div>

Dear community, I am not an expert in statistics, so maybe this question is a bit naive. I have a data vector with ~10^6 entries (between \[0,1\]) and want to identify a distribution which fits best to that data. I wonder…

---

## [Trying to reference a struct field into an array](https://discourse.julialang.org/t/trying-to-reference-a-struct-field-into-an-array/86366)

<div class="topic-metadata">

**Author:** [@moataz-sabry](https://discourse.julialang.org/u/moataz-sabry)\
**Replies:** 7\
**Last updated:** [August 26, 2022, 9:25pm UTC](https://discourse.julialang.org/t/trying-to-reference-a-struct-field-into-an-array/86366 "2022-08-26T21:25:11Z")

</div>

I’m trying to create a vector as, that contains the value of field a for each struct Foo in the vector of structs foo without losing reference so that changing the values of as would also affect the values of foo. Here i…

---

## [Why is missing defined as singleton](https://discourse.julialang.org/t/why-is-missing-defined-as-singleton/32561)

<div class="topic-metadata">

**Author:** [@jandehaan](https://discourse.julialang.org/u/jandehaan)\
**Replies:** 14\
**Last updated:** [August 26, 2022, 9:06pm UTC](https://discourse.julialang.org/t/why-is-missing-defined-as-singleton/32561 "2022-08-26T21:06:01Z")

</div>

Currently type Missing is defined as struct Missing end and the singleton instance of that type is defined as const missing = Missing() But what if we defined the following: struct Missing why::Int end Missing() =…

---

## [Obtaining sub-optimal results from the model when the time limit is reached](https://discourse.julialang.org/t/obtaining-sub-optimal-results-from-the-model-when-the-time-limit-is-reached/85635)

<div class="topic-metadata">

**Author:** [@AAAG](https://discourse.julialang.org/u/AAAG)\
**Replies:** 11\
**Last updated:** [August 26, 2022, 8:47pm UTC](https://discourse.julialang.org/t/obtaining-sub-optimal-results-from-the-model-when-the-time-limit-is-reached/85635 "2022-08-26T20:47:02Z")

</div>

Hi, I am working on a model that includes both linear and non-linear constraints. I am using Ipopt and Juniper solvers for my model. What I am trying to do is to limit the time of the model and obtain the sub-optimal s…

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

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