# Latest

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

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

**Page:** 981

---

## [Standard interface definitions for Julia?](https://discourse.julialang.org/t/standard-interface-definitions-for-julia/82181)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 12\
**Last updated:** [July 16, 2022, 6:43am UTC](https://discourse.julialang.org/t/standard-interface-definitions-for-julia/82181 "2022-07-16T06:43:39Z")

</div>

I think a standard way to define interfaces in Julia, combined with a standard way to test if type satisfies all interfaces that are defined on it would be useful to improve the quality and reliability of the Julia packa…

---

## [ModelingToolkitStandardLibrary and Optimization](https://discourse.julialang.org/t/modelingtoolkitstandardlibrary-and-optimization/84146)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 6\
**Last updated:** [July 16, 2022, 5:15am UTC](https://discourse.julialang.org/t/modelingtoolkitstandardlibrary-and-optimization/84146 "2022-07-16T05:15:06Z")

</div>

Hi All, I want to optimize the Model created based on ModelingToolkitStandardLibrary. So I have a small RC-Model copied from the official documentation to ModelingToolkitStandardLibrary. module Grid export get\_model …

---

## [Is there a way to include Markdown files inside other Markdown?](https://discourse.julialang.org/t/is-there-a-way-to-include-markdown-files-inside-other-markdown/70895)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 7\
**Last updated:** [July 16, 2022, 4:30am UTC](https://discourse.julialang.org/t/is-there-a-way-to-include-markdown-files-inside-other-markdown/70895 "2022-07-16T04:30:11Z")

</div>

I’ve searched this topic but could not find any solution to what it seems to be it should be a pretty common need. I have several man pages of programs that share common options. For obvious reasons I would like to avoi…

---

## [Julia on embedded devices & validation thereof](https://discourse.julialang.org/t/julia-on-embedded-devices-validation-thereof/81518)

<div class="topic-metadata">

**Author:** [@AMJ](https://discourse.julialang.org/u/AMJ)\
**Replies:** 36\
**Last updated:** [July 16, 2022, 4:05am UTC](https://discourse.julialang.org/t/julia-on-embedded-devices-validation-thereof/81518 "2022-07-16T04:05:08Z")

</div>

For C and C++, there are standards that the compilers follow, there are tools that can be used to check for problems, and it is reliable when deployed to embedded systems. In Julia, there needs to at least be a sense of…

---

## [Julia v1.8.0-rc3 is now available](https://discourse.julialang.org/t/julia-v1-8-0-rc3-is-now-available/84301)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [July 16, 2022, 3:45am UTC](https://discourse.julialang.org/t/julia-v1-8-0-rc3-is-now-available/84301 "2022-07-16T03:45:59Z")

</div>

The Julia developers are pleased to announce that the third release candidate for Julia v1.8.0 is now available. Binaries are available at https://julialang.org/downloads/ in the “upcoming release” section for the follow…

---

## [How would I stop a while loop after n amount of time?](https://discourse.julialang.org/t/how-would-i-stop-a-while-loop-after-n-amount-of-time/84299)

<div class="topic-metadata">

**Author:** [@Funkerfish](https://discourse.julialang.org/u/Funkerfish)\
**Replies:** 1\
**Last updated:** [July 16, 2022, 3:26am UTC](https://discourse.julialang.org/t/how-would-i-stop-a-while-loop-after-n-amount-of-time/84299 "2022-07-16T03:26:23Z")

</div>

I want to terminate the loop at a set time so that the remaining code runs. I found that the @time can only show the time when that part of code was completely compiled.

---

## [Package registration: Git tag already exists and points to a different commit?](https://discourse.julialang.org/t/package-registration-git-tag-already-exists-and-points-to-a-different-commit/84294)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 0\
**Last updated:** [July 16, 2022, 2:16am UTC](https://discourse.julialang.org/t/package-registration-git-tag-already-exists-and-points-to-a-different-commit/84294 "2022-07-16T02:16:52Z")

</div>

I find this response perplexing: H5Zbitshuffle-v0.1.1 already exists and points to a different commit As far as I can tell, that tag points to that commit. Sure there is already a pending pull request that has a m…

---

## [Getting the upper and lower bounds in MILP - JuMP](https://discourse.julialang.org/t/getting-the-upper-and-lower-bounds-in-milp-jump/84293)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 1\
**Last updated:** [July 16, 2022, 12:13am UTC](https://discourse.julialang.org/t/getting-the-upper-and-lower-bounds-in-milp-jump/84293 "2022-07-16T00:13:03Z")

</div>

Hello everyone, When I use JuMP v0.21.7 with the Gurobi solver and optimize a MILP, how do I get, after optimization: The value of the first upper bound (of the first incumbent solution). The value of the first lower …

---

## [Solving Boundary Value Differential Equation Problems for Economics](https://discourse.julialang.org/t/solving-boundary-value-differential-equation-problems-for-economics/72871)

<div class="topic-metadata">

**Author:** [@MainBatDealer](https://discourse.julialang.org/u/MainBatDealer)\
**Replies:** 18\
**Last updated:** [July 15, 2022, 10:44pm UTC](https://discourse.julialang.org/t/solving-boundary-value-differential-equation-problems-for-economics/72871 "2022-07-15T22:44:59Z")

</div>

Hi all, I am interested in using the BoundaryValueDiffEq part of DifferentialEquations to solve economic growth problems in continuous time. The problem is, I can’t get a relatively simple example to work! The example …

---

## [Dict from dataframe](https://discourse.julialang.org/t/dict-from-dataframe/84277)

<div class="topic-metadata">

**Author:** [@ayodyas](https://discourse.julialang.org/u/ayodyas)\
**Replies:** 5\
**Last updated:** [July 15, 2022, 10:34pm UTC](https://discourse.julialang.org/t/dict-from-dataframe/84277 "2022-07-15T22:34:22Z")

</div>

df = DataFrame(ID=1:4,X=11:14, Y=10:13) indexing to one colum worked using this - Dict(pairs(df.x)) I wanted to convert this to Dict in julia to get like 1 =\> \[ 11,10\] 2 =\> \[12,11\] 3 =\> \[13,12\] 4 =\> \[14,13\] T…

---

## [\[ANN\] Seattle Area JuliaCon Meetup at Microsoft Reactor in Redmond on July 26th afternoon (+ free pizza lunch)](https://discourse.julialang.org/t/ann-seattle-area-juliacon-meetup-at-microsoft-reactor-in-redmond-on-july-26th-afternoon-free-pizza-lunch/84291)

<div class="topic-metadata">

**Author:** [@calebwin](https://discourse.julialang.org/u/calebwin)\
**Replies:** 0\
**Last updated:** [July 15, 2022, 10:04pm UTC](https://discourse.julialang.org/t/ann-seattle-area-juliacon-meetup-at-microsoft-reactor-in-redmond-on-july-26th-afternoon-free-pizza-lunch/84291 "2022-07-15T22:04:26Z")

</div>

We will be having a JuliaCon meetup at the Microsoft Reactor in Redmond, WA on July 26th between 12:30-4:30 (:pizza: will be provided at the start). We have a few speakers lined up but feel free to show up and leave any …

---

## [Maximize Min Objective](https://discourse.julialang.org/t/maximize-min-objective/83431)

<div class="topic-metadata">

**Author:** [@sophiepavia](https://discourse.julialang.org/u/sophiepavia)\
**Replies:** 8\
**Last updated:** [July 14, 2022, 9:00pm UTC](https://discourse.julialang.org/t/maximize-min-objective/83431 "2022-07-14T21:00:14Z")

</div>

I am working on a convex optimization problem in Julia using JuMP and Pajarito. I have three objectives that I will solve for independently. For the third objective how can I maximize the min? @NLobjective(model, Max, …

---

## [Julia array slicing to list](https://discourse.julialang.org/t/julia-array-slicing-to-list/84262)

<div class="topic-metadata">

**Author:** [@ayodyas](https://discourse.julialang.org/u/ayodyas)\
**Replies:** 4\
**Last updated:** [July 15, 2022, 7:30pm UTC](https://discourse.julialang.org/t/julia-array-slicing-to-list/84262 "2022-07-15T19:30:38Z")

</div>

I have A= \[2 1;1 2;3 3;2 4;3 5;3 6;1 7;1 8;2 9\], I wanted to get the values in second column when column one have same values, as a separate list. like— when first column value=1, \[2,7,8\] similarly second col…

---

## [Setting a module global from another module](https://discourse.julialang.org/t/setting-a-module-global-from-another-module/84283)

<div class="topic-metadata">

**Author:** [@arbitrandomuser](https://discourse.julialang.org/u/arbitrandomuser)\
**Replies:** 1\
**Last updated:** [July 15, 2022, 5:58pm UTC](https://discourse.julialang.org/t/setting-a-module-global-from-another-module/84283 "2022-07-15T17:58:01Z")

</div>

I have two packages , lets call them pkgA and pkgB . The sources of the two packages are shown below . module pkgA const glob = \[1,2\] greet() = print("Hello World!") end # module module pkgB import pkgA println("SETT…

---

## [\[ANN\] ObjectOriented.jl (renamed from TyOOP.jl), complete OOP support](https://discourse.julialang.org/t/ann-objectoriented-jl-renamed-from-tyoop-jl-complete-oop-support/83911)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 31\
**Last updated:** [July 15, 2022, 5:00pm UTC](https://discourse.julialang.org/t/ann-objectoriented-jl-renamed-from-tyoop-jl-complete-oop-support/83911 "2022-07-15T17:00:18Z")

</div>

Hi community! It has been quite a long time since my last post, and now I’m glad to say that I have completed my postgraduate career and started working with Julia! :sunglasses: I made this package (EDIT) initially for…

---

## [Wrapping the API for themoviedb.org](https://discourse.julialang.org/t/wrapping-the-api-for-themoviedb-org/84281)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 0\
**Last updated:** [July 15, 2022, 4:22pm UTC](https://discourse.julialang.org/t/wrapping-the-api-for-themoviedb-org/84281 "2022-07-15T16:22:50Z")

</div>

While looking at the movielens.org ml-25m data set (see ml-25m - Downloading and examining the MovieLens 25m data) I encountered an online movie/tv-show database called themoviedb.org that provides a public API, API Over…

---

## [How to reproduce the Makie default colors?](https://discourse.julialang.org/t/how-to-reproduce-the-makie-default-colors/84261)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 4\
**Last updated:** [July 15, 2022, 4:03pm UTC](https://discourse.julialang.org/t/how-to-reproduce-the-makie-default-colors/84261 "2022-07-15T16:03:45Z")

</div>

I like the default colors from Makie, and more than that, sometimes it’s useful to reproduce them when we need to plot things it a different order. How can I specify the same colors as the default theme, with the color k…

---

## [Dagger Blog Post Announcement](https://discourse.julialang.org/t/dagger-blog-post-announcement/84268)

<div class="topic-metadata">

**Author:** [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Replies:** 1\
**Last updated:** [July 15, 2022, 3:01pm UTC](https://discourse.julialang.org/t/dagger-blog-post-announcement/84268 "2022-07-15T15:01:36Z")

</div>

Hey everyone, I’m the maintainer of Dagger.jl. I’ve recently published a blog post on the JuliaParallel blog in response to a benchmark published by Julius Technologies, which shows how I optimized Dagger’s performance o…

---

## [Mistakes in the text on Julia YT channel](https://discourse.julialang.org/t/mistakes-in-the-text-on-julia-yt-channel/73166)

<div class="topic-metadata">

**Author:** [@KZiemian](https://discourse.julialang.org/u/KZiemian)\
**Replies:** 41\
**Last updated:** [July 15, 2022, 2:48pm UTC](https://discourse.julialang.org/t/mistakes-in-the-text-on-julia-yt-channel/73166 "2022-07-15T14:48:11Z")

</div>

Julia YouTube channel is invaluable place to learn about Julia language, ecosystem, etc. Since I quite pedantic I from time to time take notice of small typos in mistakes in titles of videos and descriptions. Wrong spell…

---

## [Read input stream until the next white space?](https://discourse.julialang.org/t/read-input-stream-until-the-next-white-space/84241)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 2:27pm UTC](https://discourse.julialang.org/t/read-input-stream-until-the-next-white-space/84241 "2022-07-15T14:27:46Z")

</div>

The function readuntil allows you to read an IO buffer until a specified character which could be e.g. the spacebar ' '. Is there a similar function which allows you to read until any whitespace (space, tab, newline etc.…

---

## [HEXA colour code generators in julia](https://discourse.julialang.org/t/hexa-colour-code-generators-in-julia/84270)

<div class="topic-metadata">

**Author:** [@ayodyas](https://discourse.julialang.org/u/ayodyas)\
**Replies:** 1\
**Last updated:** [July 15, 2022, 1:30pm UTC](https://discourse.julialang.org/t/hexa-colour-code-generators-in-julia/84270 "2022-07-15T13:30:14Z")

</div>

Similar to python, is there anyway to generate unique hexa colour code in julia to use in Networkx (using pycall? python code is like this, for j in range(5): rand\_colors = \[“#”+" ".join(\[random.choice(“ABCDEF01234567…

---

## [Outputting all Cycles in an undirected graph using DFS](https://discourse.julialang.org/t/outputting-all-cycles-in-an-undirected-graph-using-dfs/84222)

<div class="topic-metadata">

**Author:** [@Temi-Tory](https://discourse.julialang.org/u/Temi-Tory)\
**Replies:** 6\
**Last updated:** [July 15, 2022, 11:04am UTC](https://discourse.julialang.org/t/outputting-all-cycles-in-an-undirected-graph-using-dfs/84222 "2022-07-15T11:04:38Z")

</div>

Hi Guys, I’m hoping someone can help me figure out why my function is not working as expected. Any help is appreciated. I was going through this geek-for-geek post on how to detect and print cycles in an undircetd gr…

---

## [Julia within org-mode: what about a new ob-julia?](https://discourse.julialang.org/t/julia-within-org-mode-what-about-a-new-ob-julia/46308)

<div class="topic-metadata">

**Author:** [@fsantos](https://discourse.julialang.org/u/fsantos)\
**Replies:** 11\
**Last updated:** [July 15, 2022, 12:56pm UTC](https://discourse.julialang.org/t/julia-within-org-mode-what-about-a-new-ob-julia/46308 "2022-07-15T12:56:01Z")

</div>

Hi, I’m very new to Julia (and just beginning to learn this language). I’m currently mostly an R user, which I use within Emacs using ESS and org-mode. ESS has pretty good support for Julia, but I still have found no s…

---

## [Nonlinear least squares Parameter estimation with one set of data points](https://discourse.julialang.org/t/nonlinear-least-squares-parameter-estimation-with-one-set-of-data-points/83801)

<div class="topic-metadata">

**Author:** [@ak47](https://discourse.julialang.org/u/ak47)\
**Replies:** 17\
**Last updated:** [July 15, 2022, 12:46pm UTC](https://discourse.julialang.org/t/nonlinear-least-squares-parameter-estimation-with-one-set-of-data-points/83801 "2022-07-15T12:46:12Z")

</div>

I have been trying to estimate parameters with one set of data. First, i followed the examples of least squares parameter estimation to write the first code where i generated 3 toy data sets for x, y and z . Everythin…

---

## [How do I call FastTransforms.jl to get a complex spherical harmonics](https://discourse.julialang.org/t/how-do-i-call-fasttransforms-jl-to-get-a-complex-spherical-harmonics/84258)

<div class="topic-metadata">

**Author:** [@F-YF](https://discourse.julialang.org/u/F-YF)\
**Replies:** 7\
**Last updated:** [July 15, 2022, 10:46am UTC](https://discourse.julialang.org/t/how-do-i-call-fasttransforms-jl-to-get-a-complex-spherical-harmonics/84258 "2022-07-15T10:46:51Z")

</div>

I am looking for a package that can calculate the spherical harmonic function, and I expect it to be able to directly give the value of the spherical harmonic function Y\_{l,m}(\\theta,\\phi) , when given input l, m ,\\th…

---

## [DatePicker event handler not working](https://discourse.julialang.org/t/datepicker-event-handler-not-working/84257)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [July 15, 2022, 8:35am UTC](https://discourse.julialang.org/t/datepicker-event-handler-not-working/84257 "2022-07-15T08:35:47Z")

</div>

I’m able to perform some action when the button is pressed but not when the daterange changes: using Stipple using StippleUI using StipplePlotly using Random palette = \[ "#e61c4c", "#004976", "#3fa535", …

---

## [Let struct instance equal each other just depending on their struct name](https://discourse.julialang.org/t/let-struct-instance-equal-each-other-just-depending-on-their-struct-name/84254)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 6\
**Last updated:** [July 15, 2022, 8:00am UTC](https://discourse.julialang.org/t/let-struct-instance-equal-each-other-just-depending-on-their-struct-name/84254 "2022-07-15T08:00:00Z")

</div>

I have a abstract ttt, which owe two subtypes Tec1,Tec2 : abstract type ttt end struct Tec1{T} \<: ttt n::T end struct Tec2{T} \<: ttt n::T end I make the instances genrerated from the two struct equal each other…

---

## [Logical aggregation functions](https://discourse.julialang.org/t/logical-aggregation-functions/84250)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 7:36am UTC](https://discourse.julialang.org/t/logical-aggregation-functions/84250 "2022-07-15T07:36:10Z")

</div>

Does Julia have logical aggregation functions ? Something like AND( \[true, true, false\] ) = false OR( \[true, true, false\] ) = true

---

## [How to read variables of .mat in Julia?](https://discourse.julialang.org/t/how-to-read-variables-of-mat-in-julia/84193)

<div class="topic-metadata">

**Author:** [@raamsa](https://discourse.julialang.org/u/raamsa)\
**Replies:** 3\
**Last updated:** [July 15, 2022, 7:22am UTC](https://discourse.julialang.org/t/how-to-read-variables-of-mat-in-julia/84193 "2022-07-15T07:22:54Z")

</div>

I have installed MAT.jl package to read variables from .mat file. When I use the following syntax. I got the error. How to resolve it? using MAT file = matopen("subject3455session6.mat") read(file, "varname") close(f…

---

## [How to set ticklabels for an image, within the range of x, and y](https://discourse.julialang.org/t/how-to-set-ticklabels-for-an-image-within-the-range-of-x-and-y/63637)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 5\
**Last updated:** [July 15, 2022, 6:31am UTC](https://discourse.julialang.org/t/how-to-set-ticklabels-for-an-image-within-the-range-of-x-and-y/63637 "2022-07-15T06:31:41Z")

</div>

I searched this forum and the web for the Julia equivalent of extent in matplotlib.pyplot.imshow: plt.imshow(M, origin="lower", extent=\[a, b, c, d\]) but I couldn’t find any reference. I need this feature for plotting c…

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

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