# Latest

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

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

**Page:** 623

---

## [ModelingToolkit KeyError](https://discourse.julialang.org/t/modelingtoolkit-keyerror/102716)

<div class="topic-metadata">

**Author:** [@sabbraxcaddabra](https://discourse.julialang.org/u/sabbraxcaddabra)\
**Replies:** 4\
**Last updated:** [August 11, 2023, 6:38pm UTC](https://discourse.julialang.org/t/modelingtoolkit-keyerror/102716 "2023-08-11T18:38:27Z")

</div>

I’m trying to model powder burning in small chamber by the following code. The problem is that I need to stop integration when there is more gas then chamber volume. I try to do it by adding callback to bal\_eqs. But I g…

---

## [Running Julia with slurm, output not being printed until after completion](https://discourse.julialang.org/t/running-julia-with-slurm-output-not-being-printed-until-after-completion/102728)

<div class="topic-metadata">

**Author:** [@hshackle](https://discourse.julialang.org/u/hshackle)\
**Replies:** 1\
**Last updated:** [August 11, 2023, 6:18pm UTC](https://discourse.julialang.org/t/running-julia-with-slurm-output-not-being-printed-until-after-completion/102728 "2023-08-11T18:18:27Z")

</div>

I’m running Julia on a computing cluster and submitting jobs through slurm. The submission file is relatively simple: #!/bin/bash #SBATCH -o test.out module purge module load modules/2.1.1-20230405 gcc/11.3.0 module l…

---

## [Does Jevons Paradox Apply to Julia for Health Informatics Research?](https://discourse.julialang.org/t/does-jevons-paradox-apply-to-julia-for-health-informatics-research/102722)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 2\
**Last updated:** [August 11, 2023, 5:59pm UTC](https://discourse.julialang.org/t/does-jevons-paradox-apply-to-julia-for-health-informatics-research/102722 "2023-08-11T17:59:14Z")

</div>

Hi all, :wave: Over the past few years, I have been developing tools for health informatics research (specifically observational health research) within Julia. My personal reasons for this has been personal productivity…

---

## [Being informed about new registered packages and releases](https://discourse.julialang.org/t/being-informed-about-new-registered-packages-and-releases/30070)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 46\
**Last updated:** [August 11, 2023, 4:57pm UTC](https://discourse.julialang.org/t/being-informed-about-new-registered-packages-and-releases/30070 "2023-08-11T16:57:50Z")

</div>

I like to keep up to date about new Julia packages being registered and new releases of existing ones. I used to just “watch” the Github repo for the registry, but it contains a lot of incidental information and these d…

---

## [Is there any method that I can input Chinese character using GMT.jl?](https://discourse.julialang.org/t/is-there-any-method-that-i-can-input-chinese-character-using-gmt-jl/102717)

<div class="topic-metadata">

**Author:** [@Vincent\_Liao](https://discourse.julialang.org/u/Vincent_Liao)\
**Replies:** 0\
**Last updated:** [August 11, 2023, 3:01pm UTC](https://discourse.julialang.org/t/is-there-any-method-that-i-can-input-chinese-character-using-gmt-jl/102717 "2023-08-11T15:01:45Z")

</div>

The following is my code using GMT gmtbegin("Figure1", fmt="pdf,png") gmtset(PS\_CHAR\_ENCODING="Standard+", FONT\_LABEL="10p,39,black", ) subplot(grid="2x3", panels\_size=(8,6), margins="6p") bas…

---

## [\[ANN\] AffineMaps.jl](https://discourse.julialang.org/t/ann-affinemaps-jl/100751)

<div class="topic-metadata">

**Author:** [@oschulz](https://discourse.julialang.org/u/oschulz)\
**Replies:** 6\
**Last updated:** [August 11, 2023, 2:29pm UTC](https://discourse.julialang.org/t/ann-affinemaps-jl/100751 "2023-08-11T14:29:26Z")

</div>

Just wanted to announce AffineMaps. AffineMaps is a very lightweight package to express affine transforms (A \* x + b, and variants). It provides function objects for add, mul, muladd and addmul. These support InverseFu…

---

## [Julia keywords](https://discourse.julialang.org/t/julia-keywords/102673)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 8\
**Last updated:** [August 11, 2023, 2:09pm UTC](https://discourse.julialang.org/t/julia-keywords/102673 "2023-08-11T14:09:00Z")

</div>

Hi, Reading the Julia documentation, I understand that using, import, function …etc are reserved keywords. I was wondering if users can create their own keywords? If yes, is there an example of how I can do that? Than…

---

## [How to render figures in Pluto markdown?](https://discourse.julialang.org/t/how-to-render-figures-in-pluto-markdown/67900)

<div class="topic-metadata">

**Author:** [@yingqiuz](https://discourse.julialang.org/u/yingqiuz)\
**Replies:** 23\
**Last updated:** [August 11, 2023, 1:13pm UTC](https://discourse.julialang.org/t/how-to-render-figures-in-pluto-markdown/67900 "2023-08-11T13:13:08Z")

</div>

Hi How to render local figures in Pluto.jl markdown? I’ve tried md""" !\[fig1\](fig1.png) """ in pluto notebook cells where fig1.png is under the same directory as the notebook. However, the figure was note rendered at…

---

## [Extreme ray values unbounded LP JuMP](https://discourse.julialang.org/t/extreme-ray-values-unbounded-lp-jump/102686)

<div class="topic-metadata">

**Author:** [@bcoulier](https://discourse.julialang.org/u/bcoulier)\
**Replies:** 5\
**Last updated:** [August 11, 2023, 12:56pm UTC](https://discourse.julialang.org/t/extreme-ray-values-unbounded-lp-jump/102686 "2023-08-11T12:56:39Z")

</div>

I’m currently dealing with an LP problem where the solution to the primal turns out to be infeasible, leading to an unbounded dual. In order to create a feasibility cut, I’m aiming to acquire the extreme ray values from …

---

## [Compare&contrast my Julia development philosophy to agile development/etc](https://discourse.julialang.org/t/compare-contrast-my-julia-development-philosophy-to-agile-development-etc/102680)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [August 11, 2023, 10:59am UTC](https://discourse.julialang.org/t/compare-contrast-my-julia-development-philosophy-to-agile-development-etc/102680 "2023-08-11T10:59:13Z")

</div>

This philosophy is not specific to Julia, but favors Julia due to its high-level nature, ease of generic, etc… I want to compare them to popular development philosophies. Thanks. Code is either an end-user application…

---

## [How to input unicode characters in jupyterlab text editor](https://discourse.julialang.org/t/how-to-input-unicode-characters-in-jupyterlab-text-editor/102712)

<div class="topic-metadata">

**Author:** [@cpf-work](https://discourse.julialang.org/u/cpf-work)\
**Replies:** 0\
**Last updated:** [August 11, 2023, 10:56am UTC](https://discourse.julialang.org/t/how-to-input-unicode-characters-in-jupyterlab-text-editor/102712 "2023-08-11T10:56:48Z")

</div>

This is not a question but a solution. Perhaps everyone knows this already, but it took my some time to figure out so I thought I’d share it. I am using jupyter lab 4 with julia (julia 1.9.2, IJulia 1.24.2). In notebook…

---

## [How to get last error message from REPL?](https://discourse.julialang.org/t/how-to-get-last-error-message-from-repl/102695)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 3\
**Last updated:** [August 11, 2023, 10:37am UTC](https://discourse.julialang.org/t/how-to-get-last-error-message-from-repl/102695 "2023-08-11T10:37:56Z")

</div>

Is there a quick way to re-display the last error message from REPL, without the stacktrace?

---

## [The state of loop optimization in Julia](https://discourse.julialang.org/t/the-state-of-loop-optimization-in-julia/102711)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [August 11, 2023, 10:24am UTC](https://discourse.julialang.org/t/the-state-of-loop-optimization-in-julia/102711 "2023-08-11T10:24:49Z")

</div>

We have loop vectorization which optimizes a single, highly restricted loop, then we will have loopmodel with less restriction but no multithreading. Then, there is a “future work” for loopvectorization. Naturally, one w…

---

## [Remove column having missing values and assign default names again](https://discourse.julialang.org/t/remove-column-having-missing-values-and-assign-default-names-again/102666)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 7\
**Last updated:** [August 11, 2023, 10:01am UTC](https://discourse.julialang.org/t/remove-column-having-missing-values-and-assign-default-names-again/102666 "2023-08-11T10:01:31Z")

</div>

I have a dataframe having default(not given) column names :heavy\_minus\_sign:Column1 Column2 Column3 . and after removing Column containing missing values using df=df\[!, Not(all.(ismissing, eachcol(df)))\] it looks li…

---

## [Franklin.jl Dynamically Loading and Suppressing Pages](https://discourse.julialang.org/t/franklin-jl-dynamically-loading-and-suppressing-pages/102530)

<div class="topic-metadata">

**Author:** [@Ian\_L](https://discourse.julialang.org/u/Ian_L)\
**Replies:** 4\
**Last updated:** [August 11, 2023, 7:39am UTC](https://discourse.julialang.org/t/franklin-jl-dynamically-loading-and-suppressing-pages/102530 "2023-08-11T07:39:24Z")

</div>

There are two separate but slightly related problems. First, I have a directory called posts containing markdown files to be displayed. I would like to keep some of these markdown files in the folder, but suppress them d…

---

## [Possibility to store outcome of \`ForwardDiff.jacobian\` already in sparse format](https://discourse.julialang.org/t/possibility-to-store-outcome-of-forwarddiff-jacobian-already-in-sparse-format/102635)

<div class="topic-metadata">

**Author:** [@DanDoe](https://discourse.julialang.org/u/DanDoe)\
**Replies:** 2\
**Last updated:** [August 11, 2023, 6:19am UTC](https://discourse.julialang.org/t/possibility-to-store-outcome-of-forwarddiff-jacobian-already-in-sparse-format/102635 "2023-08-11T06:19:00Z")

</div>

I use ForwardDiff.jacobian in the following way: function \_jacobian\_ad\_forward(p, t0, u0\_ode, du\_ode, config) J = ForwardDiff.jacobian(du\_ode, u0\_ode, config) do du\_ode, u\_ode f!(du\_ode, u\_ode, p, t0) en…

---

## [How to set JuMP.jl timeout?](https://discourse.julialang.org/t/how-to-set-jump-jl-timeout/102701)

<div class="topic-metadata">

**Author:** [@peng](https://discourse.julialang.org/u/peng)\
**Replies:** 2\
**Last updated:** [August 11, 2023, 6:15am UTC](https://discourse.julialang.org/t/how-to-set-jump-jl-timeout/102701 "2023-08-11T06:15:33Z")

</div>

Does anybody know how to set timeout for JuMP.jl? I used JuMP for some optimization problems, but sometime it falls in long time computation. I hope the calculation time is explicitly limited even though a exception is …

---

## [Partially parametrized external constructor of a parametric type](https://discourse.julialang.org/t/partially-parametrized-external-constructor-of-a-parametric-type/102687)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 10\
**Last updated:** [August 10, 2023, 11:59pm UTC](https://discourse.julialang.org/t/partially-parametrized-external-constructor-of-a-parametric-type/102687 "2023-08-10T23:59:24Z")

</div>

Define a parametric type with parameters S and T (S is intended to be an integer, and T is intended to be a floating-point number): struct FooBar{S,T} x::S y::T FooBar{S,T}(x,y) where {S,T} = new(x,y) end D…

---

## [Printing of UnionAll types is misleading, as of Julia version 1.7](https://discourse.julialang.org/t/printing-of-unionall-types-is-misleading-as-of-julia-version-1-7/89418)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 15\
**Last updated:** [August 10, 2023, 8:31pm UTC](https://discourse.julialang.org/t/printing-of-unionall-types-is-misleading-as-of-julia-version-1-7/89418 "2023-08-10T20:31:34Z")

</div>

Printing of UnionAll types used to be honest: Julia 1.6 julia\> struct A{asdf, qwer} end julia\> A{Int} A{Int64, qwer} where qwer julia\> using StructArrays julia\> struct Foo x::Int end julia\> StructA…

---

## [CSC to CSR Transformation in GPU](https://discourse.julialang.org/t/csc-to-csr-transformation-in-gpu/102697)

<div class="topic-metadata">

**Author:** [@A\_M](https://discourse.julialang.org/u/A_M)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 11:21pm UTC](https://discourse.julialang.org/t/csc-to-csr-transformation-in-gpu/102697 "2023-08-10T23:21:28Z")

</div>

Is there any way to transfer A in CSC to CSR in CUDA using Adjoint? n\_rows = 1000000 n\_cols = 1000000 nnz = 10000000 row\_indices = rand(1:n\_rows, nnz) col\_indices = rand(1:n\_cols, nnz) values = rand(nnz) A = spars…

---

## [InexactError in Callback](https://discourse.julialang.org/t/inexacterror-in-callback/102648)

<div class="topic-metadata">

**Author:** [@jack\_lee](https://discourse.julialang.org/u/jack_lee)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 8:49pm UTC](https://discourse.julialang.org/t/inexacterror-in-callback/102648 "2023-08-10T20:49:23Z")

</div>

When I learn the user-cut callback function ,I rewrite the code below: function user\_cut() Random.seed!(13) N = 30 capacity = 10 weights,values = rand(N),rand(N) model = Model(GLPK.Optimizer) @va…

---

## [How to tag a new release for a package?](https://discourse.julialang.org/t/how-to-tag-a-new-release-for-a-package/4078)

<div class="topic-metadata">

**Author:** [@billmclean](https://discourse.julialang.org/u/billmclean)\
**Replies:** 3\
**Last updated:** [August 10, 2023, 8:06pm UTC](https://discourse.julialang.org/t/how-to-tag-a-new-release-for-a-package/4078 "2023-08-10T20:06:15Z")

</div>

I am unsure of the best way for the owner of an already registered package to release an updated version. Is it sufficient to commit the changes, push them to origin/master and do julia\> PkgDev.tag(“MyPackage”) (assum…

---

## [Problem of unnecessarily iterating many times in for loop](https://discourse.julialang.org/t/problem-of-unnecessarily-iterating-many-times-in-for-loop/101319)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 18\
**Last updated:** [August 10, 2023, 7:51pm UTC](https://discourse.julialang.org/t/problem-of-unnecessarily-iterating-many-times-in-for-loop/101319 "2023-08-10T19:51:06Z")

</div>

For the following code it gives output many times(about 40 times) for only three true matches . Unnecessary iteration will decrease performance as far as i know it should give only three output . julia\> using CSV, Data…

---

## [Recover full printing of \`UnionAll\` type](https://discourse.julialang.org/t/recover-full-printing-of-unionall-type/102693)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 7:45pm UTC](https://discourse.julialang.org/t/recover-full-printing-of-unionall-type/102693 "2023-08-10T19:45:00Z")

</div>

As discussed in this thread, printing of UnionAll types changed in Julia 1.7, as demonstrated here: 1.6 julia\> struct Foo{A,B} end julia\> Foo{Int} Foo{Int64, B} where B 1.7 julia\> struct Foo{A,B} end julia\> Foo{Int} …

---

## [Automation to ensure green CI on master](https://discourse.julialang.org/t/automation-to-ensure-green-ci-on-master/102616)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 23\
**Last updated:** [August 10, 2023, 6:05pm UTC](https://discourse.julialang.org/t/automation-to-ensure-green-ci-on-master/102616 "2023-08-10T18:05:31Z")

</div>

CI on master is sometimes failing, which makes it harder for new contributors to make PRs because they don’t have a good signal about success/failure. Some projects like Rust ensure that the master branch of rust-lang/ru…

---

## [One Julia sys.so is slower than the other](https://discourse.julialang.org/t/one-julia-sys-so-is-slower-than-the-other/102689)

<div class="topic-metadata">

**Author:** [@limonspb](https://discourse.julialang.org/u/limonspb)\
**Replies:** 0\
**Last updated:** [August 10, 2023, 6:14pm UTC](https://discourse.julialang.org/t/one-julia-sys-so-is-slower-than-the-other/102689 "2023-08-10T18:14:34Z")

</div>

Hello dear experts. Might be a weird question. I have two different sys.so files of Julia (precompiled Julia with some third-party packages included, PackageCompiler is used). Both files are Julia 1.6.1. The problem i…

---

## [ForwardDiffSensitivity Faster than Adjoint Methods](https://discourse.julialang.org/t/forwarddiffsensitivity-faster-than-adjoint-methods/102652)

<div class="topic-metadata">

**Author:** [@George\_Stepaniants](https://discourse.julialang.org/u/George_Stepaniants)\
**Replies:** 8\
**Last updated:** [August 10, 2023, 4:30pm UTC](https://discourse.julialang.org/t/forwarddiffsensitivity-faster-than-adjoint-methods/102652 "2023-08-10T16:30:50Z")

</div>

I am having a problem speeding up my Neural ODE gradient computations. Namely, I have defined a neural ode struct which accepts a control input and am aiming to optimize the parameters of the neural network to optimize a…

---

## [Forums for asking questions about Bayesian inference](https://discourse.julialang.org/t/forums-for-asking-questions-about-bayesian-inference/102644)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 8\
**Last updated:** [August 10, 2023, 1:04pm UTC](https://discourse.julialang.org/t/forums-for-asking-questions-about-bayesian-inference/102644 "2023-08-10T13:04:34Z")

</div>

Can anyone suggest a good forum for asking questions/discussing Bayesian inference? I’ve tried a couple of different stats/ML forums in the past, and I’ve never gotten a single response. What I’m looking for is a place t…

---

## [How to structure Bayesian model for hiring data based on race, performance, and years of experience](https://discourse.julialang.org/t/how-to-structure-bayesian-model-for-hiring-data-based-on-race-performance-and-years-of-experience/102655)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 1:08pm UTC](https://discourse.julialang.org/t/how-to-structure-bayesian-model-for-hiring-data-based-on-race-performance-and-years-of-experience/102655 "2023-08-10T13:08:01Z")

</div>

I’m working on an analysis of some HR data that is attempting to answer the following question: Do applicants of different races have substantially different probabilities of being selected? For now, I’m focusing on a …

---

## [Julia why the output is 4:4 of the function findnext](https://discourse.julialang.org/t/julia-why-the-output-is-4-4-of-the-function-findnext/102678)

<div class="topic-metadata">

**Author:** [@saampandit](https://discourse.julialang.org/u/saampandit)\
**Replies:** 2\
**Last updated:** [August 10, 2023, 12:47pm UTC](https://discourse.julialang.org/t/julia-why-the-output-is-4-4-of-the-function-findnext/102678 "2023-08-10T12:47:30Z")

</div>

I am new to Julia why the function is returning value 4:4 what does it means ?? findnext("o", "xylophone", 1)

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

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